Conversation
[core] Add Storybook stories for ToastBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
[core] Add Storybook stories for ToastBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Remove redundant AllIntents story, run pnpm formatBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Remove redundant AllIntents story, run pnpm formatBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Replace native HTML elements with Blueprint componentsBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Replace native HTML elements with Blueprint componentsBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Replace native HTML elements with Blueprint componentsBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new Storybook story file for the Toast component to support visual regression coverage and interactive exploration of props.
Changes:
- Introduces
Toast.stories.tsxwith default, intent matrix, icon variants, and a playground story - Configures Storybook controls/args and a centering decorator for consistent rendering
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <Toast {...args} icon="tick-circle" intent="success" message="File saved successfully" /> | ||
| <Toast {...args} icon="warning-sign" intent="warning" message="Connection is unstable" /> | ||
| <Toast {...args} icon="error" intent="danger" message="Failed to save changes" /> | ||
| <Toast {...args} icon="info-sign" intent="primary" message="New update available" /> |
There was a problem hiding this comment.
intent is set using string literals in multiple places while the stories elsewhere use Intent enum values (e.g., Intent.NONE). If Toast’s intent prop is typed as Intent (string enum), these string literals will not type-check. Use Intent.SUCCESS, Intent.WARNING, Intent.DANGER, Intent.PRIMARY, etc., for consistency and to satisfy the prop type.
| args: { | ||
| message: "Playground toast message", | ||
| icon: "info-sign", | ||
| intent: "primary", |
There was a problem hiding this comment.
intent is set using string literals in multiple places while the stories elsewhere use Intent enum values (e.g., Intent.NONE). If Toast’s intent prop is typed as Intent (string enum), these string literals will not type-check. Use Intent.SUCCESS, Intent.WARNING, Intent.DANGER, Intent.PRIMARY, etc., for consistency and to satisfy the prop type.
| intent: { table: { disable: true } }, | ||
| }, | ||
| render: args => ( | ||
| <div style={{ display: "flex", flexDirection: "column", gap: 8 }}> |
There was a problem hiding this comment.
The same inline style object is duplicated in multiple stories. Consider extracting it to a shared constant (e.g., const columnContainerStyle = { ... }) and reusing it to reduce duplication and keep visual/layout tweaks consistent across stories.
| icon: { table: { disable: true } }, | ||
| }, | ||
| render: args => ( | ||
| <div style={{ display: "flex", flexDirection: "column", gap: 8 }}> |
There was a problem hiding this comment.
The same inline style object is duplicated in multiple stories. Consider extracting it to a shared constant (e.g., const columnContainerStyle = { ... }) and reusing it to reduce duplication and keep visual/layout tweaks consistent across stories.
Rename storyBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Files: - packages/core/src/components/toast/Toast.stories.tsx
- Consolidate stories following Button/Tag/Card pattern - Use standard naming: IntentExample, SizeExample, StateExample, etc. - Remove redundant/overly-specific stories - Remove DarkTheme stories (handled by Storybook globally) - Keep visual regression matrix and Playground stories Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
AllIntents does not add better examples beyond IntentExample. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace <h3>, <h4>, <h5> with Blueprint H3, H4, H5 - Replace <p> with Blueprint Text component - Remove intent !== none filter to show None intent in examples Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename storyBuild artifact links for this commit: documentation | landing | table | demo | storybookThis is an automated comment from the deploy-preview CircleCI job. |
Summary
Files
Toast.stories.tsxTest plan
🤖 Generated with Claude Code