Complete TASK-016 dark theme and persistent testtask candidate

This commit is contained in:
rob
2026-11-11 13:17:24 +00:00
parent 922d1f6bd7
commit 0cf051560b
17 changed files with 618 additions and 102 deletions
+13 -15
View File
@@ -2,27 +2,25 @@
> Replaceable snapshot; repository code and maintained context take precedence.
- Updated: 2026-11-07
- Task: TASK-017 — Simplify EMOM and per-side inputs.
- Status: Complete — Captain explicitly said “task complete. commit all and merge to codex”.
- Source: `/home/rob/projects/exercise-tracker`, task branch `task/017-emom-totals`, integration branch `codex`, base `9c0e820`. Captain authorized committing all pending task changes and merging locally; verify resulting refs/HEAD using Git. No push or deployment authorized.
- Updated: 2026-11-11.
- TASK-016: Complete. Captain explicitly accepted the reconstruction and authorized commit/local codex merge: “task -016 complete commit and merge”.
- Source: `/home/rob/projects/exercise-tracker/.task-worktrees/task-016`, branch `task/016-dark-theme-rebuild`, integration base `922d1f6`; target local `codex`. Verify resulting commit/refs with Git.
- This integration contains the accepted dark theme, reconstructed TASK-018 compact-input prerequisite, TASK-020 launcher tooling prerequisite and associated context. No push/deployment or worktree/session cleanup authorized.
## Delivered
## Delivered and validated
EMOM uses Weight (kg) and Total reps, explicit Save and compatible aggregate suggestions, without minute table or format switch. New emom-total records use a separate key, preserving historical minute/aggregate records and original editors. JSON envelope v3 supports v1/v2/v3 import; IndexedDB remains v3. Do not combine coexisting representations in future history.
Single dark green document/Bootstrap/native-control theme, semantic palette, coordinated buttons, disabled/error/saved/focus states, selected-control underlines and 5.25rem numeric fields. Workout logic, storage/schema, programme and dependencies are unchanged. UI brief and 39 measured palette pairs: `docs/TASK-016_UI.md`.
Per-side sets use one Reps (each side) or Seconds (each side) input; explicit edits set both stored sides. Historical unequal/partial values are shown as text and preserved on browsing and untouched Save. Equipment, targets, hangs, navigation and clock remain compatible. No data was cleared or silently migrated.
143/143 tests in 13 files pass with `npm test -- --maxWorkers=1`; default-parallel run had two timing failures (hang-goal timeout and side-entry readiness). Final lint/build, 10 stub-runner routing tests, no-launch source preflight, context validation (0 warnings), whitespace checks and diff review against `922d1f6` pass. Captain acceptance is recorded without claiming an independent agent browser/console/network review. No testtask/browser/server is launched for integration, and no Captain session is stopped.
## Acceptance and validation
## Other pending state
Captain accepted all TASK-017 changes on 2026-11-07, including the per-side correction, and authorized commit/local codex merge. Final verification passes 143 tests across 13 files, lint, build, context validation (0 warnings) and whitespace checks. Review against base 9c0e820 covered tracked and untracked task files; no unresolved actionable correctness findings. No independent agent visual pass is claimed.
Project-home pending files before integration were byte-identical copies of the TASK-016 candidate's tooling/context. Save them in a named Git safety stash before fast-forwarding the dirty home checkout; retain that stash as a recoverable copy. Completion/context updates supersede its older task-state text.
Work used a dedicated branch in the original worktree, not a separate implementation worktree. This deviation was acknowledged to Captain; do not describe the test snapshot as an implementation worktree.
The separate persistent `.task-worktrees/task-020` on `task/020-testtask-repair` retains uncommitted tooling/context copies. Launch tooling is included as a TASK-016 prerequisite, but TASK-020 remains separately awaiting Captain validation. Do not silently commit, clean or remove that worktree. Compare with codex before any later integration to avoid reintroducing stale context.
## Manual-test ownership and next work
TASK-019 availability logic is NOT included; its original uncommitted `/tmp` source remains missing. Original 016/018/019/020 `/tmp` registrations remain prunable evidence, with no candidate commits. No pruning or recovery is claimed. TASK-018's compact styling requirements are reconstructed in the accepted 016 candidate; its old source remains missing.
Captain runs testtask. Agents must not launch/restart it, open its browser windows or stop Captain testing sessions unless explicitly instructed. Earlier agent launches were mistakes, not authority for future execution. Final integration does not invoke testtask or refresh its snapshot.
## Testing after integration
For future Captain testing: `PATH=/home/rob/.nvm/versions/node/v24.21.0/bin:$PATH scripts/testtask.sh 017`. The repository adapter prepares `.test-worktrees/task-017` from allowlisted source files with hash checks, shares node_modules and serves loopback port 5187 with an isolated Firefox profile. Snapshot is replaceable test evidence; do not edit it. It is historical after completion-context edits and should be refreshed by Captain if reused. No test session cleanup is inferred from the commit/merge request.
TASK-016 remains planning-only; await Captain's next selected task. No implementation task is in progress after TASK-017 integration.
From project home, `./scripts/testtask.sh 016` still selects the persistent source; no PATH prefix needed. Captain alone launches/stops sessions. Snapshot files are test evidence and must never be edited. Documentation changes made for completion can make a prior snapshot stale; let the supported runner refresh when Captain next invokes it. Preserve the implementation worktrees and installed home launcher.