Skip to content

Implement cohesive Storybook for staff + community UI portal application package Fixes #266#283

Open
rohit-r-kumar wants to merge 305 commits into
mainfrom
rohit-r-kumar/issue266
Open

Implement cohesive Storybook for staff + community UI portal application package Fixes #266#283
rohit-r-kumar wants to merge 305 commits into
mainfrom
rohit-r-kumar/issue266

Conversation

@rohit-r-kumar

@rohit-r-kumar rohit-r-kumar commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #266

Summary by Sourcery

Add a cohesive Storybook setup for the staff UI portal and align shared component stories to the new structure.

New Features:

  • Introduce Storybook configuration, global decorators, and Apollo mocks for the ui-staff app.
  • Add Storybook stories for staff root header and login page components.

Bug Fixes:

  • Adjust staff app tests to mock staff permissions directly and avoid brittle expectations around Navigate redirects.
  • Ensure placeholder pages fall back to JWT roles when backend-derived permissions are unavailable.

Enhancements:

  • Document and skip an unsupported SectionLayout behaviour test that depends on JWT roles-derived permissions.
  • Retitle existing shared UI Storybook stories to follow a consistent Components/Pages taxonomy across staff and shared packages.

Build:

  • Add Storybook, Chromatic, and related addons as dev dependencies and expose Storybook build/run/Chromatic scripts for the ui-staff app.
  • Align ui-staff-shared Storybook React dependency to the workspace catalog version.
  • Register @storybook/react in the workspace catalog for shared use.

ttrang-nguyen and others added 30 commits May 6, 2026 15:19
- Changed  to  in GraphQL queries and components.
- Updated permission checks in  and  to reflect new permission structure.
- Renamed  to  in admin permissions.
- Introduced new finance and tech admin permission features with corresponding tests.
- Added user permissions management with appropriate validation and tests.
- Created Storybook stories for various permission scenarios in .
…aff users

- Implemented GraphQL resolvers for querying and creating staff user entities.
- Added feature tests for staff user resolvers, covering scenarios for JWT verification and AAD roles.
- Created a read repository for staff users with tests for model presence and document retrieval.
- Enhanced staff role domain adapter with additional permission scenarios and tests.
ttrang-nguyen and others added 30 commits June 24, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement cohesive Storybook per UI portal application package

4 participants