Skip to content

chore(app): post-restructure cleanup — dead components + stale doc paths#8630

Open
MarkusNeusinger wants to merge 13 commits into
mainfrom
chore/frontend-remove-dead-components
Open

chore(app): post-restructure cleanup — dead components + stale doc paths#8630
MarkusNeusinger wants to merge 13 commits into
mainfrom
chore/frontend-remove-dead-components

Conversation

@MarkusNeusinger

@MarkusNeusinger MarkusNeusinger commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to the modernization roadmap: removes five components with no importers (verified across src/ incl. vi.mock specifiers and lazy route imports — only self-references, own tests, and barrel entries):

  • sections/landing/ScienceNote.tsx
  • sections/landing/PaletteStrip.tsx (its only consumer was ScienceNote)
  • sections/landing/PlotOfTheDay.tsx (superseded by PlotOfTheDayTerminal, which stays — as does the usePlotOfTheDay hook used by LandingPage)
  • sections/spec-detail/CodeShowcase.tsx
  • layouts/BareLayout.tsx

Removed together with their test files and barrel lines. No orphans left behind: everything these files imported (paths, theme, lib/api, SectionHeader, paletteMatrices.json, …) has other live consumers.

Verification

yarn lint ✓ · yarn fm:check ✓ · yarn type-check ✓ · yarn test 599/599 ✓ · yarn build

🤖 Generated with Claude Code

Also in this PR

Doc/agent references updated after the restructure: seo.md (router path), style-guide.md (theme token sources), design-auditor (globs now include sections/ and layouts/). CLAUDE.md, copilot-instructions.md and the other audit skills were checked and need no changes (generic app/src/** references). Historical artifacts under agentic/runs|audits|specs|context are intentionally untouched.

ScienceNote, PaletteStrip (only consumer: ScienceNote), CodeShowcase,
BareLayout, and PlotOfTheDay (superseded by PlotOfTheDayTerminal) had no
importers besides their own tests and barrel entries — verified across src
including vi.mock specifiers and lazy imports. Removed with their tests and
barrel lines; usePlotOfTheDay (the hook) stays, LandingPage uses it.

Follow-up to the frontend modernization roadmap.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 05:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes unused React components (and their barrel exports/tests) from the app/ frontend as part of the modernization roadmap, reducing dead code in the landing/spec-detail/layout areas.

Changes:

  • Removed five unused components: ScienceNote, PaletteStrip, PlotOfTheDay (superseded), CodeShowcase, and BareLayout.
  • Removed associated barrel exports from app/src/sections/**/index.ts and app/src/layouts/index.ts.
  • Removed the now-obsolete unit test file for PlotOfTheDay.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app/src/sections/spec-detail/index.ts Removes barrel export for deleted CodeShowcase.
app/src/sections/spec-detail/CodeShowcase.tsx Deletes unused spec-detail marketing/showcase component.
app/src/sections/landing/ScienceNote.tsx Deletes unused landing section component.
app/src/sections/landing/PlotOfTheDay.tsx Deletes deprecated landing component (replaced by PlotOfTheDayTerminal).
app/src/sections/landing/PlotOfTheDay.test.tsx Removes tests tied to deleted PlotOfTheDay component.
app/src/sections/landing/PaletteStrip.tsx Deletes unused landing palette strip component.
app/src/sections/landing/index.ts Removes barrel exports for deleted landing components.
app/src/layouts/index.ts Removes barrel export for deleted BareLayout.
app/src/layouts/BareLayout.tsx Deletes unused layout component.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

- seo.md: router.tsx → routes/index.tsx
- style-guide.md: proseLinkStyle/theme-token sources now theme/tokens.ts +
  create-theme.ts (re-exported via src/theme); main.tsx no longer hosts theme
- design-auditor: glob the new sections/ and layouts/ directories so the
  audit covers the moved UI code

Historical artifacts (agentic/runs, agentic/audits, agentic/specs,
agentic/context) intentionally untouched — they are point-in-time records.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MarkusNeusinger MarkusNeusinger changed the title chore(app): remove dead components chore(app): post-restructure cleanup — dead components + stale doc paths Jun 10, 2026
@MarkusNeusinger MarkusNeusinger enabled auto-merge (squash) June 10, 2026 06:06
Copilot AI review requested due to automatic review settings June 10, 2026 06:09
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:09
Copilot AI review requested due to automatic review settings June 10, 2026 06:12
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:12
Copilot AI review requested due to automatic review settings June 10, 2026 06:13
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:13
Copilot AI review requested due to automatic review settings June 10, 2026 06:14
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:14
Copilot AI review requested due to automatic review settings June 10, 2026 06:15
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:15
Copilot AI review requested due to automatic review settings June 10, 2026 06:16
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:16
Copilot AI review requested due to automatic review settings June 10, 2026 06:23
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:23
Copilot AI review requested due to automatic review settings June 10, 2026 06:27
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:27
Copilot AI review requested due to automatic review settings June 10, 2026 06:28
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:28
Copilot AI review requested due to automatic review settings June 10, 2026 06:34
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 06:34
Copilot AI review requested due to automatic review settings June 10, 2026 19:04
@MarkusNeusinger MarkusNeusinger review requested due to automatic review settings June 10, 2026 19:04
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.

2 participants