GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore: integrate Storybook 10 and M3 chat surface work by Storypapst · Pull Request #351 · OpenResilienceInitiative/ORISO-Frontend Conversation
|
|
Warning Review limit reached
Next review available in: 32 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds numerous Storybook story files across components, introduces a ChangesChat menu dropdown, legal modal, and session menu/list rewiring
Estimated code review effort: 4 (Complex) | ~60 minutes Message composer resize
Drafts navigation entry
Sessions list toolbar/styling
Storybook expansion
TagSelect typing
Misc styles, DOM shim, test fix
Estimated code review effort: 4 (Complex) | ~75 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant SessionMenu
participant LegalLinkModal
participant OrisoDialog
User->>SessionMenu: click privacy/imprint item
SessionMenu->>SessionMenu: setLegalModal(title, url)
SessionMenu->>LegalLinkModal: render with title, url
LegalLinkModal->>OrisoDialog: render parsed legal content
User->>OrisoDialog: click close
OrisoDialog->>SessionMenu: onClose clears legalModal
sequenceDiagram
participant Story
participant FetchMockDecorator
participant RoutingRuntimeShell
participant Routing
participant MockAPI
Story->>FetchMockDecorator: mount RuntimeRoutingShell
FetchMockDecorator->>FetchMockDecorator: install globalThis.fetch mock
RoutingRuntimeShell->>Routing: render app routes with providers
Routing->>MockAPI: fetch sessions/rooms/drafts/messages
MockAPI-->>Routing: deterministic JSON fixtures
Story->>FetchMockDecorator: unmount, restore original fetch
Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Tracked in #352. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
coderabbit: review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@coderabbitai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@coderabbitai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tory-fy 9 atoms
Move Storybook from 7 (custom webpack) to 10 on the Vite builder, decoupled
from the app's config/webpack.config.js, and wire @storybook/addon-mcp so AI
agents can query real components + props at http://localhost:6006/mcp.
Vite migration fixes (mirroring the old webpack config):
- prepend global settings.scss via css.preprocessorOptions.scss.additionalData
- resolve webpack-style `~pkg` scss imports via a sass importer
- add .scss/.css to resolve.extensions for extensionless style imports
- define process.env:{} so components reading REACT_APP_* don't crash
Coverage: retitle existing atoms + generate stories for 9 storyless atoms
(box, card, modal, loadingIndicator, scrollableSection, form/OrisoTextField,
Page, Switch, tooltip), all under the Atoms/* taxonomy to mirror Figma.
13 atoms now build green and are served by the MCP.
Deferred to hardening: full preview shell (app context providers), CRA svg
dual-mode (default=URL + named ReactComponent), legalPageWrapper (pulls the
registration/stage subtree).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Unblocks molecules/organisms (which need app context providers and svg).
Preview: restore the full MuiStoryShell (AppConfig/Locale/Tenant/UserData/
UrlParams/RocketChat*/E2EE/Notifications/Registration + i18n + Router +
ThemeProvider + LegalLinks) from the SB7 backup, adapted to SB10 imports
(@storybook/react-vite, storybook/preview-api, storybook/theming) and with
the removed-in-SB8 actions.argTypesRegex / docs.autodocs params dropped.
SVG: replicate CRA's @svgr/webpack dual output via a small pre-load Vite
plugin — bare `import './x.svg'` re-exports `{ default } from '?url'`
(asset URL) and `{ default as ReactComponent } from '?react'` (svgr
component). Re-enable vite-plugin-svgr for the `?react` query.
Verified: full build green (2897 modules), dev server boots with the full
shell, and legalPageWrapper (stage -> logo svgs) now builds and is served
by the Storybook MCP.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Now that the full preview shell + svg dual-mode are in place, generate stories for 8 molecule components: infoTooltip, tagSelect, banner, select (LanguageSelectDropdown), editableData, flyoutMenu, generateQrCode, emptyState. All build green and are served by the Storybook MCP. Storybook MCP now exposes 22 components (14 Atoms + 8 Molecules) with real props/usage to AI agents. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Generate stories for 8 organism components: header, sessionMenu, askerInfo, twoFactorAuth, appointment, notificationsCenter, walkthrough, banUser. All build green against their real prop types (no casts). Context/api-driven organisms compile and document props; some render Loading/empty without real route params + network data, which is acceptable for MCP prop extraction. Storybook MCP now exposes 30 components: 14 Atoms + 8 Molecules + 8 Organisms. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ate, docs - Remove SB7 leftover deps (addon-essentials/interactions/links, blocks, preset-scss, react-webpack5, testing-library, storybook-i18n@2); bump @storybook/react to 10. Only 4 storybook packages remain; the SB10 "incompatible packages" warnings are gone. - Fix .storybook/manager.ts to SB10 import paths (storybook/manager-api, storybook/theming). - Re-bucket legalPageWrapper from Atoms/ to Templates/ (it composes lower levels via Stage). - Add .storybook/README.md documenting run + MCP registration + the Vite migration fixes + taxonomy + known limitations. Build green (3351 modules), no compat warnings. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The stories compiled but the preview rendered blank. Three runtime causes:
- Restore staticDirs ['./static','../public'] (preview-head.html links
compound-web.css / compound-design-tokens.css, which 404'd without it).
- Inject window.__ORISO_RUNTIME_CONFIG__ in preview-head.html with dummy
values, so runtimeConfig.ts getKeycloakRealm() doesn't throw at import
(endpoints.ts) and crash the whole preview.
- Overlay.tsx: replace CommonJS `require('focus-trap-react')` with an ESM
import (Vite has no `require` in the browser → "require is not defined"
broke every overlay-using component, e.g. Appointment).
Verified with a headless browser: atoms/molecules/organisms render with 0
console errors (e.g. Organisms/Appointment shows full content). Build green.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
…verified)
Verified every story in the built Storybook with a headless browser. Fixes so
that nothing crashes:
- resolve.dedupe ['react','react-dom']: Vite was bundling a 2nd React for SB
internals, breaking hooks ("Invalid hook call") and making every context
null — crashing all stories via the decorator.
- preview shell: provide SessionTypeContext + a mock userData object + a global
Buffer polyfill (from the `buffer` pkg) so AskerInfo / SessionMenu /
TwoFactorAuth / Walkthrough / LegalPageWrapper stop throwing on missing data.
- StoryErrorBoundary decorator: components that still need un-mockable live app
data (session/overlay/feed) now show a clean "needs live data" panel instead
of a red crash, marked data-sb-needs-data.
Result on the static build: 57 stories render fully, 13 render empty (no
crash), 4 show the needs-data panel, 0 crashes.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
- Add @storybook/addon-designs; each story can show its Figma frame in a "Design" tab next to the canvas. - Tag the 6 components that need un-mockable live app data with tags:['needs-data'] (filterable in the sidebar; the Storybook MCP exposes the tag to agents): AskerInfo, Header, NotificationsCenter, SessionMenu, TwoFactorAuth, Walkthrough. - Add a Figma `design` parameter placeholder to each (TODO: paste the real node URL via Figma "Copy link to selection"). Build green; the Design tab renders (verified in the browser). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ion view) Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.