Skip to content

[MEDIUM] Archived -old pages pattern is unsustainable #312

@0xbbjoker

Description

@0xbbjoker

Summary

The UI redesign archives old pages by creating -old suffixed copies (e.g., page-old.tsx, TopHero-old.tsx, landing-header-old.tsx). This pattern creates maintenance overhead and routing confusion.

Current -old Files

  • app/auth/cli-login/page-old.tsx
  • app/auth/error/page-old.tsx
  • app/login/page-old.tsx
  • app/oldlanding/page.tsx
  • components/landing/TopHero-old.tsx
  • components/layout/landing-header-old.tsx

Impact

  • Doubles the file count for affected components
  • Confuses routing (especially app/oldlanding/page.tsx which creates a real route)
  • Old files diverge from new patterns and become dead code
  • Increases bundle size if not properly tree-shaken
  • Confuses new contributors

Recommended Fix

  1. Set a time-boxed removal date (e.g., 2 weeks after redesign merges)
  2. Use git history instead of -old files for reference
  3. If A/B testing is needed, use feature flags instead
  4. Remove app/oldlanding/page.tsx (creates accessible route /oldlanding)

Source

Identified by GPT Scope Analyst agent during comprehensive plan review (2026-02-06).

Metadata

Metadata

Assignees

No one assigned

    Labels

    mediumMedium prioritytech-debtTechnical debt and maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions