Codebase cleanup · Thu 16 – Fri 17 Oct 2026
Two repos, two days, PRs. Nothing broke.
Day 1 deleted dead code and fixed the tests. Day 2 reorganized the giant files. Every merge was checked live before the next one.
Two days, one running total
Lines removed and added across every merged PR, accumulated over time (UTC).
Table view
Where the lines went
Removed vs added by kind of change, one shared scale. Splits move code, so they count on both sides.
Table view
What got removed, per repo
Share of deleted lines by kind of change.
Table view
Fourteen giant files, split
routes identical · tests untouchedLines in the original file, and the largest single file left afterwards. Squares are the modules each one became.
Table view
Big files, by size band
How many source files fall in each band, before and after. Under 1,000 lines left out.
Table view
The biggest files today
Every file still over 3,000 lines is being split now. The rest are context.
Table view
The test gate stopped lying
Failures the CI gate let through. The old gate hid most of them. Fixing it exposed 150, then the cleanup drove them to 1.
Table view
Every merge, both days
Each dot is one merged PR. Size is lines changed. Hover for details.
Table view
Slowest tests, faster
Seconds per test file, before → after.
Table view
Bugs the cleanup uncovered
Found because tests started telling the truth, or in review. All fixed and live.
Guards so it stays clean
Checks that now run on every PR.
What's left
- running5 backend files still over 3,000 lines
- runningLocal SEO layout + backend repo root
- needs youProxy retry for deploy 502s: one Coolify toggle
- laterUnused old routes removable after Oct 30
- laterContent Hub state needs a redesign to shrink further
- on holdOld compose stack, support grant migration