apps
apps copied to clipboard
feat: add shortcuts component storybook
Changes
- Upgrade Storybook to v8;
- Soft refactored ShortcutLinks component for enhance readability;
- Added ShortcutLinks to Storybook;
- Added mock for mandatory business logic functions/libraries (node-fetch, webextension-polyfill, useLogSharedProps, browser from extensions context);
- Added API mock for mandatory
/api/bootfetch;
Manual Testing
[!CAUTION] Please make sure existing components are not breaking/affected by this PR
Preview domain
https://mi-405-shortcuts-component-storybook.preview.app.daily.dev
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| daily-webapp | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 5, 2024 6:56am |
| storybook | ❌ Failed (Inspect) | Jul 5, 2024 6:56am |
Ideally Storybook only cares about components with data coming from elsewhere. I know our components are now not always build in this way, but maybe something we should strive for in the long term?
I totally agree. Actually there is a bond too strong between UI and business logic and it is hard to separate them, but if we do it, it will pay in the long run!