Skip to content

chore(apps): remove dead files (DonorTeacherBanner, CachedElement, Headings)#73358

Open
levadadenys wants to merge 1 commit into
stagingfrom
claude/funny-pasteur-f37q0y
Open

chore(apps): remove dead files (DonorTeacherBanner, CachedElement, Headings)#73358
levadadenys wants to merge 1 commit into
stagingfrom
claude/funny-pasteur-f37q0y

Conversation

@levadadenys

Copy link
Copy Markdown
Contributor

Summary

Removes three unreferenced components and their paired test/story files from apps/. Each was verified to have no importers across apps/, frontend/, and dashboard/.

  • apps/src/templates/DonorTeacherBanner.jsx — class component with no importers. The DonorTeacherBanner* names that appear in frontend/packages/core/src/api/dashboard/users/ are unrelated zod schemas/types for the API (e.g. DonorTeacherBannerDetailsSchema), not consumers of this JSX component.
  • apps/src/util/CachedElement.jsx and apps/test/unit/util/CachedElementTest.jsx — the test was the component's only consumer; both are removed together.
  • apps/src/legacySharedComponents/Headings.jsx and apps/src/legacySharedComponents/Headings.story.jsx — the Heading1/Heading2/Heading3 components are marked @deprecated Use DSCO Typography instead and are no longer imported anywhere. The sibling story file already renders MUI Typography rather than these components, and the typography-to-mui.js codemod only carries the names in a transformation map (no import).

595 lines deleted, no other changes.

Test plan

  • CI green (lint, apps unit + integration, dashboard unit)
  • No Storybook regressions (Headings.story.jsx already imported MUI Typography rather than the legacy components, so its removal should not affect rendered stories)
  • No runtime references remain (verified via grep across apps/, frontend/, dashboard/)

Generated with Claude Code.


Generated by Claude Code

Remove unreferenced components and their paired test/story files.

- apps/src/templates/DonorTeacherBanner.jsx: no importers; the
  DonorTeacherBanner* names in frontend/packages/core API schemas
  are unrelated zod types.
- apps/src/util/CachedElement.jsx and its test: the test was the
  only consumer.
- apps/src/legacySharedComponents/Headings.jsx and its story file:
  components are marked @deprecated in favor of DSCO Typography
  and no longer imported. The story file imports MUI Typography,
  not these components.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NaqHRUC9QeQjX2EMdBwzuw
@levadadenys levadadenys requested review from a team, Copilot and kobryan0619 and removed request for a team June 19, 2026 03:51

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

Removes unused legacy React components and their associated test/story files from apps/, reducing dead code in the dashboard frontend bundle and test suite.

Changes:

  • Deleted unused CachedElement utility component and its unit test.
  • Deleted unused legacy Headings components and their Storybook story.
  • Deleted unused DonorTeacherBanner template component.

Reviewed changes

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

Show a summary per file
File Description
apps/test/unit/util/CachedElementTest.jsx Removed unit test for CachedElement, which no longer exists.
apps/src/util/CachedElement.jsx Removed unused HTML-caching utility component.
apps/src/templates/DonorTeacherBanner.jsx Removed unused legacy banner component tied to an older dismissal endpoint.
apps/src/legacySharedComponents/Headings.story.jsx Removed Storybook story for legacy headings.
apps/src/legacySharedComponents/Headings.jsx Removed deprecated legacy heading wrapper components/styles.

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.

3 participants