Skip to content

chore(design-system): remove unused components and stale assets#18134

Merged
pettinarip merged 2 commits into
devfrom
deprecate-components
May 18, 2026
Merged

chore(design-system): remove unused components and stale assets#18134
pettinarip merged 2 commits into
devfrom
deprecate-components

Conversation

@myelinated-wackerow
Copy link
Copy Markdown
Collaborator

@myelinated-wackerow myelinated-wackerow commented May 6, 2026

Summary

Removes a batch of components flagged as unused or story-only by the design-system audit (#18131).

Components deleted

  • AdoptionChart, AreaChart, BarChart (local; remaining usages import from recharts directly), BoxGrid, EthVideo, Layer2ProductCard, RandomAppList, Stat
  • Banners: UpgradeBannerNotification, EventsOrganizerBanner, DismissableBanner
  • ui primitives: drawer, buttons/SvgButtonLink, buttons/ButtonTwoLines (and ButtonLinkTwoLines), radio-group (Quiz uses Radix directly)

Other cleanup

  • Drops the related *.stories.tsx files
  • Removes public/content/translations/bn/dapps/index.md -- orphaned (the /dapps/ route redirects to /apps/, a React route)
  • Removes EventsOrganizerBanner from the destructured set in src/layouts/Static.tsx
  • Removes the now-orphaned vaul dependency (only consumer was ui/drawer)
  • Drops a stale // TODO: Convert this component to use ButtonLinkTwoLines comment in Simulator/PathButton.tsx

intl

Removes adoption-chart-* keys from page-energy-consumption.json across all 25 locales. The issue text mentioned page-what-is-ethereum.json, but those keys actually lived in page-energy-consumption.json. The keys are removed across all locales in this PR (rather than relying on pipeline propagation) since the namespace doesn't yet have a pipeline manifest.

Test plan

  • CI: pnpm lint passes
  • CI: npx tsc --noEmit passes (pre-existing image-module errors are unrelated)
  • CI: pnpm build passes (verified locally)
  • Spot-check /en/energy-consumption/ renders (only consumer of the removed adoption-chart-* keys was the deleted AdoptionChart component)
  • Spot-check a Static-layout MDX page (e.g. /en/whitepaper/) renders -- verifies the EventsOrganizerBanner removal from staticComponents is harmless (no markdown content invokes it; verified via grep)

Out of scope

Per the issue, these are intentionally kept: AB/*, ui/textarea, Faq/. Coordination with PRs #18125, #18126 (story-file removal) handled if/when they merge -- conflicts trivially resolve in this PR's favor.

myelinated-wackerow and others added 2 commits May 5, 2026 20:51
Drops a batch of components identified as unused or story-only in the design-system audit (#18131):

- AdoptionChart, AreaChart, BarChart (local; remaining usages import from recharts directly), BoxGrid, EthVideo, Layer2ProductCard, RandomAppList, Stat
- Banners: UpgradeBannerNotification, EventsOrganizerBanner, DismissableBanner
- ui: drawer, buttons/SvgButtonLink, buttons/ButtonTwoLines (and ButtonLinkTwoLines), radio-group (Quiz uses Radix directly)

Removes their stories, the orphaned bn/dapps markdown file (the /dapps route redirects to /apps, a React route), the now-orphaned vaul dependency (only consumer was ui/drawer), and a stale TODO in PathButton referencing the removed ButtonLinkTwoLines.

Drops the adoption-chart-* keys from the English page-energy-consumption.json (the issue text named the wrong file). Non-English equivalents are removed in a follow-up commit since pipeline manifests for that namespace are not yet in place.

Refs #18131

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
Removes the orphaned adoption-chart-* keys from all 24 non-English page-energy-consumption.json files. The owning component (AdoptionChart) was deleted in the prior commit; the namespace has no pipeline manifest yet, so the keys are removed manually here rather than waiting on propagation.

Closes #18131

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 6, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit b22d2e1
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69fabfc6f08fbe0008323218
😎 Deploy Preview https://deploy-preview-18134.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: 69 (🟢 up 4 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 content 🖋️ This involves copy additions or edits dependencies 📦 Changes related to project dependencies translation 🌍 This is related to our Translation Program labels May 6, 2026
Copy link
Copy Markdown
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Nice!

@pettinarip pettinarip merged commit 0b13d51 into dev May 18, 2026
11 checks passed
@pettinarip pettinarip deleted the deprecate-components branch May 18, 2026 13:37
@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

content 🖋️ This involves copy additions or edits dependencies 📦 Changes related to project dependencies translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(design-system): remove unused components and stale assets

2 participants