From a3b0b50a39970584043cca5464cb772f12c65b49 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 14:46:05 -0400 Subject: [PATCH 01/15] Added sb-brancher-picker storybook addon plugin and config. --- .github/workflows/deploy-github-pages.yml | 7 +- .gitignore | 2 +- .storybook/.branches.json | 11 + .storybook/main.js | 1 + package-lock.json | 507 +++++++++++++++++++++- package.json | 5 +- 6 files changed, 528 insertions(+), 5 deletions(-) create mode 100644 .storybook/.branches.json diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 42e217f..cd3018d 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -9,6 +9,9 @@ permissions: contents: read pages: write id-token: write + # For storybook-branch-switcher addon. + # See: https://github.com/utarwyn/storybook-branch-switcher + pull-requests: read jobs: deploy: @@ -18,8 +21,10 @@ jobs: with: submodules: true + # See: https://github.com/bitovi/github-actions-storybook-to-github-pages - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 with: - path: storybook-static + build_command: "npm run build-storybook && npx sb-branch-switcher --config .storybook/.branches.json" + path: dist/storybook-bundle # Done manually so we can checkout submodule checkout: false diff --git a/.gitignore b/.gitignore index 8454fe9..4d83aaa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /node_modules -/storybook-static +/dist/storybook .DS_Store diff --git a/.storybook/.branches.json b/.storybook/.branches.json new file mode 100644 index 0000000..0d65c33 --- /dev/null +++ b/.storybook/.branches.json @@ -0,0 +1,11 @@ +{ + "from": "dist/storybook", + "to": "dist/storybook-bundle", + "default_branch": "main", + "default_root": true, + "provider": { + "type": "github", + "owner": "CivicTechTO", + "repository": "polis-storybook" + } +} diff --git a/.storybook/main.js b/.storybook/main.js index 9d3c587..4a94895 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -11,6 +11,7 @@ const config = { "@chromatic-com/storybook", "@storybook/addon-interactions", "storybook-addon-remix-react-router", + "storybook-branch-switcher", ], framework: { name: "@storybook/react-webpack5", diff --git a/package-lock.json b/package-lock.json index 0f7fb20..750b47e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,8 @@ "react-redux": "7.2.2", "redux-thunk": "~2.3.0", "storybook": "^8.3.2", - "storybook-addon-remix-react-router": "^3.0.0" + "storybook-addon-remix-react-router": "^3.0.0", + "storybook-branch-switcher": "^0.3.1" } }, "node_modules/@adobe/css-tools": { @@ -976,6 +977,41 @@ "react": ">=16" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@remix-run/router": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.2.tgz", @@ -2325,6 +2361,16 @@ "@types/send": "*" } }, + "node_modules/@types/fs-extra": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", + "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "dev": true, + "dependencies": { + "@types/jsonfile": "*", + "@types/node": "*" + } + }, "node_modules/@types/hast": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", @@ -2352,6 +2398,15 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, + "node_modules/@types/jsonfile": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", + "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/lodash": { "version": "4.17.7", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.7.tgz", @@ -2370,6 +2425,12 @@ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", "dev": true }, + "node_modules/@types/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==", + "dev": true + }, "node_modules/@types/node": { "version": "22.5.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz", @@ -2390,6 +2451,12 @@ "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", "devOptional": true }, + "node_modules/@types/ps-tree": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@types/ps-tree/-/ps-tree-1.1.6.tgz", + "integrity": "sha512-PtrlVaOaI44/3pl3cvnlK+GxOM3re2526TJvPvh7W+keHIXdV4TE0ylpPBAcvFQCbGitaTXwL9u+RF7qtVeazQ==", + "dev": true + }, "node_modules/@types/qs": { "version": "6.9.16", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.16.tgz", @@ -2457,6 +2524,12 @@ "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", "dev": true }, + "node_modules/@types/which": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/which/-/which-3.0.4.tgz", + "integrity": "sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==", + "dev": true + }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", @@ -3675,6 +3748,15 @@ "node": ">=12" } }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "dev": true, + "engines": { + "node": ">= 12" + } + }, "node_modules/debug": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", @@ -3768,6 +3850,18 @@ "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -3860,6 +3954,12 @@ "tslib": "^2.0.3" } }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -4133,6 +4233,21 @@ "node": ">= 0.6" } }, + "node_modules/event-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", + "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", + "dev": true, + "dependencies": { + "duplexer": "~0.1.1", + "from": "~0", + "map-stream": "~0.1.0", + "pause-stream": "0.0.11", + "split": "0.3", + "stream-combiner": "~0.0.4", + "through": "~2.3.1" + } + }, "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -4210,6 +4325,22 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/fast-json-parse": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/fast-json-parse/-/fast-json-parse-1.0.3.tgz", @@ -4228,6 +4359,38 @@ "integrity": "sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw==", "dev": true }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, "node_modules/filesize": { "version": "10.1.6", "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz", @@ -4391,6 +4554,18 @@ "node": ">=12" } }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "dev": true, + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -4409,6 +4584,12 @@ "node": ">= 0.6" } }, + "node_modules/from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", + "dev": true + }, "node_modules/fs-extra": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", @@ -4457,6 +4638,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/fx": { + "version": "35.0.0", + "resolved": "https://registry.npmjs.org/fx/-/fx-35.0.0.tgz", + "integrity": "sha512-O07q+Lknrom5RUX/u53tjo2KTTLUnL0K703JbqMYb19ORijfJNvijzFqqYXEjdk25T9R14S6t6wHD8fCWXCM0g==", + "dev": true, + "bin": { + "fx": "index.js" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -4547,6 +4737,25 @@ "node": ">=4" } }, + "node_modules/globby": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.2.tgz", + "integrity": "sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==", + "dev": true, + "dependencies": { + "dir-glob": "^3.0.1", + "fast-glob": "^3.3.0", + "ignore": "^5.2.4", + "merge2": "^1.4.1", + "slash": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -4848,6 +5057,15 @@ "postcss": "^8.1.0" } }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", @@ -5082,6 +5300,12 @@ "node": ">=8" } }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, "node_modules/isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", @@ -5320,6 +5544,12 @@ "integrity": "sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==", "dev": true }, + "node_modules/map-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", + "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", + "dev": true + }, "node_modules/markdown-to-jsx": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/markdown-to-jsx/-/markdown-to-jsx-7.5.0.tgz", @@ -5377,6 +5607,15 @@ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -5516,6 +5755,43 @@ "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==", "dev": true }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz", + "integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==", + "dev": true, + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, "node_modules/node-releases": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", @@ -5755,6 +6031,15 @@ "node": ">= 14.16" } }, + "node_modules/pause-stream": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", + "dev": true, + "dependencies": { + "through": "~2.3" + } + }, "node_modules/picocolors": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", @@ -6036,6 +6321,21 @@ "node": ">= 0.10" } }, + "node_modules/ps-tree": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", + "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", + "dev": true, + "dependencies": { + "event-stream": "=3.3.4" + }, + "bin": { + "ps-tree": "bin/ps-tree.js" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -6060,6 +6360,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/radium": { "version": "0.26.2", "resolved": "https://registry.npmjs.org/radium/-/radium-0.26.2.tgz", @@ -6498,6 +6818,16 @@ "node": ">=4" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -6514,6 +6844,29 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -6706,6 +7059,18 @@ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, + "node_modules/slash": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", + "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -6744,6 +7109,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/split": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", + "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", + "dev": true, + "dependencies": { + "through": "2" + }, + "engines": { + "node": "*" + } + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -6801,6 +7178,27 @@ } } }, + "node_modules/storybook-branch-switcher": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/storybook-branch-switcher/-/storybook-branch-switcher-0.3.1.tgz", + "integrity": "sha512-gGD/vw387pEWx537YvVPgm3Fh+HEO6jeeYa27GeRtum5lI1TgrU9ILRxFkFABmgh80YUdL12CsD+nEUMzsLx/g==", + "dev": true, + "dependencies": { + "zx": "^7.2.3" + }, + "bin": { + "sb-branch-switcher": "dist/cli.mjs" + } + }, + "node_modules/stream-combiner": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", + "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", + "dev": true, + "dependencies": { + "duplexer": "~0.1.1" + } + }, "node_modules/string-replace-to-array": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-replace-to-array/-/string-replace-to-array-2.1.1.tgz", @@ -7033,6 +7431,12 @@ "react": "^16.11.0" } }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", @@ -7421,6 +7825,15 @@ "node": ">=10.13.0" } }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/webpack": { "version": "5.94.0", "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz", @@ -7613,6 +8026,30 @@ "acorn": "^8" } }, + "node_modules/webpod": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/webpod/-/webpod-0.0.2.tgz", + "integrity": "sha512-cSwwQIeg8v4i3p4ajHhwgR7N6VyxAf+KYSSsY6Pd3aETE+xEU4vbitz7qQkB0I321xnhDdgtxuiSfk5r/FVtjg==", + "dev": true, + "bin": { + "webpod": "dist/index.js" + } + }, + "node_modules/which": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", + "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, "node_modules/which-typed-array": { "version": "1.1.15", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", @@ -7684,6 +8121,74 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zx": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/zx/-/zx-7.2.3.tgz", + "integrity": "sha512-QODu38nLlYXg/B/Gw7ZKiZrvPkEsjPN3LQ5JFXM7h0JvwhEdPNNl+4Ao1y4+o3CLNiDUNcwzQYZ4/Ko7kKzCMA==", + "dev": true, + "dependencies": { + "@types/fs-extra": "^11.0.1", + "@types/minimist": "^1.2.2", + "@types/node": "^18.16.3", + "@types/ps-tree": "^1.1.2", + "@types/which": "^3.0.0", + "chalk": "^5.2.0", + "fs-extra": "^11.1.1", + "fx": "*", + "globby": "^13.1.4", + "minimist": "^1.2.8", + "node-fetch": "3.3.1", + "ps-tree": "^1.2.0", + "webpod": "^0", + "which": "^3.0.0", + "yaml": "^2.2.2" + }, + "bin": { + "zx": "build/cli.js" + }, + "engines": { + "node": ">= 16.0.0" + } + }, + "node_modules/zx/node_modules/@types/node": { + "version": "18.19.54", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.54.tgz", + "integrity": "sha512-+BRgt0G5gYjTvdLac9sIeE0iZcJxi4Jc4PV5EUzqi+88jmQLr+fRZdv2tCTV7IHKSGxM6SaLoOXQWWUiLUItMw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/zx/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/zx/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/zx/node_modules/yaml": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } } } } diff --git a/package.json b/package.json index 3731571..6eeb204 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build" + "build-storybook": "storybook build --output-dir dist/storybook" }, "keywords": [], "author": "", @@ -28,7 +28,8 @@ "react-redux": "7.2.2", "redux-thunk": "~2.3.0", "storybook": "^8.3.2", - "storybook-addon-remix-react-router": "^3.0.0" + "storybook-addon-remix-react-router": "^3.0.0", + "storybook-branch-switcher": "^0.3.1" }, "dependencies": { "color": "~4.2.3", From 2189311c8e5e4f8a9d2c494c62f2f82fbb47645b Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 14:50:10 -0400 Subject: [PATCH 02/15] Added makefile task for build and multi-branch build. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index b5088b9..6566746 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,13 @@ setup: ## Install packages and polis codebase run: ## Run storybook development environment npm run storybook +build: ## Build static storybook for deploy + npm run build-storybook + +build-all-branches: ## Build static storybook for all PR branches (requires GITHUB_TOKEN) + npm run build-storybook + npx sb-branch-switch --config .storybook/.branches.json + %: @true From b3b515bd7e95f921aa924d7f1c8994f3e01a09fb Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 14:55:25 -0400 Subject: [PATCH 03/15] temporary commit to test locally. --- .storybook/.branches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/.branches.json b/.storybook/.branches.json index 0d65c33..991167e 100644 --- a/.storybook/.branches.json +++ b/.storybook/.branches.json @@ -1,7 +1,7 @@ { "from": "dist/storybook", "to": "dist/storybook-bundle", - "default_branch": "main", + "default_branch": "6-branch-switcher-addon", "default_root": true, "provider": { "type": "github", From cc508cd5c67617008f3a4f6848f0865a0354a297 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:01:33 -0400 Subject: [PATCH 04/15] Adjusted config to build into default storybook build location. --- .gitignore | 5 +++-- .storybook/.branches.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4d83aaa..66fddde 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -/node_modules -/dist/storybook +/node_modules/ +/storybook-static/ +/dist/ .DS_Store diff --git a/.storybook/.branches.json b/.storybook/.branches.json index 991167e..bf109e4 100644 --- a/.storybook/.branches.json +++ b/.storybook/.branches.json @@ -1,5 +1,5 @@ { - "from": "dist/storybook", + "from": "storybook-static", "to": "dist/storybook-bundle", "default_branch": "6-branch-switcher-addon", "default_root": true, diff --git a/package.json b/package.json index 6eeb204..43e4f71 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build --output-dir dist/storybook" + "build-storybook": "storybook build --output-dir storybook-static" }, "keywords": [], "author": "", From 368a52e6f02074f5a2f683885cbcc79183a2d375 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:10:21 -0400 Subject: [PATCH 05/15] Added storybook-build-branch script. --- .storybook/.branches.json | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.storybook/.branches.json b/.storybook/.branches.json index bf109e4..c8cc9cc 100644 --- a/.storybook/.branches.json +++ b/.storybook/.branches.json @@ -1,6 +1,7 @@ { "from": "storybook-static", "to": "dist/storybook-bundle", + "script_name": "build-storybook-branch", "default_branch": "6-branch-switcher-addon", "default_root": true, "provider": { diff --git a/package.json b/package.json index 43e4f71..b70c8eb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build --output-dir storybook-static" + "build-storybook": "storybook build --output-dir storybook-static", + "build-storybook-branch": "git submodule update --init && npm run build-storybook" }, "keywords": [], "author": "", From f6a874f8341f4e355ca590b32f5d3d5d1d0fa5f2 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:19:03 -0400 Subject: [PATCH 06/15] No need for the PR token. --- .github/workflows/deploy-github-pages.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index cd3018d..6ef023d 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -9,9 +9,6 @@ permissions: contents: read pages: write id-token: write - # For storybook-branch-switcher addon. - # See: https://github.com/utarwyn/storybook-branch-switcher - pull-requests: read jobs: deploy: From a7530a85b5585896a2deef5f9bdb1f02cac978fc Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:20:00 -0400 Subject: [PATCH 07/15] Let's go back to using other dir. --- .gitignore | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 66fddde..061a7f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /node_modules/ -/storybook-static/ /dist/ .DS_Store diff --git a/package.json b/package.json index b70c8eb..f0002c7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build --output-dir storybook-static", + "build-storybook": "storybook build --output-dir dist/storybook", "build-storybook-branch": "git submodule update --init && npm run build-storybook" }, "keywords": [], From 04b39d43deae87fe7645ff30a1a52a526853baea Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:28:31 -0400 Subject: [PATCH 08/15] Start storybook deploys on PRs. --- .github/workflows/deploy-github-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 6ef023d..4857c18 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -4,6 +4,8 @@ on: push: branches: - 'main' + pull_request: + types: [opened, synchronize, reopened] permissions: contents: read From 4fa0fb0934323da5559ab55e46d0f17bf08a51ad Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:31:40 -0400 Subject: [PATCH 09/15] Switch to mainline for sb-branch-switcher. --- .storybook/.branches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/.branches.json b/.storybook/.branches.json index c8cc9cc..2835234 100644 --- a/.storybook/.branches.json +++ b/.storybook/.branches.json @@ -2,7 +2,7 @@ "from": "storybook-static", "to": "dist/storybook-bundle", "script_name": "build-storybook-branch", - "default_branch": "6-branch-switcher-addon", + "default_branch": "main", "default_root": true, "provider": { "type": "github", From 848386f3a3059e4473088a8a106436405ab5dd0e Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:37:14 -0400 Subject: [PATCH 10/15] Added the GITHUB_TOKEN to the storybook build and publish step. --- .github/workflows/deploy-github-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 4857c18..f9c7d3b 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -22,6 +22,8 @@ jobs: # See: https://github.com/bitovi/github-actions-storybook-to-github-pages - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: build_command: "npm run build-storybook && npx sb-branch-switcher --config .storybook/.branches.json" path: dist/storybook-bundle From dabf733a057893dc5cdf4db50ebb55d31fc4b9b1 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:40:02 -0400 Subject: [PATCH 11/15] No need to build manually first. --- .github/workflows/deploy-github-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index f9c7d3b..55003bd 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -25,7 +25,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - build_command: "npm run build-storybook && npx sb-branch-switcher --config .storybook/.branches.json" + build_command: "npx sb-branch-switcher --config .storybook/.branches.json" path: dist/storybook-bundle # Done manually so we can checkout submodule checkout: false From 16206d21adb317c5c3f588a8c265ad555edda649 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:45:03 -0400 Subject: [PATCH 12/15] Oops. Got the from path wrong for storybook build. --- .storybook/.branches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/.branches.json b/.storybook/.branches.json index 2835234..abbed7e 100644 --- a/.storybook/.branches.json +++ b/.storybook/.branches.json @@ -1,5 +1,5 @@ { - "from": "storybook-static", + "from": "dist/storybook", "to": "dist/storybook-bundle", "script_name": "build-storybook-branch", "default_branch": "main", From 4d13d1f89154c851a28fcd995cf89bd2b9f3631e Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:52:33 -0400 Subject: [PATCH 13/15] Trying to fix up the mainline build, which has some git submodule messiness. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f0002c7..70d9454 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build --output-dir dist/storybook", - "build-storybook-branch": "git submodule update --init && npm run build-storybook" + "sync-submodules": "git submodule update --init && git submodule sync", + "build-storybook-branch": "npm run sync-submodules && npm run build-storybook" }, "keywords": [], "author": "", From 8efb275d012e1eaa039c28dc759835ab751621e7 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Sun, 6 Oct 2024 15:53:08 -0400 Subject: [PATCH 14/15] No need to build twice in Makefile task. --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 6566746..69e553b 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ build: ## Build static storybook for deploy npm run build-storybook build-all-branches: ## Build static storybook for all PR branches (requires GITHUB_TOKEN) - npm run build-storybook npx sb-branch-switch --config .storybook/.branches.json %: From efb4cef35f1f38e45ecd9ece028144a248aac062 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Mon, 7 Oct 2024 15:35:45 -0400 Subject: [PATCH 15/15] Added a stub overview page for the whole storybook. --- stories/Overview.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 stories/Overview.mdx diff --git a/stories/Overview.mdx b/stories/Overview.mdx new file mode 100644 index 0000000..abebe17 --- /dev/null +++ b/stories/Overview.mdx @@ -0,0 +1,18 @@ +# Overview: Polis-Storybook + +🚧 This overview page is considered a work-in-progress until this line is removed + +TODO: Summarize the structure, goals, and affiliations of this initiative. + +## Goals +- Make accessibility reviews and improvements of Polis interfaces easier +- Allow UI/UX desigers to more easily contribute and explore Polis UI changes without deploying the whole Polis application +- Allow more sharing of Polis UI variants from forks of Polis +- Support Polis practitioners in carrying out more UI explorations and experiments +- Help Polis practitioners to evolve their own hosted instances of the platform + +This is a project of the Polis Toronto breakout group ([notes][]), +incubated within the [Civic Tech Toronto][] community. + + [notes]: https://link.civictech.ca/polis + [Civic Tech Toronto]: https://civictech.ca/