Skip to content

refactor: remove 24 unreachable -new pages and orphaned components - #571

Merged
mohanadft merged 5 commits into
mainfrom
refactor/dead-code-removal
Oct 5, 2026
Merged

mohanadft merged 5 commits into
mainfrom
refactor/dead-code-removal

Conversation

@mohanadft

Copy link
Copy Markdown
Collaborator

Summary

  • Delete 24 dead -new pages, orphaned components and styles (~15.7k lines). Each removed route keeps a 301 (slash and no-slash) in public/_redirects, asserted by src/utils/redirects.test.ts.
  • Kept as live (verified by grep): HomeLayout, membership-new, supporting-member-new, MembershipMain and the home sections they use.

Notes

  • No runtime behaviour change; pnpm build verified.
  • HomeNavbar/FooterSection still link to some -new URLs; they hit a harmless 301 hop.

Test plan

  • CI green (lint, check, test, build)
  • pnpm lint, pnpm check, pnpm test pass locally; independently reviewed

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0d63ca
Status: ✅  Deploy successful!
Preview URL: https://069ada24.website-aun.pages.dev
Branch Preview URL: https://refactor-dead-code-removal.website-aun.pages.dev

View logs

Resolve modify/delete conflicts for FAQSection, IdeasWithTabsNew,
e4p-new and endorsements-new: main only updated their import paths
(#576), so the deletions stand.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mohanadft
mohanadft merged commit ece9531 into main Oct 5, 2026
5 checks passed
@mohanadft
mohanadft deleted the refactor/dead-code-removal branch October 5, 2026 08:53
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.

1 participant