GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(storybook): Storybook 10 + Vite + Storybook MCP, atomic story coverage by Storypapst · Pull Request #336 · OpenResilienceInitiative/ORISO-Frontend

Conversation

@Storypapst

@Storypapst Storypapst commented Jun 30, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Why

Give AI coding agents (Claude Code / Codex / Cursor) machine-readable access to our real components — names, props, variants, usage — via the official Storybook MCP, so they reuse our MUI/Material-3 components instead of regenerating markup. This is the free alternative to Figma Code Connect (which is Organization/Enterprise-only). It pairs with the Figma MCP for a design→code loop that stays on the design system.

The Storybook MCP add-on needs Storybook ≥ 9.1, so this also migrates Storybook 7 → 10.

What

  • Migrate Storybook 7 (custom webpack) → 10 on the Vite builder, decoupled from config/webpack.config.js.
  • Wire @storybook/addon-mcp → MCP at http://localhost:6006/mcp.
  • Seed atomic story coverage: 30 components / 74 stories, titled by atomic-design level to mirror Figma: Atoms/* (14), Molecules/* (8), Organisms/* (8), Templates/* (1).
  • @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'] (sidebar-filterable; the MCP exposes the tag to agents).

Vite parity fixes (.storybook/main.ts)

The app used a custom webpack config, so the Vite builder needs to replicate it:

  • prepend the global settings.scss (css.preprocessorOptions.scss.additionalData);
  • a sass importer that strips webpack-style ~pkg scss imports (dart-sass can't resolve ~);
  • .scss/.css added to resolve.extensions (components do import './x.styles');
  • define: { 'process.env': {} } so REACT_APP_* reads don't crash;
  • CRA svg dual-mode — a small pre-load plugin so a bare .svg import re-exports { default } from '?url' (asset URL) and { default as ReactComponent } from '?react', replicating @svgr/webpack;
  • resolve.dedupe: ['react','react-dom'] — Vite was bundling a 2nd React for SB internals, which broke hooks and made every context null (crashed every story via the decorator);
  • restore staticDirs; inject a Storybook-only __ORISO_RUNTIME_CONFIG__ + global Buffer polyfill so the app's runtime config getters don't throw at import.

preview.tsx wraps every story in the full app shell (MUI theme + i18n + router + mocked context providers) and a StoryErrorBoundary that shows a clean "needs live data" panel instead of crashing for components that depend on un-mockable session/overlay state.

Verification

  • npm run build-storybook is green (3.3k modules, no compat warnings).
  • Every story render-verified with a headless browser against the static build: 57 render fully, 13 render empty (no crash), 4 show the needs-data panel, 0 crashes.
  • Published to Chromatic (30 components / 74 stories / 74 snapshots, build passed).

Notes for reviewers

  • This is a draft — a large, repo-wide Storybook/build change. It should be coordinated with the in-flight FE modernization (react-router v7 / MD3 / React 19) before merge.
  • The large package-lock.json churn is the Storybook 7 → 10 migration.
  • Coverage is incremental (30 of ~95 components). Legacy SB7-era stories not yet in the stories glob are not migrated and may use removed SB7 packages — migrate them before adding to the glob.
  • Some organisms expose props but render empty / a needs-data panel without real route params + network data — acceptable for MCP prop extraction.
  • The Figma design links are placeholders except Header (a real App.Oriso link); the rest are TODO.

See .storybook/README.md for run + MCP-registration instructions.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added Storybook coverage for many UI components, including new interactive and runtime examples for key app surfaces.
    • Introduced a new Drafts entry in the consultant navigation, making drafts accessible from the sidebar.
    • Updated several component story titles and controls for clearer browsing in Storybook.
  • Bug Fixes

    • Improved styling and behavior consistency for selected UI elements, including tag display and loading components.
    • Added tests to verify navigation order and visual styling details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sentry[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
Storypapst and others added 11 commits June 30, 2026 00:24
@Storypapst @claude
feat(storybook): migrate to Storybook 10 + Vite, add Storybook MCP, s…
0a53a5e
…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]>
@Storypapst @claude
feat(storybook): restore full preview shell + CRA-faithful svg dual-mode
0e31255
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]>
@Storypapst @claude
feat(storybook): story-fy 8 molecules (Molecules/* taxonomy)
268d2ac
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]>
@Storypapst @claude
feat(storybook): story-fy 8 organisms (Organisms/* taxonomy)
e177c11
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]>
@Storypapst @claude
chore(storybook): productionize — drop SB7 leftovers, re-bucket templ…
69c2a58
…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]>
@Storypapst @claude
fix(storybook): make the canvas actually render (3 runtime fixes)
4410219
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]>
@Storypapst @claude
fix(storybook): all stories render or degrade gracefully (Playwright-…
efc80e1
…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]>
@Storypapst @claude
feat(storybook): tag data-dependent organisms + link Figma per story
940a23d
- 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]>
@Storypapst @claude
chore(storybook): add chromatic dev dependency
66d02ce
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @claude
feat(storybook): wire real Figma link on Header story (App.Oriso sess…
677bc5d
…ion view)

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @claude
chore: gitignore chromatic build-storybook.log
f4df8eb
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 474e0a58-7708-44d0-8152-ae8b75c4f965

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR adds a large batch of new/updated Storybook story files across atoms, molecules, and organisms, introduces runtime Storybook fixtures wiring real components to app contexts (navigation, chat surface, session list item, registration flows), adds a drafts navigation entry to RouterConfig with a test, extends TagSelect with controlled checkbox props, fixes yellow tag text color, and refactors the ReactDOM findDOMNode polyfill.

Changes

Component Storybook Stories

Layer / File(s) Summary
Basic atom stories and metadata updates
src/components/Page/Page.stories.tsx, src/components/Switch/Switch.stories.ts, src/components/box/Box.stories.tsx, src/components/card/Card.stories.tsx, src/components/modal/Modal.stories.tsx, src/components/tooltip/Tooltip.stories.tsx, src/components/header/Header.stories.ts, src/components/loadingIndicator/LoadingIndicator.stories.ts, src/components/loadingSpinner/LoadingSpinner.stories.ts, src/components/text/Text.stories.ts, src/components/tag/Tag.stories.ts, src/components/headline/Headline.stories.ts
New stories for Page, Switch, Box, Card, Modal, Tooltip, Header, LoadingIndicator, plus Atoms/* title renames and new semanticLevel/styleLevel argTypes for Headline.
Molecule/organism stories with args
src/components/banner/*, src/components/editableData/*, src/components/emptyState/*, src/components/flyoutMenu/*, src/components/generateQrCode/*, src/components/infoTooltip/*, src/components/legalPageWrapper/*, src/components/select/LanguageSelectDropdown.stories.ts, src/components/scrollableSection/*, src/components/twoFactorAuth/*, src/components/walkthrough/*, src/components/notificationsCenter/*, src/components/askerInfo/*, src/components/appointment/*, src/components/banUser/*, src/components/form/OrisoTextField.stories.ts, src/components/sessionMenu/*
New Storybook stories covering variant states (closable, disabled, error, multi-select, etc.) for a broad set of molecule/organism components.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Runtime Storybook Fixtures & Drafts Navigation

Layer / File(s) Summary
Drafts navigation entry
src/components/app/RouterConfig.tsx, src/components/app/RouterConfig.test.ts
Adds a /drafts navigation tile to RouterConfigConsultant with icons and navigation.drafts title key, tested for ordering and profile route inclusion.
Runtime NavigationSidebar story
src/components/app/NavigationSidebar.stories.tsx, src/components/storybookDesignLinks.ts
Replaces documentation-only story with RuntimeNavigationRail wiring real contexts and router config, plus an interaction play test and new Figma link constants.
Consultant chat surface runtime story
src/components/app/AppOrisoConsultantChatSurface.stories.tsx
Adds mock data, fetch mocking, context providers, error boundary, and layout for a fullscreen chat surface story with static and routed variants.
SessionListItem runtime story & design links
src/components/sessionsListItem/SessionListItem.stories.tsx, src/components/sessionsList/SessionListColumn.stories.tsx, src/components/sessionsList/SessionsListToolbar.stories.tsx
Migrates to @storybook/react-vite, adds a RuntimeSessionListItem wrapper with real contexts, and adds Figma design links to sessionsList metadata.
Registration flow & runtime stories
src/components/registration/RegistrationFlowSurface.stories.tsx, src/components/registration/RegistrationRuntime.stories.tsx
Adds a composite registration surface story with keyboard-navigable selection cards and ZIP sanitization, and a runtime story mounting the real Registration component with routing.
Registration sub-story metadata migration
src/components/registration/accountData/..., .../agencySelection/..., .../stepBar/..., .../topicSelection/..., .../welcomeScreen/..., .../zipcodeInput/...
Switches imports to @storybook/react-vite and adds Figma design parameters via ORISO_M3_FIGMA_URL.

Estimated code review effort: 4 (Complex) | ~60 minutes

TagSelect Controlled Checkbox & Tag Color Fix

Layer / File(s) Summary
TagSelect props and checkbox wiring
src/components/tagSelect/TagSelect.tsx, src/components/tagSelect/TagSelect.stories.ts
Introduces TagSelectProps with checked/defaultChecked/onChange, wires them into the checkbox input, and adds a Selected story.
Tag yellow color fix and CSS test
src/components/tag/tag.styles.scss, src/components/tag/tag.styles.test.ts
Sets explicit on-surface text color for .tag--yellow and adds a compiled-SCSS test asserting background/text color.

Estimated code review effort: 2 (Simple) | ~15 minutes

ReactDOM findDOMNode Polyfill Refactor

Layer / File(s) Summary
Non-mutating findDOMNode fallback
src/polyfill.ts, src/react-dom-shim.ts, src/components/overlay/Overlay.tsx
Replaces mutation of ReactDOM.findDOMNode with a fiber-traversal fallback and merged reactDOMWithFindDomNode export; updates the shim accordingly and switches FocusTrap to an ES default import.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

  • [UI-MOD-01A] Storybook 10 Vite MCP and TypeScript checks #354: Storybook stories widely adopt Meta/StoryObj, satisfies, and @storybook/react-vite patterns matching this issue's Storybook 10 Vite/TypeScript work.
  • Track Frontend Storybook 10 and M3 chat surface integration #352: The consultant chat surface story and yellow tag color fix align with this issue's Storybook 10/M3 chat surface and tag readability objectives.

Suggested labels: coderabbit

Suggested reviewers: shanzaeimran, shazia-k, Hassan9215, nikunjdecyb

Reviewer notes (keeping it strict): verify the RuntimeSessionListItem/RuntimeNavigationRail/chat-surface fetch mocks don't leak real network calls in CI, confirm localStorage/sessionStorage cleanup in useEffect cleanups actually restores prior values on all exit paths, double-check German copy in RegistrationFlowSurface ("Zurueck/Weiter", "Thema waehlen", "Beratungsstelle auswaehlen") for correct umlauts and accessibility labels on the radio-like cards (keyboard nav, aria-checked), and confirm the new .tag--yellow color meets contrast requirements against the --m3-on-surface token.

🚥 Pre-merge checks | ✅ 5 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 5.88% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Shared Ui Architecture ⚠️ Warning RegistrationFlowSurface and SessionListItem stories reimplement existing flow/list-item patterns with local markup, keyboard handling, and hardcoded styles instead of shared components/tokens. Refactor the story shells to compose TopicSelection, AgencySelection, ZipcodeInput, AccountData, and SessionListItemComponent variants; reuse shared registrationMd3/registrationDesign tokens and layout helpers.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise, conventional, and clearly matches the Storybook migration and story coverage changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Validation Evidence ✅ Passed PR description lists build-storybook green, headless render verification, and Chromatic pass; added Vitest tests for RouterConfig and tag styles.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/storybook-mcp

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Storypapst and others added 2 commits June 30, 2026 08:02
@Storypapst @claude
feat(storybook): expand App.Oriso runtime coverage
0166dfa
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @claude
fix(storybook): use compatible Node patch in Docker build
867af09
Co-Authored-By: Claude Opus 4.8 <[email protected]>
coderabbitai[bot]
coderabbitai Bot requested changes Jun 30, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 20

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx`:
- Around line 404-423: The first entry in runtimeDrafts is mismatched with
runtimeSessions, so update that draft fixture to reference the correct target
session and opening path for the named conversation. Use the runtimeDrafts array
and the runtimeSessions entries (especially the session with sourceSessionId
3363) to ensure the draft title, sourceSessionId, and actionPath all point to
the same session.
- Around line 645-787: `AppOrisoRoutingRuntimeProviders` and
`AppOrisoRuntimeProviders` are duplicating the same ORISO consultant runtime
shell, which is already drifting between sidebar and routing story paths.
Extract the shared consultant runtime provider setup into one reusable story
utility/component (reusing symbols like `AppOrisoRoutingRuntimeProviders` and
`AppOrisoRuntimeProviders`) and have both stories render through it so the
consultant rail/session state, settings, and context wiring stay identical in
one place.
- Around line 1170-1240: The ChatPanel story surface is using hand-crafted
inline chrome styles instead of the shared design system, which will drift from
the real shell. Update ChatPanel and the related story styling to reuse existing
tokens, Sass mixins, and shared components/classes for headers, action buttons,
divider/pills, and composer layout rather than embedding one-off colors, radii,
spacing, and control styles. Keep the visual reference behavior the same, but
source the styling from the existing app patterns used by UserAvatar,
ComposerPreview, and the surrounding story scaffolding so this surface stays
aligned with ORISO shell conventions.

In `@src/components/app/RouterConfig.test.ts`:
- Around line 91-116: The current test in RouterConfig.test only verifies that
the consultant rail shows a /drafts navigation item, but it does not confirm
that RouterConfigConsultant(settings) also registers the matching route. Update
this test to assert against the returned route config from
RouterConfigConsultant(settings) as well, so the ORISO flow fails if /drafts is
missing even when the nav item exists. Use the existing RouterConfigConsultant
and its returned navigation/route structures to keep the check aligned with the
surrounding behavior.

In `@src/components/askerInfo/AskerInfo.stories.ts`:
- Around line 9-14: The AskerInfo story still uses a placeholder Figma URL in
the story metadata, so update the design entry in AskerInfo.stories to point to
the real component node link instead of REPLACE_FILE_KEY. Replace the
placeholder inside the design.url field with the actual Figma “Copy link to
selection” URL for this component so the Storybook Design tab resolves
correctly.

In `@src/components/banner/Banner.stories.tsx`:
- Around line 23-37: The Banner stories are using one-off inline padding styles
instead of the existing layout/token pattern. Update the story render blocks in
Banner.stories.tsx, including the default Banner story and Closable story, to
use the shared ORISO spacing/layout approach or an existing wrapper/component
pattern rather than hardcoded 12px 16px styles. Keep the story content the same,
but replace the inline spacing with the reusable design-token-based solution
already used elsewhere in the codebase.

In `@src/components/form/OrisoTextField.stories.ts`:
- Line 17: The story in OrisoTextField.stories is labeling a disabled input as
“Read only,” which is misleading. Update the Disabled story’s visible label to
match the actual disabled state, or if the component supports true read-only
behavior, switch the story to use that mode instead; use the Disabled story
export and the OrisoTextField component props to locate the change.

In `@src/components/notificationsCenter/NotificationsCenter.stories.ts`:
- Around line 17-18: Update the story metadata description in
NotificationsCenter.stories.ts to use the canonical Activity Timeline
terminology instead of “notifications”. Edit the component description on the
NotificationsCenter story so it consistently refers to “Activity Timeline” (and,
where needed, “activity events”) and avoid the overloaded “Notification” wording
in the docs text.
- Around line 9-14: The NotificationsCenter.stories configuration still uses a
placeholder Figma URL, so update the story’s design metadata in
NotificationsCenter.stories to the real node link before merging. Replace the
REPLACE_FILE_KEY value in the existing figma design.url entry with the correct
Figma file/node URL so the Design tab points to the actual component.

In `@src/components/registration/RegistrationFlowSurface.stories.tsx`:
- Around line 90-127: The single-select card controls in
RegistrationFlowSurface.stories.tsx are using generic buttons inside a
radiogroup, so they lack real radio semantics and keyboard behavior. Update the
topic selector and the agency cards to use actual radio-group primitives or
implement the full radio contract in the relevant components that render the
cards, including role="radio", aria-checked, and arrow-key selection behavior.
Keep the selection state wired through the existing selectedTopic logic so the
accessible semantics match the visual styling.
- Around line 296-488: The styles in RegistrationFlowSurface.stories.tsx are
using hardcoded surface/control/active colors instead of shared design tokens
and existing component patterns. Update the styles object and any related story
markup to reuse the app’s established tokens/mixins for buttons, selected
states, cards, borders, backgrounds, and focus treatment, keeping the Storybook
surface aligned with the real registration UI. Use the existing registration
surface components and shared styling conventions rather than one-off values in
the story.
- Around line 23-260: The story is rebuilding registration state and selection
logic locally instead of composing the existing registration building blocks.
Update RegistrationFlowSurface to use the shared registration
components/hooks/utilities already used by the real flow, and remove the
story-local arrays/state for topics, agencies, and selection flags. Keep only
minimal story wiring so the MCP/reference story mirrors the actual
RegistrationFlowSurface behavior rather than duplicating it.

In `@src/components/registration/RegistrationRuntime.stories.tsx`:
- Around line 20-23: The effect in RegistrationRuntime.stories should restore
the prior registrationSessionStorageKey instead of permanently removing it from
shared sessionStorage. Update the useEffect in the story component to save the
existing value before clearing it, then restore that saved value in the cleanup
function on unmount so other stories and play steps remain isolated, matching
the pattern used by the other runtime stories.

In `@src/components/registration/topicSelection/topicSelection.stories.ts`:
- Around line 4-15: The TopicSelection story is hardcoding the same ORISO M3
Figma URL that is repeated in other registration stories, so move it into a
shared Storybook constant/helper and have TopicSelection import and reuse it.
Update the meta parameters in TopicSelection.stories and any related
registration stories to reference the shared symbol instead of duplicating the
URL, keeping the design-link source in one place for future updates.

In `@src/components/scrollableSection/ScrollableSection.stories.tsx`:
- Around line 22-47: The ScrollableSection stories currently don’t demonstrate
scrolling because the rendered content is too short and unconstrained. Update
the BodyOnly, HeaderAndBody, and HeaderBodyFooter stories in
ScrollableSection.stories.tsx to use a fixed-height container and much longer
body content so overflow occurs, making the component’s body scrolling and
header/footer pinning behavior observable in Storybook. Keep the changes
localized to the existing story render functions for BodyOnly, HeaderAndBody,
and HeaderBodyFooter.

In `@src/components/sessionMenu/SessionMenu.stories.tsx`:
- Around line 16-21: The SessionMenu story still uses a placeholder Figma URL,
so the Design tab will remain broken. Update the design.url in
SessionMenu.stories.tsx with the real Figma node link for this component, and
remove the REPLACE_FILE_KEY placeholder so the story points to a valid design
reference.

In `@src/components/tagSelect/TagSelect.stories.ts`:
- Around line 21-39: Add a selected-state Storybook example for TagSelect so the
active/checked visual treatment is reviewable alongside Default and LongLabel.
Update TagSelect.stories.ts by adding a new story (for example, a Selected
variant) that uses the TagSelect control in its selected state via the existing
props API, and make sure it demonstrates the non-resting appearance needed for
accessible focus/keyboard behavior rather than relying on color alone.

In `@src/components/twoFactorAuth/TwoFactorAuth.stories.ts`:
- Around line 9-14: The TwoFactorAuth story still uses a placeholder Figma URL
in the design metadata, which breaks the Design tab. Update the design.url in
TwoFactorAuth.stories.ts to the real Figma node link for this component,
replacing REPLACE_FILE_KEY with the correct file key from the matching frame’s
copied link. Keep the existing design block structure intact while fixing the
URL.

In `@src/components/walkthrough/Walkthrough.stories.ts`:
- Around line 9-14: The Walkthrough story still uses a placeholder Figma URL in
the Storybook design metadata, so update the design object in
Walkthrough.stories to use the real Figma node link instead of REPLACE_FILE_KEY.
Replace the placeholder in the existing design.url value with the correct copied
Figma selection URL so the Design tab resolves properly.

In `@src/polyfill.ts`:
- Around line 18-52: The polyfill is mutating the imported react-dom namespace
via Object.defineProperty in the findDOMNode fallback, which breaks under native
ESM because the namespace object is non-extensible. Update the logic in
src/polyfill.ts around the reactDOMWithFindDomNode/findDOMNode shim to avoid
patching the import directly; instead create and export a local mutable shim or
wrapper that provides findDOMNode without modifying react-dom. Make sure the
fallback behavior stays the same, but the exported object remains writable at
startup.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f1da7138-0998-43ac-9041-7694d4ca7b0a

📥 Commits

Reviewing files that changed from the base of the PR and between f8e00f9 and 0166dfa.

⛔ Files ignored due to path filters (11)
  • .gitignore is excluded by none and included by none
  • .storybook/README.md is excluded by none and included by none
  • .storybook/main.ts is excluded by none and included by none
  • .storybook/main.ts.sb7.bak is excluded by none and included by none
  • .storybook/manager.ts is excluded by none and included by none
  • .storybook/preview-head.html is excluded by none and included by none
  • .storybook/preview.tsx is excluded by none and included by none
  • .storybook/preview.tsx.sb7.bak is excluded by none and included by none
  • package-lock.json is excluded by !**/package-lock.json and included by none
  • package.json is excluded by none and included by none
  • tsconfig.json is excluded by none and included by none
📒 Files selected for processing (47)
  • src/components/Page/Page.stories.tsx
  • src/components/Switch/Switch.stories.ts
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
  • src/components/app/NavigationSidebar.stories.tsx
  • src/components/app/RouterConfig.test.ts
  • src/components/app/RouterConfig.tsx
  • src/components/appointment/Appointment.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/banUser/BanUser.stories.tsx
  • src/components/banner/Banner.stories.tsx
  • src/components/box/Box.stories.tsx
  • src/components/card/Card.stories.tsx
  • src/components/editableData/EditableData.stories.ts
  • src/components/emptyState/EmptyState.stories.ts
  • src/components/flyoutMenu/FlyoutMenu.stories.tsx
  • src/components/form/OrisoTextField.stories.ts
  • src/components/generateQrCode/GenerateQrCode.stories.ts
  • src/components/header/Header.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/infoTooltip/InfoTooltip.stories.ts
  • src/components/legalPageWrapper/LegalPageWrapper.stories.ts
  • src/components/loadingIndicator/LoadingIndicator.stories.ts
  • src/components/loadingSpinner/LoadingSpinner.stories.ts
  • src/components/modal/Modal.stories.tsx
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/overlay/Overlay.tsx
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/select/LanguageSelectDropdown.stories.ts
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/sessionsList/SessionListColumn.stories.tsx
  • src/components/sessionsList/SessionsListToolbar.stories.tsx
  • src/components/sessionsListItem/SessionListItem.stories.tsx
  • src/components/tag/Tag.stories.ts
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/text/Text.stories.ts
  • src/components/tooltip/Tooltip.stories.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/polyfill.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
  • GitHub Check: build
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.

Files:

  • src/components/header/Header.stories.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/banUser/BanUser.stories.tsx
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/text/Text.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/loadingSpinner/LoadingSpinner.stories.ts
  • src/components/generateQrCode/GenerateQrCode.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/emptyState/EmptyState.stories.ts
  • src/components/Switch/Switch.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/tag/Tag.stories.ts
  • src/components/flyoutMenu/FlyoutMenu.stories.tsx
  • src/components/infoTooltip/InfoTooltip.stories.ts
  • src/components/modal/Modal.stories.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/Page/Page.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/loadingIndicator/LoadingIndicator.stories.ts
  • src/components/box/Box.stories.tsx
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/tooltip/Tooltip.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/polyfill.ts
  • src/components/sessionsList/SessionsListToolbar.stories.tsx
  • src/components/sessionsList/SessionListColumn.stories.tsx
  • src/components/overlay/Overlay.tsx
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/app/RouterConfig.tsx
  • src/components/select/LanguageSelectDropdown.stories.ts
  • src/components/card/Card.stories.tsx
  • src/components/appointment/Appointment.stories.ts
  • src/components/editableData/EditableData.stories.ts
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/legalPageWrapper/LegalPageWrapper.stories.ts
  • src/components/app/NavigationSidebar.stories.tsx
  • src/components/sessionsListItem/SessionListItem.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.

Files:

  • src/components/header/Header.stories.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/banUser/BanUser.stories.tsx
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/text/Text.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/loadingSpinner/LoadingSpinner.stories.ts
  • src/components/generateQrCode/GenerateQrCode.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/emptyState/EmptyState.stories.ts
  • src/components/Switch/Switch.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/tag/Tag.stories.ts
  • src/components/flyoutMenu/FlyoutMenu.stories.tsx
  • src/components/infoTooltip/InfoTooltip.stories.ts
  • src/components/modal/Modal.stories.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/Page/Page.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/loadingIndicator/LoadingIndicator.stories.ts
  • src/components/box/Box.stories.tsx
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/tooltip/Tooltip.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/polyfill.ts
  • src/components/sessionsList/SessionsListToolbar.stories.tsx
  • src/components/sessionsList/SessionListColumn.stories.tsx
  • src/components/overlay/Overlay.tsx
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/app/RouterConfig.tsx
  • src/components/select/LanguageSelectDropdown.stories.ts
  • src/components/card/Card.stories.tsx
  • src/components/appointment/Appointment.stories.ts
  • src/components/editableData/EditableData.stories.ts
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/legalPageWrapper/LegalPageWrapper.stories.ts
  • src/components/app/NavigationSidebar.stories.tsx
  • src/components/sessionsListItem/SessionListItem.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
**

⚙️ CodeRabbit configuration file

**: # AGENTS.md

Context First

  • Treat dev as the normal integration branch for ORISO feature PRs unless the task says otherwise.
  • Before non-trivial changes, skim .understand-anything/README.md, .understand-anything/ARCHITECTURE.md, and .understand-anything/knowledge-graph.json for fast repo context.
  • Use CONTEXT.md for Activity Timeline and notification vocabulary; avoid inventing parallel terms.

Frontend Rules

  • Keep behavior in shared hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
  • Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
  • Preserve Matrix/chat/draft privacy boundaries. Do not move plaintext previews or draft contents into server-visible state.
  • UI changes need accessible focus/keyboard behavior and should not rely on color alone.

Validation

  • Prefer red-green TDD for behavior changes: add or update the smallest test that would fail without the fix, then implement.
  • Useful commands:
    • npm run test:unit
    • npm run lint:scripts
    • npm run lint:style
    • npm run build
  • If a full command is too expensive or blocked by existing unrelated failures, run the narrowest relevant command and state the blocker precisely.

Review Expectations

  • Cursor should compare PRs against origin/dev for normal ORISO feature work.
  • CodeRabbit is optional/manual and should not be treated as the primary automated reviewer.
  • Automated review should flag missing tests, duplicated UI architecture, unsafe privacy changes, and mergeability risks.
  • Only auto-fix issues that are clearly scoped and testable. Leave architectural or ambiguous changes as review comments.

**: # Activity Timeline & Notifications

The consultant- and client-facing history of everything that happens around a case: enquiries, accept/deny, messages, drafts, appointments, handovers, call...

Files:

  • src/components/header/Header.stories.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/banUser/BanUser.stories.tsx
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/text/Text.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/loadingSpinner/LoadingSpinner.stories.ts
  • src/components/generateQrCode/GenerateQrCode.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/emptyState/EmptyState.stories.ts
  • src/components/Switch/Switch.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/tag/Tag.stories.ts
  • src/components/flyoutMenu/FlyoutMenu.stories.tsx
  • src/components/infoTooltip/InfoTooltip.stories.ts
  • src/components/modal/Modal.stories.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/Page/Page.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/loadingIndicator/LoadingIndicator.stories.ts
  • src/components/box/Box.stories.tsx
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/tooltip/Tooltip.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/polyfill.ts
  • src/components/sessionsList/SessionsListToolbar.stories.tsx
  • src/components/sessionsList/SessionListColumn.stories.tsx
  • src/components/overlay/Overlay.tsx
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/app/RouterConfig.tsx
  • src/components/select/LanguageSelectDropdown.stories.ts
  • src/components/card/Card.stories.tsx
  • src/components/appointment/Appointment.stories.ts
  • src/components/editableData/EditableData.stories.ts
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/legalPageWrapper/LegalPageWrapper.stories.ts
  • src/components/app/NavigationSidebar.stories.tsx
  • src/components/sessionsListItem/SessionListItem.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
src/**/*.{ts,tsx,js,jsx}

⚙️ CodeRabbit configuration file

src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.

Files:

  • src/components/header/Header.stories.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/banUser/BanUser.stories.tsx
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/text/Text.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/loadingSpinner/LoadingSpinner.stories.ts
  • src/components/generateQrCode/GenerateQrCode.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/emptyState/EmptyState.stories.ts
  • src/components/Switch/Switch.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/tag/Tag.stories.ts
  • src/components/flyoutMenu/FlyoutMenu.stories.tsx
  • src/components/infoTooltip/InfoTooltip.stories.ts
  • src/components/modal/Modal.stories.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/Page/Page.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/loadingIndicator/LoadingIndicator.stories.ts
  • src/components/box/Box.stories.tsx
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/tooltip/Tooltip.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/polyfill.ts
  • src/components/sessionsList/SessionsListToolbar.stories.tsx
  • src/components/sessionsList/SessionListColumn.stories.tsx
  • src/components/overlay/Overlay.tsx
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/app/RouterConfig.tsx
  • src/components/select/LanguageSelectDropdown.stories.ts
  • src/components/card/Card.stories.tsx
  • src/components/appointment/Appointment.stories.ts
  • src/components/editableData/EditableData.stories.ts
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/legalPageWrapper/LegalPageWrapper.stories.ts
  • src/components/app/NavigationSidebar.stories.tsx
  • src/components/sessionsListItem/SessionListItem.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
🔇 Additional comments (13)
src/components/header/Header.stories.ts (1)

1-27: LGTM!

src/components/banUser/BanUser.stories.tsx (1)

1-29: LGTM!

src/components/sessionMenu/SessionMenu.stories.tsx (1)

5-9: 🎯 Functional Correctness

Verify this ref type against the repo’s React 19 typings.

The supplied React 19 docs call out MutableRefObject removal, so this story can break once Storybook is checked against @types/react@19. Prefer a supported ref type or construct the ref inside a render function after confirming the repo’s target typings.

src/components/appointment/Appointment.stories.ts (1)

1-47: LGTM!

src/components/text/Text.stories.ts (1)

5-5: LGTM!

src/components/loadingSpinner/LoadingSpinner.stories.ts (1)

5-5: LGTM!

src/components/headline/Headline.stories.ts (1)

5-5: LGTM!

src/components/emptyState/EmptyState.stories.ts (1)

1-38: LGTM!

src/components/infoTooltip/InfoTooltip.stories.ts (1)

1-43: LGTM!

src/components/loadingIndicator/LoadingIndicator.stories.ts (1)

1-14: LGTM!

src/components/Switch/Switch.stories.ts (1)

1-53: LGTM!

src/components/overlay/Overlay.tsx (1)

10-10: LGTM!

src/components/legalPageWrapper/LegalPageWrapper.stories.ts (1)

1-34: LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/app/AppOrisoConsultantChatSurface.stories.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/app/AppOrisoConsultantChatSurface.stories.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/app/AppOrisoConsultantChatSurface.stories.tsx
Comment on lines +1170 to +1240
function ChatPanel() {
return (
<section style={styles.chatPanel}>
<header style={styles.chatHeader}>
<div style={styles.chatTitleCluster}>
<UserAvatar
username="[email protected]"
displayName="Sanftes Alpaka Kala"
userId="active-chat"
size="32px"
/>
<div>
<div style={styles.chatTitle}>Sanftes Alpaka Kala</div>
</div>
</div>
<div style={styles.headerActions}>
<button
type="button"
aria-label="Audio call preview"
disabled
style={{
...styles.headerActionSoft,
...styles.previewAction
}}
>
<PhoneRoundedIcon fontSize="small" />
</button>
<button
type="button"
aria-label="Video call preview"
disabled
style={{
...styles.headerActionPrimary,
...styles.previewAction
}}
>
<VideocamRoundedIcon fontSize="small" />
</button>
<button
type="button"
aria-label="Supervision preview"
disabled
style={{
...styles.headerActionAccent,
...styles.previewAction
}}
>
<SupervisedUserCircleRoundedIcon fontSize="small" />
</button>
<button
type="button"
aria-label="More actions preview"
disabled
style={{
...styles.headerAction,
...styles.previewAction
}}
>
<MenuVerticalIcon />
</button>
</div>
</header>
<div style={styles.topicDivider}>
<span style={styles.topicPill}>Suchtprobleme</span>
</div>
<div style={styles.messageArea} aria-label="Chatverlauf" />
<div style={styles.composerDock}>
<ComposerPreview />
</div>
</section>
);

@coderabbitai coderabbitai Bot Jun 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift

Replace the hand-drawn chat chrome with shared tokens/components.

This surface is mostly built from inline hex colors, radii, and layout constants for controls and active UI chrome. Since this file is meant to be an MCP-inspectable reference surface, that one-off styling will drift from the real ORISO shell quickly. Reuse existing tokens/classes/components instead of embedding the visual system here.

As per coding guidelines, "Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout."

Also applies to: 1296-1545

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx` around lines
1170 - 1240, The ChatPanel story surface is using hand-crafted inline chrome
styles instead of the shared design system, which will drift from the real
shell. Update ChatPanel and the related story styling to reuse existing tokens,
Sass mixins, and shared components/classes for headers, action buttons,
divider/pills, and composer layout rather than embedding one-off colors, radii,
spacing, and control styles. Keep the visual reference behavior the same, but
source the styling from the existing app patterns used by UserAvatar,
ComposerPreview, and the surrounding story scaffolding so this surface stays
aligned with ORISO shell conventions.

Source: Coding guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/app/RouterConfig.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/askerInfo/AskerInfo.stories.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/sessionMenu/SessionMenu.stories.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/tagSelect/TagSelect.stories.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/twoFactorAuth/TwoFactorAuth.stories.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/components/walkthrough/Walkthrough.stories.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/polyfill.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Storypapst and others added 3 commits June 30, 2026 08:19
@Storypapst @claude
fix(storybook): run Storybook Docker build on Node 22
c4dcc53
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @claude
fix(storybook): address PR review follow-ups
d3c4f0d
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst @claude
fix(storybook): mock app runtime services
a09e307
Cover Storybook-only runtime calls for auth, Matrix, LiveKit, notifications, and local service URLs.

Render explicit live-data placeholders for stories that cannot run without app data.

Fix Headline arg mapping for numeric URL args.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst
Storypapst requested a review from shazia-k June 30, 2026 13:58
This was referenced Jul 1, 2026
[Frontend] Upgrade Storybook 7 -> 10 (after bundler decision = Vite) #349
Closed
EPIC: Modernize outdated frontend toolchains (Frontend, Admin, ElementCall, Element deps) OpenResilienceInitiative/ORISO-Helm#35
Open
@Storypapst @claude
fix(storybook): keep yellow tag text readable
ce81e0a
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Jul 1, 2026
chore: integrate Storybook 10 and M3 chat surface work #351
Merged
Track Frontend Storybook 10 and M3 chat surface integration #352
Closed
@Storypapst

Storypapst commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

Tracked in #352. The combined integration path is draft PR #351.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Jul 2, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/react-dom-shim.ts (1)

5-37: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Do not keep a second copy of the private-fiber fallback.

This duplicates src/polyfill.ts, including the traversal bug above. Extract a shared bounded fallback and import it here so the app polyfill and react-dom alias path cannot diverge.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/react-dom-shim.ts` around lines 5 - 37, The private-fiber fallback in
findDOMNode is duplicated here, which can diverge from the implementation in
polyfill.ts and preserve the traversal bug. Replace the local React fiber
traversal in react-dom-shim.ts by importing and reusing the shared bounded
fallback from the existing polyfill helper, then keep reactDOMWithFindDomNode
wired to that shared findDOMNode so both paths stay consistent.
♻️ Duplicate comments (2)
src/components/registration/RegistrationFlowSurface.stories.tsx (1)

105-110: 📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift

Story still reimplements registration flow state instead of composing real building blocks.

topics/agencies remain story-local datasets driving local useState, rather than the actual registration hooks/components. This is the same concern raised previously — the MCP reference story can still drift from real registration behavior.

As per coding guidelines, "Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/registration/RegistrationFlowSurface.stories.tsx` around lines
105 - 110, The RegistrationFlowSurface story is still duplicating registration
state and data instead of composing the real registration building blocks.
Update the story to use the shared registration hook(s)/components and source
topic/agency selection from the actual flow rather than local topics/agencies
arrays with useState, keeping the story aligned with real behavior; locate the
story setup in RegistrationFlowSurface and replace the local state-driven wiring
with the shared registration implementation.

Source: Coding guidelines

src/components/app/AppOrisoConsultantChatSurface.stories.tsx (1)

644-704: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Shared providers extracted, but session-data wiring still drifts between the two shells.

Extracting AppOrisoConsultantReferenceDataProviders/AppOrisoConsultantRoomProviders addresses part of the earlier concern that AppOrisoRoutingRuntimeProviders and AppOrisoRuntimeProviders were maintaining two partial shells. However, the routing shell (Line 734) still gets session state via the shared RuntimeSessionsDataProvider, while the chat-surface shell (Lines 966-972) bypasses it and hand-wires SessionsDataContext.Provider directly with the static runtimeSessions fixture. Any future behavior added to RuntimeSessionsDataProvider (pagination, live updates) won't reach this story, keeping the two shells inconsistent — the exact drift previously flagged.

Consider reusing RuntimeSessionsDataProvider in AppOrisoRuntimeProviders too, so both shells share one source of session-data truth.

As per coding guidelines, "Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic."

Also applies to: 727-803, 959-989

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx` around lines
644 - 704, The chat-surface story is still bypassing the shared session-data
source by wiring SessionsDataContext.Provider directly with runtimeSessions,
while AppOrisoRoutingRuntimeProviders already uses RuntimeSessionsDataProvider.
Update AppOrisoRuntimeProviders and the related story setup to reuse
RuntimeSessionsDataProvider instead of hand-providing session state, so both
AppOrisoConsultantReferenceDataProviders/AppOrisoConsultantRoomProviders and the
session shell share the same behavior and future session logic stays in one
place.

Sources: Coding guidelines, Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx`:
- Around line 690-701: The RocketChatUsersOfRoomContext fixture in
AppOrisoConsultantChatSurface.stories.tsx has inconsistent participant data: the
provider sets total to 3 while users and moderators are empty. Update the
fixture so the total matches the actual combined entries in users and
moderators, or populate those arrays to reflect a total of 3, keeping the story
data coherent for inspectable UI consumers.

In `@src/components/storybookDesignLinks.ts`:
- Line 4: `APP_ORISO_CHAT_FIGMA_URL` is currently just an alias of
`APP_ORISO_FIGMA_URL`, so the chat design link is not chat-specific. Update the
`storybookDesignLinks` export to point `APP_ORISO_CHAT_FIGMA_URL` at the correct
chat Figma frame, or if it must remain a temporary stand-in, add a brief inline
comment near the constant to make that explicit and avoid it being mistaken for
the final URL.

In `@src/components/tagSelect/TagSelect.tsx`:
- Around line 11-16: TagSelectProps currently mixes controlled and uncontrolled
checkbox props, allowing checked with defaultChecked or checked without an
onChange handler, which can lead to misuse. Refactor the TagSelectProps type in
TagSelect to a discriminated union that separates controlled and uncontrolled
variants, and make sure the controlled branch requires onChange while the
uncontrolled branch uses defaultChecked instead of checked.

In `@src/polyfill.ts`:
- Around line 22-40: The fallback traversal in findDOMNode is walking past the
current component subtree and can return a DOM sibling from a neighboring branch
instead of null. Update the subtree walk in the findDOMNode logic in both
polyfill.ts and react-dom-shim.ts so it stops at the component boundary and only
returns a node found within that component’s own fiber tree. Add a regression
test for a class component that renders null next to a DOM sibling to verify the
result is null.

In `@src/react-dom-shim.ts`:
- Around line 37-42: Storybook Vite is only deduping React DOM, but exact
react-dom imports still bypass the shim and can load React DOM 19 without
findDOMNode. Update the Storybook Vite config in .storybook/main.ts to alias
react-dom to src/react-dom-shim.ts so all react-dom imports resolve through the
shim; keep the existing react-dom wrapper/export behavior in react-dom-shim.ts
unchanged.

---

Outside diff comments:
In `@src/react-dom-shim.ts`:
- Around line 5-37: The private-fiber fallback in findDOMNode is duplicated
here, which can diverge from the implementation in polyfill.ts and preserve the
traversal bug. Replace the local React fiber traversal in react-dom-shim.ts by
importing and reusing the shared bounded fallback from the existing polyfill
helper, then keep reactDOMWithFindDomNode wired to that shared findDOMNode so
both paths stay consistent.

---

Duplicate comments:
In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx`:
- Around line 644-704: The chat-surface story is still bypassing the shared
session-data source by wiring SessionsDataContext.Provider directly with
runtimeSessions, while AppOrisoRoutingRuntimeProviders already uses
RuntimeSessionsDataProvider. Update AppOrisoRuntimeProviders and the related
story setup to reuse RuntimeSessionsDataProvider instead of hand-providing
session state, so both
AppOrisoConsultantReferenceDataProviders/AppOrisoConsultantRoomProviders and the
session shell share the same behavior and future session logic stays in one
place.

In `@src/components/registration/RegistrationFlowSurface.stories.tsx`:
- Around line 105-110: The RegistrationFlowSurface story is still duplicating
registration state and data instead of composing the real registration building
blocks. Update the story to use the shared registration hook(s)/components and
source topic/agency selection from the actual flow rather than local
topics/agencies arrays with useState, keeping the story aligned with real
behavior; locate the story setup in RegistrationFlowSurface and replace the
local state-driven wiring with the shared registration implementation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 261cec73-e39c-45a3-b10a-e426ae04031d

📥 Commits

Reviewing files that changed from the base of the PR and between 0166dfa and ce81e0a.

⛔ Files ignored due to path filters (3)
  • .storybook/main.ts is excluded by none and included by none
  • .storybook/preview.tsx is excluded by none and included by none
  • Dockerfile.storybook is excluded by none and included by none
📒 Files selected for processing (26)
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
  • src/components/app/RouterConfig.test.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/form/OrisoTextField.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/storybookDesignLinks.ts
  • src/components/tag/tag.styles.scss
  • src/components/tag/tag.styles.test.ts
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/tagSelect/TagSelect.tsx
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/polyfill.ts
  • src/react-dom-shim.ts
📜 Review details
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.

Files:

  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/storybookDesignLinks.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/tag/tag.styles.test.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/react-dom-shim.ts
  • src/components/tagSelect/TagSelect.tsx
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/polyfill.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.

Files:

  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/storybookDesignLinks.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/tag/tag.styles.test.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/tag/tag.styles.scss
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/react-dom-shim.ts
  • src/components/tagSelect/TagSelect.tsx
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/polyfill.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
**

⚙️ CodeRabbit configuration file

**: # AGENTS.md

Context First

  • Treat dev as the normal integration branch for ORISO feature PRs unless the task says otherwise.
  • Before non-trivial changes, skim .understand-anything/README.md, .understand-anything/ARCHITECTURE.md, and .understand-anything/knowledge-graph.json for fast repo context.
  • Use CONTEXT.md for Activity Timeline and notification vocabulary; avoid inventing parallel terms.

Frontend Rules

  • Keep behavior in shared hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
  • Reuse existing design tokens, Sass mixins, and component patterns. Avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
  • Preserve Matrix/chat/draft privacy boundaries. Do not move plaintext previews or draft contents into server-visible state.
  • UI changes need accessible focus/keyboard behavior and should not rely on color alone.

Validation

  • Prefer red-green TDD for behavior changes: add or update the smallest test that would fail without the fix, then implement.
  • Useful commands:
    • npm run test:unit
    • npm run lint:scripts
    • npm run lint:style
    • npm run build
  • If a full command is too expensive or blocked by existing unrelated failures, run the narrowest relevant command and state the blocker precisely.

Review Expectations

  • Cursor should compare PRs against origin/dev for normal ORISO feature work.
  • CodeRabbit is optional/manual and should not be treated as the primary automated reviewer.
  • Automated review should flag missing tests, duplicated UI architecture, unsafe privacy changes, and mergeability risks.
  • Only auto-fix issues that are clearly scoped and testable. Leave architectural or ambiguous changes as review comments.

**: # Activity Timeline & Notifications

The consultant- and client-facing history of everything that happens around a case: enquiries, accept/deny, messages, drafts, appointments, handovers, call...

Files:

  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/storybookDesignLinks.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/tag/tag.styles.test.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/tag/tag.styles.scss
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/react-dom-shim.ts
  • src/components/tagSelect/TagSelect.tsx
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/polyfill.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
src/**/*.{ts,tsx,js,jsx}

⚙️ CodeRabbit configuration file

src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.

Files:

  • src/components/notificationsCenter/NotificationsCenter.stories.ts
  • src/components/registration/topicSelection/topicSelection.stories.ts
  • src/components/twoFactorAuth/TwoFactorAuth.stories.ts
  • src/components/askerInfo/AskerInfo.stories.ts
  • src/components/storybookDesignLinks.ts
  • src/components/walkthrough/Walkthrough.stories.ts
  • src/components/registration/zipcodeInput/zipcodeInput.stories.ts
  • src/components/app/RouterConfig.test.ts
  • src/components/form/OrisoTextField.stories.ts
  • src/components/tag/tag.styles.test.ts
  • src/components/banner/Banner.stories.tsx
  • src/components/sessionMenu/SessionMenu.stories.tsx
  • src/components/tagSelect/TagSelect.stories.ts
  • src/components/headline/Headline.stories.ts
  • src/components/registration/stepBar/StepBar.stories.ts
  • src/react-dom-shim.ts
  • src/components/tagSelect/TagSelect.tsx
  • src/components/scrollableSection/ScrollableSection.stories.tsx
  • src/polyfill.ts
  • src/components/registration/welcomeScreen/welcomeScreen.stories.ts
  • src/components/registration/RegistrationRuntime.stories.tsx
  • src/components/registration/agencySelection/agencySelection.stories.ts
  • src/components/registration/RegistrationFlowSurface.stories.tsx
  • src/components/registration/accountData/accountData.stories.ts
  • src/components/app/AppOrisoConsultantChatSurface.stories.tsx
src/**/*.scss

⚙️ CodeRabbit configuration file

src/**/*.scss: Prefer existing design tokens, mixins, and shared component states.
Flag hardcoded one-off styling when the same control/state already
exists elsewhere. Active/focus/list-item behavior should stay shared.

Files:

  • src/components/tag/tag.styles.scss
🔇 Additional comments (27)
src/components/app/RouterConfig.test.ts (1)

92-105: LGTM! Addresses the prior review request to assert the /drafts route in profileRoutes, not just the nav entry.

src/components/tagSelect/TagSelect.tsx (1)

18-30: LGTM! Checkbox correctly retains keyboard/label association (htmlFor/id), matching accessible focus/keyboard requirements.

src/components/tagSelect/TagSelect.stories.ts (1)

41-50: LGTM! Addresses the earlier request for a checked/selected-state story.

src/components/tag/tag.styles.test.ts (1)

1-37: LGTM! Good regression coverage compiling the actual SCSS rather than asserting on source text.

src/components/tag/tag.styles.scss (1)

13-16: 🗄️ Data Integrity & Integration

$secondary fallback matches the expected readable value.

src/components/registration/RegistrationFlowSurface.stories.tsx (1)

58-103: Radiogroup keyboard/ARIA semantics now implemented correctly.

role="radio"/aria-checked/tabIndex roving focus plus Arrow/Home/End/Space/Enter handling matches the WAI-ARIA APG radiogroup pattern, and hiding the underlying MUI Radio via aria-hidden avoids duplicate announcements. This resolves the earlier concern about plain buttons lacking radio semantics.

Also applies to: 138-176, 240-266

src/components/registration/RegistrationRuntime.stories.tsx (1)

19-35: Session storage restoration fixed.

Snapshotting the previous registrationSessionStorageKey value and restoring it in cleanup resolves the earlier story-isolation concern.

src/components/registration/accountData/accountData.stories.ts (1)

1-17: LGTM!

src/components/registration/agencySelection/agencySelection.stories.ts (1)

1-17: LGTM!

src/components/registration/stepBar/StepBar.stories.ts (1)

1-17: LGTM!

src/components/registration/topicSelection/topicSelection.stories.ts (1)

1-17: Shared Figma constant extracted as requested.

Resolves the earlier nitpick asking to centralize the ORISO M3 Figma URL instead of duplicating it per story.

src/components/registration/welcomeScreen/welcomeScreen.stories.ts (1)

1-17: LGTM!

src/components/registration/zipcodeInput/zipcodeInput.stories.ts (1)

1-17: LGTM!

src/components/scrollableSection/ScrollableSection.stories.tsx (1)

22-83: LGTM!

src/components/walkthrough/Walkthrough.stories.ts (1)

1-26: LGTM!

src/components/notificationsCenter/NotificationsCenter.stories.ts (1)

1-26: LGTM!

src/components/headline/Headline.stories.ts (1)

4-28: 🎯 Functional Correctness

No change needed for the headline story controls. The mapping is intentionally adapting the numeric select labels to the string HeadlineLevel props that Headline expects.

			> Likely an incorrect or invalid review comment.
src/components/banner/Banner.stories.tsx (2)

23-29: 📐 Maintainability & Code Quality

Previous hardcoded-spacing concern resolved.

Switching to Box with sx={{ px: 2, py: 1.5 }} uses MUI's theme spacing scale instead of raw 12px 16px inline CSS, addressing the earlier guideline violation.

Source: Coding guidelines


31-49: LGTM!

src/components/twoFactorAuth/TwoFactorAuth.stories.ts (1)

3-12: 📐 Maintainability & Code Quality

Placeholder Figma link fixed.

REPLACE_FILE_KEY replaced with the shared APP_ORISO_FIGMA_URL constant, resolving the prior review comment.

src/components/askerInfo/AskerInfo.stories.ts (2)

3-12: 📐 Maintainability & Code Quality

Placeholder Figma link fixed.

Same fix as sibling stories — REPLACE_FILE_KEY replaced with APP_ORISO_FIGMA_URL.


21-26: 📐 Maintainability & Code Quality

Keep the shared App.Oriso design link as-is. The same APP_ORISO_FIGMA_URL is intentionally reused for the app-level stories here; Banner doesn’t use it.

			> Likely an incorrect or invalid review comment.
src/components/form/OrisoTextField.stories.ts (1)

30-32: 📐 Maintainability & Code Quality

Mislabeled "read only" story fixed.

Disabled story now correctly labels its value/args as "Disabled" instead of "Read only", resolving the prior a11y-copy concern.

Source: Coding guidelines

src/components/sessionMenu/SessionMenu.stories.tsx (2)

3-16: 📐 Maintainability & Code Quality

Placeholder Figma link fixed.

REPLACE_FILE_KEY replaced with APP_ORISO_FIGMA_URL, resolving the prior review comment.


5-5: LGTM!

src/components/app/AppOrisoConsultantChatSurface.stories.tsx (1)

54-57: LGTM!

Also applies to: 408-408

src/polyfill.ts (1)

46-55: LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/app/AppOrisoConsultantChatSurface.stories.tsx
Comment on lines +690 to +701
<RocketChatUsersOfRoomContext.Provider
value={{
ready: true,
users: [],
moderators: [],
total: 3,
reload: async () => []
}}
>
{children}
</RocketChatUsersOfRoomContext.Provider>
</RocketChatSubscriptionsContext.Provider>

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fixture mismatch: total: 3 but users: [].

RocketChatUsersOfRoomContext reports total: 3 while users/moderators are empty. Since this is meant to be an MCP-inspectable reference fixture, any participant-count UI will show "3" with an empty list, giving agents/consumers inconsistent data.

🐛 Proposed fix
 			<RocketChatUsersOfRoomContext.Provider
 				value={{
 					ready: true,
 					users: [],
 					moderators: [],
-					total: 3,
+					total: 0,
 					reload: async () => []
 				}}
 			>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<RocketChatUsersOfRoomContext.Provider
value={{
ready: true,
users: [],
moderators: [],
total: 3,
reload: async () => []
}}
>
{children}
</RocketChatUsersOfRoomContext.Provider>
</RocketChatSubscriptionsContext.Provider>
<RocketChatUsersOfRoomContext.Provider
value={{
ready: true,
users: [],
moderators: [],
total: 0,
reload: async () => []
}}
>
{children}
</RocketChatUsersOfRoomContext.Provider>
</RocketChatSubscriptionsContext.Provider>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/app/AppOrisoConsultantChatSurface.stories.tsx` around lines
690 - 701, The RocketChatUsersOfRoomContext fixture in
AppOrisoConsultantChatSurface.stories.tsx has inconsistent participant data: the
provider sets total to 3 while users and moderators are empty. Update the
fixture so the total matches the actual combined entries in users and
moderators, or populate those arrays to reflect a total of 3, keeping the story
data coherent for inspectable UI consumers.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/storybookDesignLinks.ts
export const APP_ORISO_FIGMA_URL =
'https://www.figma.com/design/L2mOFNSGdxPPx1XA4HFAog/App.Oriso?node-id=316-17725&t=XHH5HQNmA8DUWl2U-0';

export const APP_ORISO_CHAT_FIGMA_URL = APP_ORISO_FIGMA_URL;

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

APP_ORISO_CHAT_FIGMA_URL aliases the generic app URL — likely a placeholder.

Same node-id as APP_ORISO_FIGMA_URL, so the chat surface's "Design" tab won't link to a chat-specific Figma frame. If this is a stand-in until the real chat frame link is available, a short comment would prevent it from going unnoticed.

💡 Suggested tweak
-export const APP_ORISO_CHAT_FIGMA_URL = APP_ORISO_FIGMA_URL;
+// TODO: point to the actual chat-surface Figma frame once available
+export const APP_ORISO_CHAT_FIGMA_URL = APP_ORISO_FIGMA_URL;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export const APP_ORISO_CHAT_FIGMA_URL = APP_ORISO_FIGMA_URL;
// TODO: point to the actual chat-surface Figma frame once available
export const APP_ORISO_CHAT_FIGMA_URL = APP_ORISO_FIGMA_URL;
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/storybookDesignLinks.ts` at line 4, `APP_ORISO_CHAT_FIGMA_URL`
is currently just an alias of `APP_ORISO_FIGMA_URL`, so the chat design link is
not chat-specific. Update the `storybookDesignLinks` export to point
`APP_ORISO_CHAT_FIGMA_URL` at the correct chat Figma frame, or if it must remain
a temporary stand-in, add a brief inline comment near the constant to make that
explicit and avoid it being mistaken for the final URL.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/tagSelect/TagSelect.tsx
Comment on lines +11 to +16
export interface TagSelectProps extends TagItem {
checked?: boolean;
defaultChecked?: boolean;
handleTagSelectClick?: React.MouseEventHandler<HTMLInputElement>;
onChange?: React.ChangeEventHandler<HTMLInputElement>;
}

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

Does React warn when both checked and defaultChecked are passed to the same input?

💡 Result:

Yes, React will trigger a warning if both the checked and defaultChecked props are passed to the same input element [1][2]. React distinguishes between controlled and uncontrolled components to manage form state [3][4]. Providing both checked (used for controlled inputs) and defaultChecked (used for uncontrolled inputs) creates a conflict, as an input cannot be both controlled and uncontrolled simultaneously [3][1][5]. The warning instructs developers to decide between the two paradigms and remove one of the conflicting props [1]. In practice, this warning helps prevent issues where an input's state might behave unpredictably or become stuck, as it forces a clear separation between components that are fully managed by React state and those that manage their own initial state [3][5][6]. Tools like ESLint (via the eslint-plugin-react) also provide specific rules to enforce this and warn developers during development [7].

Citations:

  • 1: [Checkbox] warning.js:44 Warning: Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props mui/material-ui#5031
  • 2: Warn when value and defaultValue props are both specified on input or textarea. react/react#5823
  • 3: https://react.dev/reference/react-dom/components/input
  • 4: https://legacy.reactjs.org/docs/uncontrolled-components.html
  • 5: Warn when an input switches between controlled and uncontrolled react/react#5821
  • 6: Controlled inputs with the potential for undefined value react/react#6222
  • 7: https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/checked-requires-onchange-or-readonly.md

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== TagSelect component ==\n'
sed -n '1,220p' src/components/tagSelect/TagSelect.tsx

printf '\n== TagSelect usages ==\n'
rg -n "\bTagSelect\b" src --glob '*.{ts,tsx,js,jsx}'

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 1496


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '1,220p' src/components/tagSelect/TagSelect.stories.ts

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 1129


Separate controlled and uncontrolled checkbox props. TagSelectProps still allows checked + defaultChecked, and checked without a change handler. That triggers React’s controlled-input warning and makes the checkbox easy to misuse; a discriminated union here would prevent the footgun.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/tagSelect/TagSelect.tsx` around lines 11 - 16, TagSelectProps
currently mixes controlled and uncontrolled checkbox props, allowing checked
with defaultChecked or checked without an onChange handler, which can lead to
misuse. Refactor the TagSelectProps type in TagSelect to a discriminated union
that separates controlled and uncontrolled variants, and make sure the
controlled branch requires onChange while the uncontrolled branch uses
defaultChecked instead of checked.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/polyfill.ts
Comment on lines +22 to 40
if (componentOrElement._reactInternals) {
const fiber = componentOrElement._reactInternals;
let node = fiber;
while (node) {
if (node.stateNode && node.stateNode.nodeType === 1) {
return node.stateNode;
}
if (node.child) {
node = node.child;
} else if (node.sibling) {
node = node.sibling;
} else {
while (node && !node.sibling && node.return) {
node = node.return;
}
if (node.child) {
node = node.child;
} else if (node.sibling) {
if (node) {
node = node.sibling;
} else {
while (node && !node.sibling && node.return) {
node = node.return;
}
if (node) {
node = node.sibling;
}
}
}

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== src/polyfill.ts ==\n'
wc -l src/polyfill.ts
cat -n src/polyfill.ts | sed -n '1,140p'

printf '\n== findDOMNode references ==\n'
rg -n "findDOMNodeFallback|findDOMNode" src test tests __tests__ . -g '!node_modules' || true

printf '\n== test files mentioning polyfill ==\n'
rg -n "polyfill|findDOMNodeFallback|reactDOMWithFindDomNode" src test tests __tests__ -g '*.{ts,tsx,js,jsx}' || true

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 5511


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== src/react-dom-shim.ts ==\n'
wc -l src/react-dom-shim.ts
cat -n src/react-dom-shim.ts | sed -n '1,160p'

printf '\n== polyfill/shim imports ==\n'
rg -n "react-dom-shim|./polyfill|reactDOMWithFindDomNode|findDOMNodeFallback|findDOMNode =" src -g '*.{ts,tsx,js,jsx}' || true

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 2666


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
class Node:
    def __init__(self, name, nodeType=None):
        self.name = name
        self.nodeType = nodeType
        self.stateNode = self if nodeType == 1 else None
        self.child = None
        self.sibling = None
        self.return_ = None

def walk(componentOrElement):
    if componentOrElement is None:
        return None
    if getattr(componentOrElement, "nodeType", None) == 1:
        return componentOrElement.name
    if hasattr(componentOrElement, "_reactInternals"):
        fiber = componentOrElement._reactInternals
        node = fiber
        while node:
            if getattr(node, "stateNode", None) and getattr(node.stateNode, "nodeType", None) == 1:
                return node.stateNode.name
            if node.child:
                node = node.child
            elif node.sibling:
                node = node.sibling
            else:
                while node and not node.sibling and getattr(node, "return_", None):
                    node = node.return_
                if node:
                    node = node.sibling
    return None

# composite component that renders null, with a DOM sibling in the parent list
root = Node("root")
null_component = Node("null_component")
dom_sibling = Node("dom_sibling", nodeType=1)

root.child = null_component
null_component.return_ = root
null_component.sibling = dom_sibling
dom_sibling.return_ = root

wrapper = type("Wrapper", (), {})()
wrapper._reactInternals = null_component

print("result:", walk(wrapper))
PY

printf '\n== tests mentioning react-dom-shim or polyfill ==\n'
rg -n "react-dom-shim|polyfill" src -g '*.{test,spec}.{ts,tsx,js,jsx}' -g '*.test.*' -g '*.spec.*' || true

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 248


Keep the fallback walk within the component subtree.
A null-rendering component with a DOM sibling returns that sibling here, so findDOMNode can resolve an unrelated element instead of null. The same traversal exists in src/react-dom-shim.ts, so both paths need the same guard. Add a regression for a class component that renders null next to a DOM sibling.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/polyfill.ts` around lines 22 - 40, The fallback traversal in findDOMNode
is walking past the current component subtree and can return a DOM sibling from
a neighboring branch instead of null. Update the subtree walk in the findDOMNode
logic in both polyfill.ts and react-dom-shim.ts so it stops at the component
boundary and only returns a node found within that component’s own fiber tree.
Add a regression test for a class component that renders null next to a DOM
sibling to verify the result is null.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/react-dom-shim.ts
Comment on lines +37 to 42
const reactDOMWithFindDomNode = Object.assign({}, ReactDOM, { findDOMNode });

// Export a local react-dom wrapper with findDOMNode without mutating the ESM namespace.
export default reactDOMWithFindDomNode;
export * from '../node_modules/react-dom/index.js';
export { findDOMNode };

@coderabbitai coderabbitai Bot Jul 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Expect Storybook/Vite config to alias exact react-dom imports to src/react-dom-shim.ts.
rg -n "react-dom\\$|react-dom-shim|alias|resolve" .storybook vite.config.* config --glob '!**/node_modules/**'

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 8138


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the active Storybook config and any Vite-specific Storybook setup.
git ls-files .storybook package.json vite.config.* | sed -n '1,120p'
echo '--- .storybook/main.ts ---'
wc -l .storybook/main.ts
sed -n '1,220p' .storybook/main.ts
echo '--- package.json scripts ---'
sed -n '1,220p' package.json | python3 - <<'PY'
import sys, json
data=json.load(sys.stdin)
for k,v in data.get("scripts", {}).items():
    if "storybook" in k.lower() or "vite" in v.lower() or "storybook" in v.lower():
        print(f"{k}: {v}")
PY

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 5614


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the active Storybook config and any Vite-specific Storybook setup.
git ls-files .storybook package.json vite.config.* | sed -n '1,120p'
echo '--- .storybook/main.ts ---'
wc -l .storybook/main.ts
sed -n '1,220p' .storybook/main.ts
echo '--- package.json scripts ---'
python3 - <<'PY'
import json
from pathlib import Path
data=json.loads(Path("package.json").read_text())
for k,v in data.get("scripts", {}).items():
    if "storybook" in k.lower() or "vite" in v.lower() or "storybook" in v.lower():
        print(f"{k}: {v}")
PY

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 4999


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check which Storybook renderer/builder the repo is actually configured for.
rg -n "`@storybook/react-vite`|`@storybook/react-webpack5`|builder-vite|builder-webpack|storybook" package.json .storybook --glob '!**/node_modules/**'

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 9100


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- .storybook/main.ts (relevant slices) ---'
nl -ba .storybook/main.ts | sed -n '1,220p'
echo '--- package.json storybook / vite / builder deps ---'
python3 - <<'PY'
import json
from pathlib import Path
data=json.loads(Path("package.json").read_text())
for key in ("dependencies","devDependencies","peerDependencies"):
    print(f"[{key}]")
    deps=data.get(key,{})
    for name in sorted(deps):
        if "storybook" in name.lower() or "vite" in name.lower() or "react-dom" in name.lower():
            print(f"{name}: {deps[name]}")
PY

Repository: OpenResilienceInitiative/ORISO-Frontend

Length of output: 262


Alias exact react-dom imports to src/react-dom-shim.ts in Storybook Vite. .storybook/main.ts only dedupes react-dom; it does not redirect exact imports to the shim, so Storybook can still load React DOM 19 without findDOMNode.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/react-dom-shim.ts` around lines 37 - 42, Storybook Vite is only deduping
React DOM, but exact react-dom imports still bypass the shim and can load React
DOM 19 without findDOMNode. Update the Storybook Vite config in
.storybook/main.ts to alias react-dom to src/react-dom-shim.ts so all react-dom
imports resolve through the shim; keep the existing react-dom wrapper/export
behavior in react-dom-shim.ts unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Storypapst

Storypapst commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Rechecked this against current origin/dev and the Storybook/M3 integration line. This draft should be treated as superseded by #351, not as the branch to repair now.

#351 (chore/frontend-storybook-m3-integration) carries the Storybook 10 + Vite + MCP work from this PR together with the M3/chat-surface integration, is based on current dev after today's rebase, and has fresh local validation posted there. This PR remains DIRTY because it is the older draft branch, not because its business logic still needs to be merged from here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst
Merge remote-tracking branch 'origin/dev' into HEAD
fa2a3c4
# Conflicts:
#	.storybook/main.ts
#	.storybook/preview-head.html
#	src/components/sessionsListItem/SessionListItem.stories.tsx
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread package.json
"@mui/material": "^5.18.0",
"@onlineberatung/onlineberatung-frontend-extensions": "file:src/extensions",
"@stomp/stompjs": "^7.0.0",
"@storybook/addon-designs": "^11.1.3",

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0: Move @storybook/addon-designs, @storybook/addon-mcp, and @storybook/react-vite (and likely vite / vite-plugin-svgr / @vitejs/plugin-react) to devDependencies. These are build/dev tooling and should not ship in production installs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread .storybook/main.ts
const projectNodeModules = path.join(projectRoot, 'node_modules');
const requireProject = createRequire(path.join(projectRoot, 'package.json'));
// PROOF/build-out config (SB10 + Vite). Original SB7/webpack config kept as main.ts.sb7.bak.
// Hardening (full preview shell) still pending.

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Stale comment — the preview shell is largely implemented in preview.tsx. Please update or remove so future contributors are not misled.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread .storybook/main.ts
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-i18n'
stories: [

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0: This broad glob can include unmigrated SB7-era stories that still reference removed packages. Consider an explicit allowlist (or ! excludes) until all legacy stories are on SB10 / @storybook/react-vite patterns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread .storybook/preview.tsx
return null;
};

const installStorybookFetchMocks = () => {

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: preview.tsx is ~980 lines. Suggest extracting fetch/WebSocket mocks, fixtures, and MuiStoryShell into .storybook/mocks/ + .storybook/decorators/ modules; keep preview.tsx as wiring only.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread src/components/storybookDesignLinks.ts
export const APP_ORISO_FIGMA_URL =
'https://www.figma.com/design/L2mOFNSGdxPPx1XA4HFAog/App.Oriso?node-id=316-17725&t=XHH5HQNmA8DUWl2U-0';

// TODO: point to the actual chat-surface Figma frame once available

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: APP_ORISO_CHAT_FIGMA_URL reuses the whole App.Oriso frame. For the Figma MCP + Storybook MCP loop, add per-component node links (or a tracked checklist issue for each needs-data organism).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread src/components/registration/RegistrationFlowSurface.stories.tsx
@@ -0,0 +1,569 @@
import * as React from 'react';

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0: ~570 lines of hand-built registration UI will drift from production. Either compose real registration building blocks, or rename/document as a visual reference template (not a runtime mirror for MCP).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread Dockerfile.storybook
@@ -1,4 +1,4 @@
ARG NODE_VERSION=18.16.1
ARG NODE_VERSION=22.12.0

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: Node 22 here vs Node 18 in Storybook PR CI (node-build). Align versions to reduce CI/Docker surprises.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread src/components/app/RouterConfig.tsx
large: 'navigation.activity'
}
},
{

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Scope note — adding /drafts to the consultant nav is a product fix (route already existed). Please call this out in the PR body under non-Storybook changes so reviewers know it is intentional.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@shazia-k

shazia-k commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

P1 (CI verification): The PR description claims Playwright headless verification (57 render / 13 empty / 4 needs-data / 0 crashes), but there is no committed script or CI step for it yet — only build-storybook + Docker validation in .github/workflows/ci-storybook-pull-request.yml. Suggest adding a job that serves storybook-static and asserts no uncaught story errors + correct data-sb-needs-data classification so regressions are reproducible.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shazia-k
shazia-k reviewed Jul 2, 2026
View reviewed changes
Comment thread package.json
"@storybook/react": "^7.0.26",
"@storybook/react-webpack5": "^7.0.18",
"@storybook/testing-library": "^0.1.0",
"@storybook/react": "^10.4.6",

@shazia-k shazia-k Jul 2, 2026

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move Storybook/Vite deps to devDependencies

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kiodreambau kiodreambau closed this pull request by merging all changes into dev in 1a4f225 Jul 7, 2026
@kiodreambau
kiodreambau deleted the feat/storybook-mcp branch July 7, 2026 06:58
This was referenced Jul 17, 2026
feat(navigation): rebuild mobile bottom nav as M3 navigation bar #484
Merged
feat(tour): Frontend Joyride adapter, Storybook matrix, intro.js-react migration (TOUR-01) #524
Merged
refactor(navigation): enhance mobile navigation experience and update… #554
Merged
Feature/storybook resuable components #641
Closed
@Storypapst Storypapst mentioned this pull request Jul 22, 2026
feat(storybook): Storybook 10 + Vite + Storybook MCP, atomic story coverage #652
Closed
This was referenced Jul 30, 2026
Storybook: cover the chat bubble and all message variants, incl. the Carimat Erstantwort sequence #826
Closed
Storybook: Element Call token mapping and live embed story #899
Closed
Storybook: live --m3-* token reference and scheme switcher #898
Closed
feat(theme): put Element Call on the OrisoScheme contract, show the scheme in Storybook #902
Merged
Animations: Storybook overview of the whole set #935
Open
Storybook Docker validation flakes with EEXIST on storybook-static/static #939
Closed
Storybook icon catalog with usage cross-reference #951
Closed
fix(composer): make the Send-to selector obey its own rules (#894) #948
Merged
@Storypapst Storypapst mentioned this pull request Aug 7, 2026
[UI-MOD-01A] Storybook 10 Vite MCP and TypeScript checks #354
Closed
5 tasks
This was referenced Aug 12, 2026
test(storybook): run every story as a component test in CI #1041
Merged
Registration turn 8: mobile density components per the final design (8a–8d) #1078
Merged
feat(product-tour): add mail-counselling consultant tour and generic tour host #1116
Merged
@Storypapst Storypapst mentioned this pull request Oct 20, 2026
Adopt Vite Plus and Storybook 10.6 with verified product builds and trustworthy design-system checks #1611
Open
1 of 50 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k left review comments
@coderabbitai coderabbitai[bot] coderabbitai[bot] requested changes
+1 more reviewer
@sentry sentry[bot] sentry[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Storypapst @shazia-k @kiodreambau
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.