Skip to content

chore(design-system): callout/banner family Storybook stories (PR 4 of #18191)#18203

Merged
pettinarip merged 1 commit into
devfrom
chore/storybook-feature-callouts
May 19, 2026
Merged

chore(design-system): callout/banner family Storybook stories (PR 4 of #18191)#18203
pettinarip merged 1 commit into
devfrom
chore/storybook-feature-callouts

Conversation

@myelinated-wackerow
Copy link
Copy Markdown
Collaborator

Summary

PR 4 of #18191, the final bundle. Adds Storybook stories for the five components slated for absorption into the unified Callout per #18133. Storying them before the consolidation gives that work a visual reference for the per-variant differences. Stories will be short-lived but earn their keep during the migration.

Components covered (all migrated from loose Foo.tsx to Foo/index.tsx):

  • Callout (client thunk) -- resolves titleKey / descriptionKey against common and forwards to CalloutSSR
  • CalloutBanner (server) -- horizontal banner; default namespace page-staking
  • CalloutSSR (server) -- accepts plain title / description strings, no key resolution
  • Banners/BannerNotification -- full-width primary-action bar gated by shouldShow
  • TranslationBanner (client) -- dismissible toast gated by locale, pathname, and localStorage state

Storybook config tweak

Adds page-staking to the ns array in .storybook/next-intl.ts so CalloutBanner can resolve its default-namespace translation keys. One-line addition.

Known limitations

  • TranslationBanner has three runtime gates (non-default locale, DNT pathname, no prior dismissal). The meta description documents the conditions needed to see it render. In a default English Storybook session the stories render null -- this is intentional behavior, not a bug. The visual reference for the consolidation will still be accessible by reading the component source plus the meta docs.

Coordination

Confirmed #18133 is open with no PRs linked, so PR 4 lands first as the issue intended. Once landed, the consolidation work has these stories as visual reference for what to preserve in the unified component.

Related to #18191. Does not close the issue.

Test plan

  • pnpm storybook -- five new entries appear under Components / Callouts / * and render without console errors (TranslationBanner may render null per documented gates)
  • a11y addon panel is clean on each rendered story
  • CalloutBanner Default story shows the real page-staking-join-community title / description, confirming the namespace addition worked
  • Consumer pages (community, gas, wallets, get-eth, BaseLayout) still resolve their @/components/Foo imports after the migrations

Claude (Opus 4.7) co-authored these changes.

PR 4 of #18191, the final bundle. Adds Storybook stories for the five components slated for absorption into the unified Callout per #18133. Storying them before the consolidation gives that work a visual reference for the per-variant differences. Stories will be short-lived but earn their keep during the migration.

Components covered: Callout (client thunk), CalloutBanner (server, page-staking namespace), CalloutSSR (server, plain strings), Banners/BannerNotification, and TranslationBanner. All five migrated from loose .tsx into Foo/index.tsx so the story files can live alongside.

Adds page-staking to the storybook-next-intl namespace list so CalloutBanner can resolve its default-namespace keys. TranslationBanner has runtime visibility gates (non-English locale, DNT pathname, no prior dismissal); the meta documents the conditions needed to see it render in storybook.

Each story uses the Components / Callouts / <Name> title pattern and opts out of Chromatic snapshots at the meta level per the #18121 convention.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 3348588
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a07170c877c5b000819eb5c
😎 Deploy Preview https://deploy-preview-18203.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 65 (no change from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label May 15, 2026
@pettinarip pettinarip merged commit 3cb9d8e into dev May 19, 2026
16 checks passed
@pettinarip pettinarip deleted the chore/storybook-feature-callouts branch May 19, 2026 15:13
@claude claude Bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants