Skip to content

chore: add Storybook stories for 30 components missing coverage (#957)#961

Merged
sw-factory-automations merged 1 commit intomainfrom
feat/957-storybook-stories-missing-coverage
May 8, 2026
Merged

chore: add Storybook stories for 30 components missing coverage (#957)#961
sw-factory-automations merged 1 commit intomainfrom
feat/957-storybook-stories-missing-coverage

Conversation

@sw-factory-automations
Copy link
Copy Markdown
Collaborator

Closes #957

What

Adds co-located *.stories.tsx files for all 30 components that were missing Storybook coverage. This closes the visual regression gap and gives the UI Verifier and PR Reviewer a baseline for these components.

Components covered

Editor plugins (18):

  • auto-link-plugin — URL/email auto-detection visual output
  • callout-plugin — callout variants (info, warning, error, success)
  • code-highlight-plugin — syntax highlighting visual output
  • code-language-selector-plugin — language dropdown trigger and open state
  • collapsible-plugin — toggle blocks (collapsed, expanded, nested)
  • database-plugin — database picker menu and embedded node
  • demo-slash-command-plugin — demo editor slash menu (reduced command set)
  • draggable-block-plugin — drag handle and drop indicator
  • editor — full editor states (empty, rich content, code+callout, checklist)
  • floating-image-toolbar-plugin — image alignment toolbar
  • image-node — image with alignment, caption, resize handles
  • image-plugin — drag overlay, upload progress, error states
  • list-tab-indentation-plugin — nested list indentation levels
  • local-persistence-plugin — persistence states (saved, restoring, size limit)
  • page-link-plugin — page search menu and inline page links
  • table-action-menu-plugin — table context menu with row/column operations
  • turn-into-plugin — block type conversion before/after
  • word-count-plugin — word count display at various counts

Page/workspace components (8):

  • danger-zone-settings — delete account button and confirmation dialog
  • delete-workspace-section — delete workspace with confirmation, error, deleting states
  • page-content-client — regular page, database page, row page, loading state
  • page-view-client — page view with cover, version history, loading state
  • workspace-home-client — workspace home, empty state, loading state
  • settings-page-client — loading and loaded states
  • settings-page-content — personal workspace (all sections) and team workspace
  • providers — theme context, toast examples

Sidebar (2):

  • app-shell — sidebar open, collapsed, mobile layout, skip-to-content
  • sidebar-context — context values, keyboard shortcuts, focus mode

Members (2):

  • members-page — admin view, member view, error state
  • members-page-client — loading and loaded states

How

All stories use static representations (matching existing patterns in the codebase) since the actual components require Lexical editor context, Supabase, or router context that cannot be provided in Storybook. Each story file follows the project's named export pattern with export { meta as default }.

Testing

  • pnpm lint — 0 errors (only pre-existing warnings)
  • pnpm typecheck — clean
  • pnpm test — 133 files, 1818 tests passed
  • pnpm build-storybook — builds successfully
  • Visual regression baselines generated with --update-snapshots, then verified passing without the flag
  • 160 new snapshot files committed

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment May 8, 2026 8:42am

Request Review

@sw-factory-automations sw-factory-automations merged commit 480ede4 into main May 8, 2026
6 checks passed
@sw-factory-automations sw-factory-automations deleted the feat/957-storybook-stories-missing-coverage branch May 8, 2026 09:05
@sw-factory-automations
Copy link
Copy Markdown
Collaborator Author

✅ Post-merge verification skipped — chore: PR does not affect the live app.

@sw-factory-automations
Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — no UI source changes detected.

This PR adds 30 *.stories.tsx files and 160 visual regression baselines. No component source code (src/components/*.tsx), page files (src/app/**/page.tsx), or layout files (src/app/**/layout.tsx) were modified. The rendered UI is unchanged.

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.

chore: add Storybook stories for 30 components missing coverage

1 participant