Skip to content

docs: add Storybook stories for ComponentErrorBoundary - #1237

Open
RiccardoBifulco wants to merge 1 commit into
FlowwStar:mainfrom
RiccardoBifulco:docs/1176-component-error-boundary-stories
Open

RiccardoBifulco wants to merge 1 commit into
FlowwStar:mainfrom
RiccardoBifulco:docs/1176-component-error-boundary-stories

Conversation

@RiccardoBifulco

Copy link
Copy Markdown

Fixes #1176

Summary

Adds components/error-boundary/component-error-boundary.stories.tsx, following the conventions of section-error-boundary.stories.tsx.

Changes

  • Default: healthy child renders normally
  • WithError: child throws, compact fallback with Retry button
  • WithErrorDefaultLabel: fallback with the default "component" label
  • WithSiblings: one broken component does not hide its siblings
  • captureError is mocked so Sentry is not hit from Storybook

Test plan

  • npx vitest run: 122 files / 1541 tests pass
  • tsc --noEmit: no errors in the new file
  • npm run storybook:build: fails on main too, before this change (TypeError: swc.isWasm is not a function from @storybook/nextjs swc loader patch, 42 occurrences with or without this file), so I could not verify it locally
  • Note: ESLint config ignores *.stories.tsx, so lint reports nothing for the file

Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
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.

Add Storybook stories for ComponentErrorBoundary

2 participants