Skip to content

chore: remove the orphaned /projects and /solutions trees - #142

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/remove-orphaned-trees
Aug 28, 2026
Merged

chore: remove the orphaned /projects and /solutions trees#142
github-actions[bot] merged 1 commit into
mainfrom
chore/remove-orphaned-trees

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

What

Deletes 96 files / 14,379 lines — about half of app/ — that no visitor could reach.

app/projects/** was 79 files: an e-government platform with a whitepaper, open-law, open-vote, open-pay, a transparency portal, agency and employee directories. app/solutions/** was 7 more routes.

Why it's safe

  • Zero inbound links. No nav, footer, or page href pointed at either tree.
  • lib/routes.ts declared PROJECTS: '/projects' — imported by nothing.
  • Verified no module outside the trees imports anything inside them.

They were still statically generated on every build and served publicly, with no robots.txt or sitemap to say otherwise. Pure carrying cost.

Also removed

Dead the moment those trees went, each verified to have no remaining importer:

components/governance/ · components/SolutionLayout.tsx · components/navigation/NextSection.tsx · lib/governance/ · types/governance.ts · data/solutions.json

Not removed

/personal and the bot templates behind it. I'd flagged them as unreachable in the audit — that was wrong: /personal is linked from both the homepage and the footer, and it works. Removing a live, linked surface is a product decision, not cleanup.

Result

app/ drops 26,821 → 13,101 lines. 68 routes remain, all reachable.

Recovery

git checkout 1abb6a9f -- app/projects app/solutions components/governance

Verify

format:check, lint, typecheck, 240 tests, build — all green locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

app/projects was 79 files and half of all app code -- an e-government
platform with a whitepaper, open-law, open-vote, open-pay, a transparency
portal and agency/employee directories. app/solutions was another 7 routes.

Nothing linked to either. lib/routes.ts declared PROJECTS: '/projects' and
no file imported it; there were zero inbound hrefs from any nav, footer or
page. But both were statically generated on every build and served publicly,
so they cost a build slot and an audit read each time while no visitor could
reach them.

Also removed, dead once those trees went (verified: no remaining importers):
  components/governance/, components/SolutionLayout.tsx,
  components/navigation/NextSection.tsx, lib/governance/,
  types/governance.ts, data/solutions.json

app/ drops from 26,821 to 13,101 lines. 68 routes remain, all reachable.

Deliberately NOT removed: /personal and its bot templates. That surface is
linked from the homepage and the footer and it works, so removing it is a
product decision rather than cleanup.

Recovering any of this is one command:
  git checkout 1abb6a9 -- app/projects app/solutions components/governance

verify: format, lint, typecheck, 240 tests, build -- all green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG
@github-actions
github-actions Bot merged commit ede2f8d into main Aug 28, 2026
1 check passed
@github-actions
github-actions Bot deleted the chore/remove-orphaned-trees branch August 28, 2026 07:58
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