From e0322b74fc84892aface408ec327d7813d4efe52 Mon Sep 17 00:00:00 2001 From: Irfan Khan Date: Wed, 13 May 2026 14:55:07 +0100 Subject: [PATCH 1/3] storybook for cookies --- .../stories/custom/docs-cookies.stories.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 documentation-ui/stories/custom/docs-cookies.stories.tsx diff --git a/documentation-ui/stories/custom/docs-cookies.stories.tsx b/documentation-ui/stories/custom/docs-cookies.stories.tsx new file mode 100644 index 0000000..b690f62 --- /dev/null +++ b/documentation-ui/stories/custom/docs-cookies.stories.tsx @@ -0,0 +1,24 @@ +import { Meta, StoryObj } from "@storybook/react"; +import { ComponentProps } from "react"; // do not remove + +import { CookieConsentManager, CookieConsentProvider } from 'src'; + + +export function DocsCookiesDemo() { + return ( + + + + ) +} + + +const meta: Meta = { + component: DocsCookiesDemo, +}; + +export default meta; + +export const Default: StoryObj = { + args: {}, +}; From 5c46a3bb32c88523c2c70ac18c16f4003fa62cf7 Mon Sep 17 00:00:00 2001 From: Irfan Khan Date: Wed, 13 May 2026 15:01:01 +0100 Subject: [PATCH 2/3] deploy storybook to github pages --- .github/workflows/release.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0b26b3..8e8e5ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,26 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Build storybook site + run: npm run build-storybook + + - name: Upload static files as artifact + id: deployment + uses: actions/upload-pages-artifact@v4 + with: + path: storybook-static/ + + deploy-site: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: release_node + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + release_pypi: runs-on: ubuntu-latest needs: release_node @@ -70,4 +90,4 @@ jobs: poetry config http-basic.pypi_local ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_API_TOKEN }} poetry build poetry publish - echo ✅ "Done. Published Package to PyPI." + echo ✅ "Done. Published Package to PyPI." \ No newline at end of file From 1d307e46cc5d53f08d5a3773347194de4188e9a6 Mon Sep 17 00:00:00 2001 From: Sean Burton Date: Wed, 13 May 2026 15:04:13 +0100 Subject: [PATCH 3/3] CookieConsentProvider requires a version parameter Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- documentation-ui/stories/custom/docs-cookies.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation-ui/stories/custom/docs-cookies.stories.tsx b/documentation-ui/stories/custom/docs-cookies.stories.tsx index b690f62..aefea0a 100644 --- a/documentation-ui/stories/custom/docs-cookies.stories.tsx +++ b/documentation-ui/stories/custom/docs-cookies.stories.tsx @@ -6,7 +6,7 @@ import { CookieConsentManager, CookieConsentProvider } from 'src'; export function DocsCookiesDemo() { return ( - + )