From ba6fb4ef6d3c0123240e84ad98bd75b7cd52c62c Mon Sep 17 00:00:00 2001 From: Clay Date: Thu, 3 Dec 2026 15:13:28 -0500 Subject: [PATCH] Add post-cleanup, pre-refactor milestone (09e507d) --- MILESTONES.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/MILESTONES.md b/MILESTONES.md index 9cd2a05..2429820 100644 --- a/MILESTONES.md +++ b/MILESTONES.md @@ -40,3 +40,31 @@ git reset --hard cd5beee # or create a branch from it: git branch pre-cleanup-cd5beee cd5beee ``` + +## 2026-12-03 - Post-cleanup, pre-refactor baseline + +**Commit:** `09e507d` ("Cleanup: remove unused redactParams helper") +**Branch:** `main` +**Purpose:** Stable checkpoint after safe cleanup and before any refactors. Return here if refactors cause regressions. + +### State at this checkpoint + +- Includes pre-cleanup baseline behavior (`cd5beee`) plus safe cleanup commits. +- Removed unused/dead code: `DEV_ID()`/`bool()` in `src/config.js`, unused `setTyping`/`setChatTyping`/`listPublicRooms`/`redactParams` in `src/oscar.js`, unused `src/features/broadcasts.js`. +- `src/server.js` cleanup: removed unused imports; shutdown now stops TOC sessions and passes `webapiBase` to `endSession`. +- Smoke verified after cleanup: `node --check` on src/public JS, `/api/health`, `/api/challenge`, Playwright login (`steve/please`). + +### Refactor candidates (not started) + +- Low risk: `oscar.js` base-option helper; shared ICQ/normalization helpers; validation consolidation; dead `loadFeatures()`/stale TODO cleanup. +- Medium risk: split `src/routes/auth.js` login flow; modularize `public/app.js`; dedupe frontend buddy/name helpers; standardize route errors. +- Higher risk/defer: `src/toc.js` protocol refactor, poller/event-shape redesign, CSS restructure without visual tests. + +### Rollback + +```bash +git checkout main +git reset --hard 09e507d +# or create a branch from it: +git branch post-cleanup-09e507d 09e507d +```