GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(storybook): Storybook 10 + Vite + Storybook MCP, atomic story coverage by Storypapst · Pull Request #336 · OpenResilienceInitiative/ORISO-Frontend Conversation
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis 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. ChangesComponent Storybook Stories
Estimated code review effort: 3 (Moderate) | ~25 minutes Runtime Storybook Fixtures & Drafts Navigation
Estimated code review effort: 4 (Complex) | ~60 minutes TagSelect Controlled Checkbox & Tag Color Fix
Estimated code review effort: 2 (Simple) | ~15 minutes ReactDOM findDOMNode Polyfill Refactor
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Suggested labels: Suggested reviewers: Reviewer notes (keeping it strict): verify the 🚥 Pre-merge checks | ✅ 5 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 20
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.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: f1da7138-0998-43ac-9041-7694d4ca7b0a
.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 nonepackage-lock.json is excluded by !**/package-lock.json and included by nonepackage.json is excluded by none and included by nonetsconfig.json is excluded by none and included by nonesrc/components/Page/Page.stories.tsxsrc/components/Switch/Switch.stories.tssrc/components/app/AppOrisoConsultantChatSurface.stories.tsxsrc/components/app/NavigationSidebar.stories.tsxsrc/components/app/RouterConfig.test.tssrc/components/app/RouterConfig.tsxsrc/components/appointment/Appointment.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/banUser/BanUser.stories.tsxsrc/components/banner/Banner.stories.tsxsrc/components/box/Box.stories.tsxsrc/components/card/Card.stories.tsxsrc/components/editableData/EditableData.stories.tssrc/components/emptyState/EmptyState.stories.tssrc/components/flyoutMenu/FlyoutMenu.stories.tsxsrc/components/form/OrisoTextField.stories.tssrc/components/generateQrCode/GenerateQrCode.stories.tssrc/components/header/Header.stories.tssrc/components/headline/Headline.stories.tssrc/components/infoTooltip/InfoTooltip.stories.tssrc/components/legalPageWrapper/LegalPageWrapper.stories.tssrc/components/loadingIndicator/LoadingIndicator.stories.tssrc/components/loadingSpinner/LoadingSpinner.stories.tssrc/components/modal/Modal.stories.tsxsrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/overlay/Overlay.tsxsrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/stepBar/StepBar.stories.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/select/LanguageSelectDropdown.stories.tssrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/sessionsList/SessionListColumn.stories.tsxsrc/components/sessionsList/SessionsListToolbar.stories.tsxsrc/components/sessionsListItem/SessionListItem.stories.tsxsrc/components/tag/Tag.stories.tssrc/components/tagSelect/TagSelect.stories.tssrc/components/text/Text.stories.tssrc/components/tooltip/Tooltip.stories.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/walkthrough/Walkthrough.stories.tssrc/polyfill.ts📄 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.tssrc/components/form/OrisoTextField.stories.tssrc/components/banUser/BanUser.stories.tsxsrc/components/walkthrough/Walkthrough.stories.tssrc/components/banner/Banner.stories.tsxsrc/components/text/Text.stories.tssrc/components/app/RouterConfig.test.tssrc/components/loadingSpinner/LoadingSpinner.stories.tssrc/components/generateQrCode/GenerateQrCode.stories.tssrc/components/headline/Headline.stories.tssrc/components/emptyState/EmptyState.stories.tssrc/components/Switch/Switch.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/tag/Tag.stories.tssrc/components/flyoutMenu/FlyoutMenu.stories.tsxsrc/components/infoTooltip/InfoTooltip.stories.tssrc/components/modal/Modal.stories.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/Page/Page.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/loadingIndicator/LoadingIndicator.stories.tssrc/components/box/Box.stories.tsxsrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/tooltip/Tooltip.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/polyfill.tssrc/components/sessionsList/SessionsListToolbar.stories.tsxsrc/components/sessionsList/SessionListColumn.stories.tsxsrc/components/overlay/Overlay.tsxsrc/components/registration/stepBar/StepBar.stories.tssrc/components/app/RouterConfig.tsxsrc/components/select/LanguageSelectDropdown.stories.tssrc/components/card/Card.stories.tsxsrc/components/appointment/Appointment.stories.tssrc/components/editableData/EditableData.stories.tssrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/legalPageWrapper/LegalPageWrapper.stories.tssrc/components/app/NavigationSidebar.stories.tsxsrc/components/sessionsListItem/SessionListItem.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/app/AppOrisoConsultantChatSurface.stories.tsx📄 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.tssrc/components/form/OrisoTextField.stories.tssrc/components/banUser/BanUser.stories.tsxsrc/components/walkthrough/Walkthrough.stories.tssrc/components/banner/Banner.stories.tsxsrc/components/text/Text.stories.tssrc/components/app/RouterConfig.test.tssrc/components/loadingSpinner/LoadingSpinner.stories.tssrc/components/generateQrCode/GenerateQrCode.stories.tssrc/components/headline/Headline.stories.tssrc/components/emptyState/EmptyState.stories.tssrc/components/Switch/Switch.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/tag/Tag.stories.tssrc/components/flyoutMenu/FlyoutMenu.stories.tsxsrc/components/infoTooltip/InfoTooltip.stories.tssrc/components/modal/Modal.stories.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/Page/Page.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/loadingIndicator/LoadingIndicator.stories.tssrc/components/box/Box.stories.tsxsrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/tooltip/Tooltip.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/polyfill.tssrc/components/sessionsList/SessionsListToolbar.stories.tsxsrc/components/sessionsList/SessionListColumn.stories.tsxsrc/components/overlay/Overlay.tsxsrc/components/registration/stepBar/StepBar.stories.tssrc/components/app/RouterConfig.tsxsrc/components/select/LanguageSelectDropdown.stories.tssrc/components/card/Card.stories.tsxsrc/components/appointment/Appointment.stories.tssrc/components/editableData/EditableData.stories.tssrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/legalPageWrapper/LegalPageWrapper.stories.tssrc/components/app/NavigationSidebar.stories.tsxsrc/components/sessionsListItem/SessionListItem.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/app/AppOrisoConsultantChatSurface.stories.tsx⚙️ CodeRabbit configuration file
**: # AGENTS.mdContext First
- Treat
devas 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.jsonfor fast repo context.- Use
CONTEXT.mdfor 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:unitnpm run lint:scriptsnpm run lint:stylenpm 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/devfor 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 & NotificationsThe 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.tssrc/components/form/OrisoTextField.stories.tssrc/components/banUser/BanUser.stories.tsxsrc/components/walkthrough/Walkthrough.stories.tssrc/components/banner/Banner.stories.tsxsrc/components/text/Text.stories.tssrc/components/app/RouterConfig.test.tssrc/components/loadingSpinner/LoadingSpinner.stories.tssrc/components/generateQrCode/GenerateQrCode.stories.tssrc/components/headline/Headline.stories.tssrc/components/emptyState/EmptyState.stories.tssrc/components/Switch/Switch.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/tag/Tag.stories.tssrc/components/flyoutMenu/FlyoutMenu.stories.tsxsrc/components/infoTooltip/InfoTooltip.stories.tssrc/components/modal/Modal.stories.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/Page/Page.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/loadingIndicator/LoadingIndicator.stories.tssrc/components/box/Box.stories.tsxsrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/tooltip/Tooltip.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/polyfill.tssrc/components/sessionsList/SessionsListToolbar.stories.tsxsrc/components/sessionsList/SessionListColumn.stories.tsxsrc/components/overlay/Overlay.tsxsrc/components/registration/stepBar/StepBar.stories.tssrc/components/app/RouterConfig.tsxsrc/components/select/LanguageSelectDropdown.stories.tssrc/components/card/Card.stories.tsxsrc/components/appointment/Appointment.stories.tssrc/components/editableData/EditableData.stories.tssrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/legalPageWrapper/LegalPageWrapper.stories.tssrc/components/app/NavigationSidebar.stories.tsxsrc/components/sessionsListItem/SessionListItem.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/app/AppOrisoConsultantChatSurface.stories.tsx⚙️ 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.tssrc/components/form/OrisoTextField.stories.tssrc/components/banUser/BanUser.stories.tsxsrc/components/walkthrough/Walkthrough.stories.tssrc/components/banner/Banner.stories.tsxsrc/components/text/Text.stories.tssrc/components/app/RouterConfig.test.tssrc/components/loadingSpinner/LoadingSpinner.stories.tssrc/components/generateQrCode/GenerateQrCode.stories.tssrc/components/headline/Headline.stories.tssrc/components/emptyState/EmptyState.stories.tssrc/components/Switch/Switch.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/tag/Tag.stories.tssrc/components/flyoutMenu/FlyoutMenu.stories.tsxsrc/components/infoTooltip/InfoTooltip.stories.tssrc/components/modal/Modal.stories.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/Page/Page.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/loadingIndicator/LoadingIndicator.stories.tssrc/components/box/Box.stories.tsxsrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/tooltip/Tooltip.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/polyfill.tssrc/components/sessionsList/SessionsListToolbar.stories.tsxsrc/components/sessionsList/SessionListColumn.stories.tsxsrc/components/overlay/Overlay.tsxsrc/components/registration/stepBar/StepBar.stories.tssrc/components/app/RouterConfig.tsxsrc/components/select/LanguageSelectDropdown.stories.tssrc/components/card/Card.stories.tsxsrc/components/appointment/Appointment.stories.tssrc/components/editableData/EditableData.stories.tssrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/legalPageWrapper/LegalPageWrapper.stories.tssrc/components/app/NavigationSidebar.stories.tsxsrc/components/sessionsListItem/SessionListItem.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/app/AppOrisoConsultantChatSurface.stories.tsxsrc/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 CorrectnessVerify this ref type against the repo’s React 19 typings.
The supplied React 19 docs call out
MutableRefObjectremoval, 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| 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> | ||
| ); |
There was a problem 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
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
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]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@coderabbitai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
src/react-dom-shim.ts (1)
5-37: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick winDo 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 andreact-domalias 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.
src/components/registration/RegistrationFlowSurface.stories.tsx (1)
105-110: 📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy liftStory still reimplements registration flow state instead of composing real building blocks.
topics/agenciesremain story-local datasets driving localuseState, 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 winShared providers extracted, but session-data wiring still drifts between the two shells.
Extracting
AppOrisoConsultantReferenceDataProviders/AppOrisoConsultantRoomProvidersaddresses part of the earlier concern thatAppOrisoRoutingRuntimeProvidersandAppOrisoRuntimeProviderswere maintaining two partial shells. However, the routing shell (Line 734) still gets session state via the sharedRuntimeSessionsDataProvider, while the chat-surface shell (Lines 966-972) bypasses it and hand-wiresSessionsDataContext.Providerdirectly with the staticruntimeSessionsfixture. Any future behavior added toRuntimeSessionsDataProvider(pagination, live updates) won't reach this story, keeping the two shells inconsistent — the exact drift previously flagged.Consider reusing
RuntimeSessionsDataProviderinAppOrisoRuntimeProviderstoo, 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
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.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 261cec73-e39c-45a3-b10a-e426ae04031d
.storybook/main.ts is excluded by none and included by none.storybook/preview.tsx is excluded by none and included by noneDockerfile.storybook is excluded by none and included by nonesrc/components/app/AppOrisoConsultantChatSurface.stories.tsxsrc/components/app/RouterConfig.test.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/banner/Banner.stories.tsxsrc/components/form/OrisoTextField.stories.tssrc/components/headline/Headline.stories.tssrc/components/notificationsCenter/NotificationsCenter.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/stepBar/StepBar.stories.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/storybookDesignLinks.tssrc/components/tag/tag.styles.scsssrc/components/tag/tag.styles.test.tssrc/components/tagSelect/TagSelect.stories.tssrc/components/tagSelect/TagSelect.tsxsrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/walkthrough/Walkthrough.stories.tssrc/polyfill.tssrc/react-dom-shim.ts📄 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.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/storybookDesignLinks.tssrc/components/walkthrough/Walkthrough.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/app/RouterConfig.test.tssrc/components/form/OrisoTextField.stories.tssrc/components/tag/tag.styles.test.tssrc/components/banner/Banner.stories.tsxsrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/components/headline/Headline.stories.tssrc/components/registration/stepBar/StepBar.stories.tssrc/react-dom-shim.tssrc/components/tagSelect/TagSelect.tsxsrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/polyfill.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/app/AppOrisoConsultantChatSurface.stories.tsx📄 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.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/storybookDesignLinks.tssrc/components/walkthrough/Walkthrough.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/app/RouterConfig.test.tssrc/components/form/OrisoTextField.stories.tssrc/components/tag/tag.styles.test.tssrc/components/banner/Banner.stories.tsxsrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/components/headline/Headline.stories.tssrc/components/tag/tag.styles.scsssrc/components/registration/stepBar/StepBar.stories.tssrc/react-dom-shim.tssrc/components/tagSelect/TagSelect.tsxsrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/polyfill.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/app/AppOrisoConsultantChatSurface.stories.tsx⚙️ CodeRabbit configuration file
**: # AGENTS.mdContext First
- Treat
devas 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.jsonfor fast repo context.- Use
CONTEXT.mdfor 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:unitnpm run lint:scriptsnpm run lint:stylenpm 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/devfor 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 & NotificationsThe 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.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/storybookDesignLinks.tssrc/components/walkthrough/Walkthrough.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/app/RouterConfig.test.tssrc/components/form/OrisoTextField.stories.tssrc/components/tag/tag.styles.test.tssrc/components/banner/Banner.stories.tsxsrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/components/headline/Headline.stories.tssrc/components/tag/tag.styles.scsssrc/components/registration/stepBar/StepBar.stories.tssrc/react-dom-shim.tssrc/components/tagSelect/TagSelect.tsxsrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/polyfill.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/app/AppOrisoConsultantChatSurface.stories.tsx⚙️ 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.tssrc/components/registration/topicSelection/topicSelection.stories.tssrc/components/twoFactorAuth/TwoFactorAuth.stories.tssrc/components/askerInfo/AskerInfo.stories.tssrc/components/storybookDesignLinks.tssrc/components/walkthrough/Walkthrough.stories.tssrc/components/registration/zipcodeInput/zipcodeInput.stories.tssrc/components/app/RouterConfig.test.tssrc/components/form/OrisoTextField.stories.tssrc/components/tag/tag.styles.test.tssrc/components/banner/Banner.stories.tsxsrc/components/sessionMenu/SessionMenu.stories.tsxsrc/components/tagSelect/TagSelect.stories.tssrc/components/headline/Headline.stories.tssrc/components/registration/stepBar/StepBar.stories.tssrc/react-dom-shim.tssrc/components/tagSelect/TagSelect.tsxsrc/components/scrollableSection/ScrollableSection.stories.tsxsrc/polyfill.tssrc/components/registration/welcomeScreen/welcomeScreen.stories.tssrc/components/registration/RegistrationRuntime.stories.tsxsrc/components/registration/agencySelection/agencySelection.stories.tssrc/components/registration/RegistrationFlowSurface.stories.tsxsrc/components/registration/accountData/accountData.stories.tssrc/components/app/AppOrisoConsultantChatSurface.stories.tsx⚙️ 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.scsssrc/components/app/RouterConfig.test.ts (1)
92-105: LGTM! Addresses the prior review request to assert the/draftsroute inprofileRoutes, 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
$secondaryfallback 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/tabIndexroving focus plus Arrow/Home/End/Space/Enter handling matches the WAI-ARIA APG radiogroup pattern, and hiding the underlying MUIRadioviaaria-hiddenavoids 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
registrationSessionStorageKeyvalue 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 CorrectnessNo change needed for the headline story controls. The
mappingis intentionally adapting the numeric select labels to the stringHeadlineLevelprops thatHeadlineexpects.> Likely an incorrect or invalid review comment.src/components/banner/Banner.stories.tsx (2)
23-29: 📐 Maintainability & Code QualityPrevious hardcoded-spacing concern resolved.
Switching to
Boxwithsx={{ px: 2, py: 1.5 }}uses MUI's theme spacing scale instead of raw12px 16pxinline CSS, addressing the earlier guideline violation.Source: Coding guidelines
31-49: LGTM!src/components/twoFactorAuth/TwoFactorAuth.stories.ts (1)
3-12: 📐 Maintainability & Code QualityPlaceholder Figma link fixed.
REPLACE_FILE_KEYreplaced with the sharedAPP_ORISO_FIGMA_URLconstant, resolving the prior review comment.src/components/askerInfo/AskerInfo.stories.ts (2)
3-12: 📐 Maintainability & Code QualityPlaceholder Figma link fixed.
Same fix as sibling stories —
REPLACE_FILE_KEYreplaced withAPP_ORISO_FIGMA_URL.
21-26: 📐 Maintainability & Code QualityKeep the shared App.Oriso design link as-is. The same
APP_ORISO_FIGMA_URLis intentionally reused for the app-level stories here;Bannerdoesn’t use it.> Likely an incorrect or invalid review comment.src/components/form/OrisoTextField.stories.ts (1)
30-32: 📐 Maintainability & Code QualityMislabeled "read only" story fixed.
Disabledstory 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 QualityPlaceholder Figma link fixed.
REPLACE_FILE_KEYreplaced withAPP_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.
There was an error while loading. Please reload this page.
| <RocketChatUsersOfRoomContext.Provider | ||
| value={{ | ||
| ready: true, | ||
| users: [], | ||
| moderators: [], | ||
| total: 3, | ||
| reload: async () => [] | ||
| }} | ||
| > | ||
| {children} | ||
| </RocketChatUsersOfRoomContext.Provider> | ||
| </RocketChatSubscriptionsContext.Provider> |
There was a problem 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.
<RocketChatUsersOfRoomContext.Provider
value={{
ready: true,
users: [],
moderators: [],
- total: 3,
+ total: 0,
reload: async () => []
}}
>
‼️ 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.
| <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> |
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.
There was an error while loading. Please reload this page.
| 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; |
There was a problem 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.
-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;
‼️ 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.
| 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; |
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.
There was an error while loading. Please reload this page.
| export interface TagSelectProps extends TagItem { | ||
| checked?: boolean; | ||
| defaultChecked?: boolean; | ||
| handleTagSelectClick?: React.MouseEventHandler<HTMLInputElement>; | ||
| onChange?: React.ChangeEventHandler<HTMLInputElement>; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🌐 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:
undefined value react/react#6222🏁 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.
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.
There was an error while loading. Please reload this page.
| 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; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🏁 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.
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.
There was an error while loading. Please reload this page.
| 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 }; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🏁 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.
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.
There was an error while loading. Please reload this page.
|
Rechecked this against current #351 ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
# Conflicts: # .storybook/main.ts # .storybook/preview-head.html # src/components/sessionsListItem/SessionListItem.stories.tsx
| "@mui/material": "^5.18.0", | ||
| "@onlineberatung/onlineberatung-frontend-extensions": "file:src/extensions", | ||
| "@stomp/stompjs": "^7.0.0", | ||
| "@storybook/addon-designs": "^11.1.3", |
There was a problem 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.
There was an error while loading. Please reload this page.
| 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. |
There was a problem 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.
There was an error while loading. Please reload this page.
| '@storybook/addon-essentials', | ||
| '@storybook/addon-interactions', | ||
| 'storybook-i18n' | ||
| stories: [ |
There was a problem 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.
There was an error while loading. Please reload this page.
| return null; | ||
| }; | ||
|
|
||
| const installStorybookFetchMocks = () => { |
There was a problem 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.
There was an error while loading. Please reload this page.
| 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 |
There was a problem 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.
There was an error while loading. Please reload this page.
| @@ -0,0 +1,569 @@ | |||
| import * as React from 'react'; | |||
There was a problem 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.
There was an error while loading. Please reload this page.
| @@ -1,4 +1,4 @@ | |||
| ARG NODE_VERSION=18.16.1 | |||
| ARG NODE_VERSION=22.12.0 | |||
There was a problem 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.
There was an error while loading. Please reload this page.
| large: 'navigation.activity' | ||
| } | ||
| }, | ||
| { |
There was a problem 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.
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "@storybook/react": "^7.0.26", | ||
| "@storybook/react-webpack5": "^7.0.18", | ||
| "@storybook/testing-library": "^0.1.0", | ||
| "@storybook/react": "^10.4.6", |
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.