From 7502ea3cb3b52507c85798bb18b340642facd1fb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Jul 2026 06:51:40 +0000 Subject: [PATCH] Document the CSS-string color fallback and extra root files in CLAUDE.md Note the TableRenderer #000000 CSS fallback as a carve-out and justify the extra src/ root files (TrackLabButton, webcam.ts, tracking/) per CONVENTIONS.md \S2. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JgoPHsQnzifs5yiESGfbQL --- CLAUDE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 074f029..81d6f5d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,6 +18,17 @@ src/tracking/OpenCVTracker.ts ← OpenCV template matching in Web Worker - **Colors** → `TrackLabColors.ts` (`ProfileColorProperty` only; no hardcoded rgb/hex in views) - **Layout** → `TrackLabConstants.ts` (margins, drag speeds, touch dilation) +- **CSS-string carve-out:** `track-lab/view/TableRenderer.ts` builds the data table as real DOM + and needs CSS color **strings**, so it uses `TRACK_COLORS[…].toCSS()` with a `"#000000"` + fallback literal — the one allowed hardcoded color outside `TrackLabColors.ts` (same rationale + as RadioWaves' canvas backdrop carve-out). + +## Documented deviations (CONVENTIONS.md §2) + +Extra `src/` root files beyond the standard set, each justified by cross-screen use: +`TrackLabIcons.ts` (programmatic icons), `TrackLabButton.ts` (shared themed button), +`webcam.ts` (camera acquisition helper used by model and view), and the `src/tracking/` +folder (OpenCV template-matching Web Worker — infrastructure, not a screen). ## Model-view transform