Add post-cleanup, pre-refactor milestone (09e507d)

This commit is contained in:
Clay 2026-12-03 15:13:28 -05:00
parent 09e507d723
commit ba6fb4ef6d

View file

@ -40,3 +40,31 @@ git reset --hard cd5beee
# or create a branch from it: # or create a branch from it:
git branch pre-cleanup-cd5beee cd5beee 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
```