Complete TASK-016 dark theme and persistent testtask candidate
This commit is contained in:
+78
-4
@@ -4,7 +4,7 @@ This file holds accepted, scoped implementation work. It is not a speculative ba
|
||||
|
||||
## Proposed implementation sequence
|
||||
|
||||
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through TASK-003 and TASK-012–TASK-013 are complete; TASK-014 is complete following Captain acceptance on 2026-11-04; TASK-006 is superseded; TASK-005 and TASK-008 are accepted; TASK-015 is Complete following Captain acceptance on 2026-11-04; TASK-016 is accepted for planning only; TASK-017 is Complete following Captain acceptance on 2026-11-07; the remaining tasks are proposed. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. TASK-013 supersedes the dog-walk reference added by TASK-012; TASK-014 supersedes timer work.
|
||||
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through TASK-003 and TASK-012–TASK-013 are complete; TASK-014 is complete following Captain acceptance on 2026-11-04; TASK-006 is superseded; TASK-005 and TASK-008 are accepted; TASK-015 is Complete following Captain acceptance on 2026-11-04; TASK-016 and TASK-019 are implementation-ready / awaiting Captain validation as a coordinated UI group; TASK-017 and TASK-018 are Complete following Captain acceptance; the remaining tasks are proposed. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. TASK-013 supersedes the dog-walk reference added by TASK-012; TASK-014 supersedes timer work.
|
||||
|
||||
### TASK-001: Application foundation and responsive shell
|
||||
|
||||
@@ -238,7 +238,7 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through T
|
||||
|
||||
### TASK-016: Apply a consistent dark theme
|
||||
|
||||
- Status: Accepted for planning; awaiting implementation instruction
|
||||
- Status: Complete — Captain explicitly accepted TASK-016 and authorized its commit and local codex merge on 2026-11-11. Rebuilt source: `.task-worktrees/task-016`, branch `task/016-dark-theme-rebuild`, base `922d1f6`. This is a reconstruction, not recovery of the old missing `/tmp` candidate.
|
||||
- Requested: 2026-11-04
|
||||
- Objective: Make the application consistently dark themed while preserving existing layout, navigation and workout behavior.
|
||||
- Scope: Dark page backgrounds and layered card/panel surfaces; readable primary/secondary text; coordinated borders, green accents, buttons, links, badges, form inputs and native controls. Cover selected, hover, focus, disabled, loading, saved/success and error states. Use shared CSS color tokens and compatible React-Bootstrap theme settings rather than scattered overrides. Retain the existing typography, spacing and component hierarchy.
|
||||
@@ -246,10 +246,10 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through T
|
||||
- Relevant areas: `src/styles.css`, `src/main.jsx`, `src/App.jsx`, shared React-Bootstrap configuration, strength/hang editors where required, existing interaction tests and `docs/SPEC.md`. No workout data or IndexedDB migration is expected.
|
||||
- Proposed approach: Inspect current UI and approve a restrained dark palette; centralize semantic colors for surfaces/text/borders/accent/status/focus; apply the supported Bootstrap dark theme plus local tokens; inspect all controls and states in the browser and correct contrast or native-control mismatches. Preserve existing green identity where contrast permits.
|
||||
- Required validation: Mobile (including 320px) and desktop browser review across all sections and both workout periods; keyboard/focus and measured contrast checks; input, disabled, saved and error-state review; existing test suite, lint, build, context validation and `git diff --check`; Captain visual acceptance before Complete. Avoid tests that merely duplicate CSS declarations.
|
||||
- Dependencies or blockers: Use the approved codex base and a clean dedicated task branch under WORKFLOW; TASK-015 currently occupies the sole worktree. Coordinate styling with TASK-015; neither task requires implementing the other's behavior. No new app behavior is authorized here.
|
||||
- Dependencies: Confirmed codex base `922d1f6`. The 2026-11-11 rebuild reimplements accepted TASK-018 compact CSS requirements as a prerequisite. TASK-020 launcher repair is copied to make the candidate runnable. TASK-019 availability changes are not included: the earlier combined candidate is missing. No Git merge or commit occurred.
|
||||
- Non-goals: New layouts, unrelated UX redesign, light-mode variants, a theme picker, OS-theme switching, new settings or persistent preferences, and changes to workout definitions/storage/timers.
|
||||
- Decisions required before implementation: Review the exact palette through the UI brief; default scope is a single dark theme. A light/dark switch would require separately approved scope.
|
||||
- Recommended skills when engaged: Frontend UI Design → Webapp Feature → Frontend Visual QA. This record does not authorize implementation.
|
||||
- Recommended skills when engaged: Frontend UI Design → Webapp Feature → Frontend Visual QA. Captain engaged implementation with TASK-019 on 2026-11-08; palette/composition and measured contrast are in `docs/TASK-016_UI.md` on the TASK-016 branch.
|
||||
|
||||
|
||||
### TASK-017: Replace EMOM tables with one weight and one total-reps input
|
||||
@@ -276,3 +276,77 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through T
|
||||
|
||||
|
||||
- TASK-017 completion evidence (2026-11-07): Captain explicitly stated “task complete. commit all and merge to codex”, accepting EMOM totals and shared per-side inputs. Final automated verification: 143 tests across 13 files, lint, build, context validation and whitespace checks pass. No independent agent browser visual pass is claimed. Captain authorized committing all pending task changes and local codex integration; no push/deployment. Work was done on a dedicated task branch in the original worktree, not a separate implementation worktree; this workflow deviation is recorded, not retroactively corrected. Testtask execution belongs to Captain.
|
||||
|
||||
|
||||
### TASK-018: Narrow numeric workout inputs
|
||||
|
||||
- Status: Complete — Captain explicitly accepted TASK-018 on 2026-11-08; implementation engaged on 2026-11-08; dedicated branch `task/018-compact-inputs`, worktree `/tmp/exercise-tracker-task-018`, base `922d1f6`.
|
||||
- Requested: 2026-11-08.
|
||||
- Objective: Reduce the excessive width of numeric fields; Captain expects values of at most three digits in normal use.
|
||||
- Scope: Compact widths for regular performance measurements and equipment loads, EMOM weight/total reps, hang attempts/goal and earlier-record numeric editors. Adjust their grid columns where necessary so inputs no longer stretch across the card; retain aligned headings, readable labels and the existing visual language.
|
||||
- Acceptance criteria: Three-digit values remain readable with native input controls, padding and focus indicators. Existing supported decimal weights remain usable. Inputs are visibly compact at desktop and mobile widths, including 320px; labels, units, historical side text and errors wrap without horizontal overflow. Preserve accessible names, keyboard use and control height. Existing validation, zero/blank semantics, Save, suggestions, date isolation and historical data behavior remain unchanged. Three digits guide visual sizing; this task does not add a 999 limit or truncate existing data.
|
||||
- Relevant areas: `src/styles.css`, `src/PerformanceEditor.jsx`, `src/EmomTotalEditor.jsx`, `src/StrengthEntryEditor.jsx`, `src/HangGoalEditor.jsx` and existing tests if markup must change.
|
||||
- Proposed approach: Use a shared compact numeric width with bounded grid columns; keep labels free to wrap and retain existing responsive stacking. Prefer CSS-only changes. Inspect three-digit values and supported decimal loads with browser number controls before settling the width.
|
||||
- Required validation: Existing tests, lint, build, context validation and `git diff --check`; inspect task diff against confirmed codex base. Desktop and 320px manual checks for regular/mixed-equipment rows, EMOM, hangs and expanded earlier records; keyboard/focus and zero/blank/decimal entry checks. Captain runs `PATH=/home/rob/.nvm/versions/node/v24.21.0/bin:$PATH scripts/testtask.sh 018`; Captain visual acceptance is required before Complete. No tests that merely duplicate CSS rules.
|
||||
- Dependencies: TASK-017 is integrated in clean local `codex` at `922d1f6`. ADR-016/019 preserve load and storage semantics, ADR-020 preserves two-field EMOM, ADR-021 preserves shared side entry. TASK-016 dark theme remains separate. Prepare the dedicated numbered branch under WORKFLOW only when implementation is engaged and authorized; no Git operations are authorized by this briefing.
|
||||
- Non-goals: Dark theme, card redesign, smaller touch heights, new numeric limits, changed validation/storage, programme changes or unrelated refactoring.
|
||||
- Recommended implementation skills: Webapp Feature → Frontend Visual QA; Roborto Project Context governs task/handoff. No application implementation or browser/testtask launch during lock-on.
|
||||
|
||||
- TASK-018 agent validation (2026-11-08): 143 tests across 13 files, lint, production build, context validation (0 warnings) and `git diff --check` pass. Final diff reviewed against confirmed codex base `922d1f6`; only scoped CSS and task context changed. CSS-only change uses shared 5.25rem numeric inputs, bounded desktop/EMOM columns and aligned desktop headings; control heights, responsive stacking and data behavior retained. No new numeric limits or CSS-mirroring tests. Desktop/320px, native controls, decimal readability and keyboard/focus checks await Captain testtask acceptance. No testtask/browser launched.
|
||||
|
||||
|
||||
### TASK-019: Hide previous-session action when no applicable data exists
|
||||
|
||||
- Status: Implementation-ready / awaiting Captain validation — engaged with TASK-016 on 2026-11-08; `task/019-previous-availability` in `/tmp/exercise-tracker-task-019`.
|
||||
- Requested: 2026-11-08.
|
||||
- Objective: Show “Use previous session” only when there is compatible previous-session data that can be applied.
|
||||
- Scope: Conditional visibility in regular set/hold/hang and EMOM performance editors, including preserved detailed historical editors where the action exists. Resolve availability using the existing previous-performance compatibility rules: same exercise, period and format, compatible saved definition, earlier actual date and completed source rows. Empty, draft-only, incompatible, current-date or future records do not qualify. Preserve aggregate/minute separation and explicit user-triggered application.
|
||||
- Acceptance criteria: The action is absent when no qualifying source exists, including a fresh database; visible when qualifying data exists. Keep it absent while availability is unknown or lookup fails; surface lookup failure with a retry path. Re-evaluate on date, period, exercise or saved-definition/format changes without stale results or button flashes. Checking availability writes nothing and never applies data automatically. Preserve current-entry protection, zero values, partial drafts, suggestions requiring review/Save, saved data and historical isolation. Existing populated-entry behavior is otherwise unchanged; this task does not broaden when suggestions may overwrite current work.
|
||||
- Relevant areas: `src/DetailedPerformanceEditor.jsx`, `src/EmomTotalEditor.jsx`, `src/performanceStorage.js` and corresponding UI/storage tests.
|
||||
- Required validation: Fresh/empty store, compatible completed source, zero-valued source, draft-only and incompatible sources, current/future exclusion, date/period/exercise changes, stale async responses, storage failure/retry, and existing-entry preservation. Run full tests, lint, build, context validation and `git diff --check`; review against confirmed integration base. Captain manual verification of hidden/visible states and keyboard access through testtask 019 is required before Complete. Captain alone runs testtask.
|
||||
- Dependencies: Existing `previousPerformance` rules and ADR-019/020/021 govern compatibility and history. TASK-018 is Complete but uncommitted in its own worktree. TASK-019 starts from confirmed codex `922d1f6` with accepted TASK-018 CSS copied as a prerequisite. TASK-016 contains a copy of the TASK-019 candidate for the shared Captain test pass.
|
||||
- Non-goals: Automatically applying suggestions, changing compatibility or history semantics, overwriting current entries, new history screens, layout redesign, storage migrations or unrelated refactoring.
|
||||
|
||||
- TASK-018 completion evidence (2026-11-08): Captain explicitly stated “task-018 complete”, satisfying the Captain acceptance gate. Agent checks passed 143 tests, lint, build, context validation and whitespace review. No independent agent browser pass is claimed. Implementation remains uncommitted on `task/018-compact-inputs` in `/tmp/exercise-tracker-task-018`; commit and integration require separate Captain instruction.
|
||||
|
||||
|
||||
#### TASK-016 / TASK-019 group implementation evidence — 2026-11-08
|
||||
|
||||
- TASK-019: Shared keyed/cancellable availability lookup gates the action in detailed and aggregate EMOM editors. Unknown/empty/incompatible availability stays hidden; lookup failures have a separate retry path preserving current input. Existing compatibility, explicit application and current-entry protection remain unchanged. Added real IndexedDB UI cases and async race/retry tests; existing suggestion tests now wait for availability.
|
||||
- TASK-016: Single dark document theme before first paint, semantic surface/text/accent/border/status tokens and coordinated Bootstrap/native controls. No theme switch or OS preference dependency. Existing layout and accepted compact-input dimensions retained. Brief and measured palette ratios: `docs/TASK-016_UI.md` in the task worktree.
|
||||
- Validation: Full suite passes 155 tests across 15 files in both candidates; after the final parent-context race guard, the focused suite passes 13 tests across 2 files (including one additional regression). Final lint/build, context validation (0 warnings), whitespace checks and diff review against codex `922d1f6` pass. Overlay review separates TASK-018 CSS and identical TASK-019 files from TASK-016 changes. No storage/schema/dependency changes.
|
||||
- Remaining acceptance: Captain desktop/320px, keyboard/focus, all sections/both periods, native number controls, initial/reload theme and suggestion hidden/visible/failure states. Palette text pairs exceed 4.5:1 and essential border/focus pairs exceed 3:1 by sRGB calculation; no browser visual/console/network pass is claimed. Captain alone runs testtask. Both tasks remain awaiting acceptance, not Complete. No commits/merges/push/deployment.
|
||||
|
||||
|
||||
### TASK-020: Run testtask from project home
|
||||
|
||||
- Status: Implementation-ready / awaiting Captain validation — repaired on 2026-11-11 in persistent `.task-worktrees/task-020`, branch `task/020-testtask-repair`, base `922d1f6`. Reviewed tooling is installed uncommitted in project home. The former `/tmp` implementation is missing.
|
||||
- Objective: Run `scripts/testtask.sh TASK_ID` from project home and select the corresponding checked-out task implementation, including uncommitted task files.
|
||||
- Scope: Project-local wrapper source routing using Git worktree/branch metadata; preserve the standalone runner, snapshot integrity/secrets rules, browser isolation and Captain ownership. Report the selected source and refuse missing/ambiguous task worktrees rather than silently testing codex. Install the reviewed wrapper/helper in project home for immediate use, retaining the authoritative task worktree copy.
|
||||
- Acceptance: Home-folder invocation for TASK-016 selects its combined candidate; other active numbered task branches route independently. Paths with spaces work. Invalid IDs, unknown tasks and ambiguous candidates fail clearly. No branch switches, commits or merges. No runner/browser launched during agent checks.
|
||||
- Validation: Routing integration tests in temporary fixture repositories with a stub runner, shell syntax, Python checks, context validation and whitespace/diff review. Captain performs the real testtask/browser launch.
|
||||
- Non-goals: Global CLI changes, launching/stopping test sessions, changing app storage or browser-profile persistence, application UI changes.
|
||||
|
||||
- TASK-020 evidence (2026-11-08): Five fixture-repository routing tests pass with a stub runner, covering home invocation, independent task IDs, dirty/untracked source preservation, paths with spaces, invalid/missing/ambiguous selection and no branch switch. Shell syntax passes; live read-only source resolution selects `/tmp/exercise-tracker-task-016` for 016. Existing snapshot/runner/hooks remain unchanged. No actual testtask/browser launched. Original and task context validation and whitespace checks pass. Captain's real launch is pending.
|
||||
|
||||
|
||||
#### TASK-020 repair — 2026-11-11
|
||||
|
||||
- Captain requested fixing testtask to work like PitchInvader. Reproduced source-resolution failure for 016: registered `/tmp` implementation directories for 016/018/019/020 no longer exist. All task branch refs point at `922d1f6`; Git unreachable objects contain only old specification/routine documents, not the missing application candidate. No recoverable 016 candidate was found in the available repository evidence. Previous implementation/acceptance records remain historical evidence, not proof of a currently available candidate.
|
||||
- Scope: Retain the standalone runner, isolated browser/profile and hash-verified snapshot adapter; select supported Node automatically through installed nvm like PitchInvader, provide read-only `--check`, report missing source loss clearly, and allow a live replacement source despite an old missing registration. Never silently test codex for a missing task. Use persistent implementation sources under `.task-worktrees/`, distinct from `.test-worktrees/` snapshots.
|
||||
- Source: `.task-worktrees/task-020`, branch `task/020-testtask-repair`; existing project-home tooling/context edits preserved and incorporated. Wrapper/helper/hook/tests copied to project home for immediate use under the existing TASK-020 installation scope. No application changes or integration performed.
|
||||
- Validation: 10 fixture routing/runtime tests pass with a stub runner, covering missing candidates, stale registrations, automatic Node selection, unavailable Node and no-launch preflight as well as original routing behavior. Real local `--check 020`, syntax, context and whitespace checks are recorded in the handoff. Captain alone launches a real runner/browser.
|
||||
- Blocker: TASK-016/018/019 uncommitted application sources are missing. Restoring a saved candidate or separately authorized rebuilding is required before testing those tasks. Do not reconstruct baseline branches and call them recovered implementations.
|
||||
|
||||
|
||||
#### TASK-016 reconstruction — 2026-11-11
|
||||
|
||||
- Trigger: Captain reported the 016 source-missing error after launcher repair. Rebuilt accepted TASK-016 in persistent `.task-worktrees/task-016` on `task/016-dark-theme-rebuild` from codex `922d1f6`; no recovery of lost uncommitted files is claimed.
|
||||
- Single dark document/Bootstrap/native-control palette, semantic tokens and coordinated states; no theme picker, OS dependency or storage/programme changes. Accepted TASK-018 compact numeric requirements are reimplemented as a prerequisite. TASK-019 is not included in this candidate.
|
||||
- TASK-020 launch tooling is copied as a prerequisite; tests/lint exclude nested `.task-worktrees` at home and in candidates. Home source preflight for 016 now passes. Actual runner and browser remain Captain-owned.
|
||||
- UI brief and measured token contrast: `docs/TASK-016_UI.md` in the new candidate. Fresh full-suite result and final checks are in HANDOFF. Desktop/320px/native-control/focus/initial-reload/manual verification remains required before Complete.
|
||||
|
||||
- TASK-016 reconstruction final evidence: 143/143 tests across 13 files pass with `npm test -- --maxWorkers=1` (default parallel run had two timing failures); final lint/build, 10 stub-runner tooling tests, home `--check 016`, context validation (0 warnings) and whitespace review pass. Diff reviewed against `922d1f6`; app changes are CSS and document theme metadata only. No real runner/browser/snapshot was started. Implementation-ready pending Captain visual acceptance.
|
||||
|
||||
|
||||
- TASK-016 completion (2026-11-11): Captain explicitly stated “task -016 complete commit and merge”, satisfying the Captain acceptance gate and authorizing commit/local codex integration of the tested reconstruction, including accepted compact-input requirements and the testtask tooling prerequisite. Agent evidence: 143/143 tests with one worker, lint/build, 10 routing tests, palette measurements, context/whitespace and diff review. Default-parallel timing failures remain disclosed; no independent agent browser pass is claimed. TASK-019 remains missing and is not included. TASK-020 retains its separate status/worktree; its launch tooling prerequisite is included in TASK-016 integration. No push/deployment or worktree/session cleanup authorized.
|
||||
|
||||
Reference in New Issue
Block a user