Skip to content

test(SDK-551): add PolicyListPresentation Storybook stories#1412

Merged
krisxcrash merged 13 commits intomainfrom
kw/feat/sdk-551-policy-list-stories
Apr 6, 2026
Merged

test(SDK-551): add PolicyListPresentation Storybook stories#1412
krisxcrash merged 13 commits intomainfrom
kw/feat/sdk-551-policy-list-stories

Conversation

@krisxcrash
Copy link
Copy Markdown
Contributor

@krisxcrash krisxcrash commented Mar 30, 2026

Summary

  • Adds Storybook stories for the PolicyListPresentation component covering all visual states

Changes

  • Default: 3 policies (complete PTO with "All employees", complete sick with numeric count, incomplete PTO with "Finish setup" button)
  • EmptyState: Empty policies array showing the empty state UI
  • WithDeleteSuccessAlert: Policies with a dismissible success alert
  • DeletingPolicy: Policies with one in loading/deleting state

Related

Testing

  • Run npm run storybook and navigate to Domain/TimeOff/PolicyList

@krisxcrash krisxcrash self-assigned this Mar 30, 2026
@krisxcrash krisxcrash marked this pull request as draft March 30, 2026 20:44
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-551-policy-list-stories branch from bb138f7 to f1a509f Compare March 30, 2026 20:45
@krisxcrash krisxcrash marked this pull request as ready for review March 30, 2026 21:31
Stateless presentation component for the time off policy list. Renders
a DataView table with Name/Enrolled columns, per-row overflow menu
(Edit/Delete), Finish setup button for incomplete policies, delete
confirmation dialog, dismissible success alert, and empty state.

Also updates translations to match Figma designs.

Made-with: Cursor
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-551-policy-list-presentation branch from b3680a1 to 2f37c35 Compare April 2, 2026 16:40
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-551-policy-list-stories branch from 7b031a4 to 8374d6f Compare April 2, 2026 19:03
Stories covering all visual states: default (with incomplete policy),
empty state, post-delete success alert, and deleting-in-progress.

Made-with: Cursor
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-551-policy-list-stories branch from 8374d6f to 4125b65 Compare April 2, 2026 19:04
Base automatically changed from kw/feat/sdk-551-policy-list-presentation to main April 6, 2026 16:51
@krisxcrash krisxcrash merged commit b5e3f48 into main Apr 6, 2026
14 checks passed
@krisxcrash krisxcrash deleted the kw/feat/sdk-551-policy-list-stories branch April 6, 2026 17:01
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.

2 participants