# Training Atlas v0.8 — delivered iterations and review

## Current completed iteration 17

[Enlarged set recording and direct daily entry](iteration-17/README.md) contains the matched before/after views, actual operated flows, precise source patch and normal deployment record. Earlier independent verdicts stay attached to their reviewed versions.

## Current: iteration 16

[Deployed offline, workout and daily-view refinement](iteration-16/README.md): the first offline set save succeeds from a cold editor. Saving three recorded sets preserves nine planned sets and Today’s Continue entry after reconnect and reload. Explicit Finish stays in the existing More menu.

The unplanned Today card is **121 px shorter** at 1440 × 900; daily journal values share a compact line; recovery date labels remain separated at 390 px. **23/23** related tests, typecheck, production build and normal deployment pass. Exact values, an unrecorded draft and recorded-set corrections survive the operated save/reload flow.

[Independent cold review 12](../../../../reviews/v08/daily-final-cold-12/) scored the previous iteration 15 at **87/100**. Its frozen findings and this implementation’s evidence remain separate.

## Iteration 15

[Deployed save, reopen and recovery refinement](iteration-15/README.md): saving from the bottom of a workout returns to the focused saved record below the header. At 390 × 420, that card moves from **y−1495 to y66**, and the reopened workout's first weight field moves from **y496.66 to y311.67**. The summary remains in the existing command row.

Applying custom recovery dates closes the editor and retains the selected historical point. At 320 × 568 the graph moves from **y659.80 to y464.43**. The same record survives source-night navigation and return. **16/16** focused tests, typecheck/build and the normal/preview/public deployment pass. [Three exact matched pairs](iteration-15/pairs.json).

The independent review of iteration 14 remains **90/100**. Subsequent version-specific reviews are retained in the review register. Earlier checkpoints follow.

## Iteration 14

[Deployed partial-workout and recovery refinement](iteration-14/README.md): saving four recorded sets keeps eight planned sets pending. The actual stored rows, history and same-day statistics now agree: **4 / 8**, with **1,917.5 kg·reps** rather than the reproduced incorrect 4,437.5. Actual failed-write/retry paths pass, alongside **72/72** related regressions and normal deployment.

The 320 px recovery heading is one line; selected values use less height and the 28-day chart has a nearby period-mean/change explanation. [Twelve matched views](iteration-14/pairs.json) retain the same fictional task and values.

Preceding current composition: [iteration 13](iteration-13/README.md) searchable metrics and recognizable controls; [iteration 12](iteration-12/README.md) date-range and HRV context; [iteration 11](iteration-11/README.md) recovery and short active work. Earlier checkpoints follow.


## Iteration 10: continue with the next exercise

The [iteration 10 refinement](iteration-10/README.md) makes Today lead with the next pending exercise after bench is complete. Narrow-card editing controls shrink from 103.19 to 52 px, the active short-height set gains room above navigation, and the saved wider Sleep / Recovery arrangement closes the observed 136.83 px gap to 16 px.

Main and preview serve the same build with unchanged processes. Twelve journey observations, three layout reload paths, three exact recording reload paths and ten recording unit checks pass. The prior independent partly clipped RPE screenshot and the controlled baseline's fully visible but cramped row are recorded separately.

## Iteration 9: save overview and reload

[Repair and actual replay](iteration-9/README.md): the real pointer Done → immediate reload failure is repaired. Width, order and hidden choices match the backend across all three tested paths; the existing three Record/reload journeys and ten recording unit tests pass. Main and preview serve the new assets without restarting their services.

## Iteration 8: immediate record and reload

[Repair and actual replay](iteration-8/README.md): 1/3 → 3/3 matching operations, exact server values, 17/17 unit checks; preview and main deployed.

## Retained evidence from iterations 7–10

The task and composition refinement at this checkpoint is [iteration 10](iteration-10/README.md). The layout persistence repair is [iteration 9](iteration-9/README.md). The preceding record repair is [iteration 8](iteration-8/README.md), deployed to the normal main and preview services. It retains the explicit Record intent until acknowledgement and replays it after immediate reload. Three matching scenarios improve from 1/3 to 3/3, with exact persisted values and 17 recording/retry checks passing. [Iteration 7](iteration-7/README.md) supplies the current visual composition. Quiet health dividers and routine plan advice in the existing workout status row bring Continue forward without changing its destination, entered values or saved layout choices. The phone button bottom moves from y343.27 → y301.67; desktop moves from y517.39 → y481.55. Twenty operational checks and twenty-six value/layout/navigation checks pass. Iteration 6's one-line 320 px Sleep heading and existing controls remain.

| Version | Implemented improvement | Matched evidence |
|---|---|---|
| Original v08 and [iteration 2](iteration-2/README.md) | Workout-first overview, exact sleep-stage intervals and daily health semantics; subsequent first-review refinements. | The original matched baseline, screenshots and 19 journeys remain below. |
| [Iteration 3](iteration-3/README.md) | Selected health date opens the precise dated reading. | Exact night-reading context and source patch. |
| [Iteration 4](iteration-4/README.md) | Compact default overview and phone workout entry. | At 320 × 568 the workout begins at y187 → y71.19; desktop HRV/RHR move from y558.39 → y285.16; [14 actual journeys](iteration-4/journey-results.json). |
| [Iteration 5](iteration-5/README.md) | Focused set stays visible on a short phone; saved custom layouts use their actual content height. | The active input row moves from y312.66–360.66 → y230.66–278.66 after shrinking the viewport; custom sleep-first gap 299.84 → 16.45 px. Nineteen matched pairs and twenty journeys include completion, immediate reload and manual scrolling. |
| [Iteration 6](iteration-6/README.md) | One-line narrow sleep heading with its controls in the same row. | 18/18 checks, no runtime page errors; real period/add dialogs, keyboard menu close and sleep-stage ArrowRight. |
| [Iteration 7](iteration-7/README.md) | Quieter health context and routine plan advice within the existing workout status row; default 320 px recovery/sleep share a row. | Continue bottom 343.27 → 301.67 px on both phone sizes; 20/20 operations and 26/26 preservation/navigation checks. Saved custom order, widths and visibility remain. |
| [Iteration 8](iteration-8/README.md) | Explicit Record survives reload before acknowledgement. | 1/3 → 3/3 matched record/reload scenarios, exact server values, 17/17 recording/retry unit checks; main and preview deployed. |
| [Iteration 9](iteration-9/README.md) | Done preserves overview configuration through immediate reload. | 3/3 UI and backend paths, existing 3/3 Record/reload regression, 10/10 recording unit checks; deployed to the existing main/preview static roots. |
| [Iteration 10](iteration-10/README.md) | Next pending exercise leads Today; one-row custom controls, clearer short-height editing and a composed saved sleep-first summary. | Toolbar 103.19 → 52 px; edited-row bottom space 8.16 → 53.16 px; Recovery gap 136.83 → 16 px; twelve journey observations and both three-path reload regressions pass. |

## Independent reviewed versions

| Review | Artifact actually inspected | Score /100 | Consequential observation |
|---|---|---:|---|
| [Initial cold product review](../../../../reviews/v08/cold-products-1/first-report.md) | Original supplied product before its subsequent repair passes | 68 | First findings retained in the original report. |
| [Acceptance 1](../../../../reviews/v08/acceptance-1/judgments.json) | Supplied v08 snapshot for that review | 74 | Actual set/reload, sleep/date and custom-width operations. |
| [Acceptance 2](../../../../reviews/v08/acceptance-2/criterion-ledger.md) | Iteration 4 | 68 | Focused weight field fell behind fixed navigation at short height. |
| [Acceptance 3](../../../../reviews/v08/acceptance-3/criterion-ledger.md) | Iteration 5 | 80 | Completed and reloaded 67.5 kg × 7 at RPE 8.5; retained custom layout and exact 71.312 ms HRV for December 3. The 320 px sleep title wrapped vertically. |
| [Acceptance 5](../../../../reviews/v08/acceptance-5/criterion-ledger.md) | Iteration 8 | 74 | The real pointer Done/immediate-reload path reverted overview preferences; iteration 9 repairs it. |
| [Daily products 6](../../../../reviews/v08/daily-products-cold-6/criterion-ledger.md) | Iteration 9 | 84 | Daily adoption yes; the short-height row, customization controls/composition and completed exercise summary motivate iteration 10. |

Iteration 5 addresses the observed focused-input path; iteration 6 addresses the narrow sleep title. Review 4 inspected iteration 7 and recorded the immediate-reload failure repaired by iteration 8. Review 5 inspected iteration 8 in a fresh synthetic account and observed the custom-layout race repaired in iteration 9. The separate daily review 6 operates iteration 9 and records the next actual costs addressed by iteration 10. [Complete review/version index](../../../../reviews/v08/README.md).

## Original v08 implementation and baseline

The remaining sections document the original matched implementation. Their 13-file patch, capture counts, fixture and measurements retain that original scope; each later iteration above has its own source delta and replay.

- Existing main: http://127.0.0.1:3001/ (APP_ORIGIN https://app.training-atlas.workers.dev).
- Existing isolated preview: http://127.0.0.1:3015/#/overview.
- WebCodex task: 5e039ec9c6574c53b425811c59fc90e0; project local/training-atlas.
- Baseline revision: ae3f0a7a24a96f4c64aae1634811806fd1c63a8a.
- The repository was already dirty. The complete pre-change web source is retained privately in .artifacts/v08/atlas-before/baseline-web.tar.gz; baseline-status.txt records the starting status. The public incremental patch contains only this refinement.
- This batch changes 13 web source files, listed in changed-files.json. implementation.patch is the delta against that exact dirty baseline, including the new SleepRibbon component. No files were staged, restored or committed.
- Both original static build directories were rebuilt. The running Node services were preserved. Main HTML, foundation CSS and overview CSS return HTTP 200 and serve the new design.

## Design decisions

Two rendered compositions were compared using identical fixture content: direction-performance.png and direction-editorial.png. The selected composition gives the current workout one pale, prominent surface, places four compact health readings beside it, and puts the same workout first in the mobile DOM. Existing saved layout customizations retain their chosen order, width and visibility.

Sleep uses exact stage intervals on aligned lanes, with duration and percentage in a separate aligned column. Connectors join only adjacent known intervals; actual unknown intervals retain their hatch. The homepage sleep ribbon reads the existing sleepDisplay result and its real time coordinates. It invents no stages.

The health page puts sleep and steps in the first desktop content row. Daily steps keep their existing zero-based bars; daily TRIMP now explicitly requests bars. Existing trend selection, missing-day semantics, totals, routes, history and record workflows remain. The sleep record action shares the heading instead of occupying its own row.

Reference observations: Oura's Today/Vitals separation and WHOOP's daily action hierarchy informed prioritization; no reference graphics were copied.
https://ouraring.com/blog/new-oura-app-experience/
https://www.whoop.com/us/en/thelocker/the-all-new-whoop-home-screen/

## Controlled comparison

The same synthetic account, 1,311 records, 2026-12-04 data, fixed time, Taipei timezone, route and viewport were used before and after. Synthetic records exist only in the existing preview database. The second journeys account is separate.

| Viewport | Continue top before → after | First-screen reachable before → after | Steps card top before → after |
|---|---:|---|---:|
| 1440 × 960 | 572.4 → 467.8 px | yes → yes | 864.7 → 236.0 px |
| 390 × 844 | 635.3 → 370.1 px | yes → yes | 1164.6 → 929.9 px |
| 360 × 640 | 635.3 → 370.1 px | no → yes | 1164.6 → 929.9 px |

The continue journey and sleep-detail journey remain one click. All four primary values and their destinations match the baseline. All 12 chronological sleep segments retain identical stage/start/end values. Steps remain 9,273 with 14 bars and no trend line.

before-benchmark.json and after-solo-benchmark.json retain all five timing samples for each journey and viewport. These measure Playwright click-to-visible plus two animation frames, including auto-scroll, visibility waits and transitions. The platform-shaped ~1,000/1,500 ms sample plateaus are not evidence of human task speed. Primary benchmark conclusions use first-screen reachability, spatial position, data correspondence and successful operations.

## Validation

- 15 matched screenshots per phase: desktop overview/health/sleep/active training/nutrition/journal/plans; 390 and 360 px overview/health/sleep/active training.
- No horizontal overflow in these captures and zero page errors.
- Productive UI audit, min text 12 px / target 24 px: overview 2→0 findings; sleep 3→0; health 20→0 desktop and 22→0 mobile.
- Actual screenshot pixels confirm main-card advice foreground #59644e over #e9eedc, contrast 5.28:1. The audit's sleep-heading painted-background review was resolved against raster output: dominant painted foreground (226,228,219) over (16,19,15), contrast 14.57:1; CSS foreground contrast 16.56:1.
- The only console network error is the unauthenticated /v1/auth/session request (401) before developer login. No subsequent application page error was observed.
- 19 checks passed in journey-results.json: customization save/reload/cancel/reset; active session continuation; editing a planned set to 67.5 kg, completing it and retaining it after reload; overview progress reflecting 3/12; sleep Home/Arrow/End inspection; timeline/totals; short-phone sleep form entry/cancel; steps keyboard selection; overflow checks.
- Existing health-chart-visual.integration.py passed 7/30/180-day real-zero, missing-day, daily/weekly bars, period-mark and mobile inspection cases.
- npm run typecheck and both builds passed. Existing large-chunk build warnings remain.

## Evidence and reproduction

- Main images: after-overview-1440.png, after-overview-360.png, after-steps-1440.png, after-sleep-390.png, after-training-1440.png, after-training-360.png.
- Same names prefixed before- show the baseline.
- comparison.json: raw positions, reachability, data equality and audit counts.
- paint-and-service.json: actual paint samples, contrast and live main resource responses.
- capture.py / benchmark.py / journeys.py / paint.py: browser evidence scripts.
- fixture.mts / fixture.json: reproducible data generator and the fixed screenshot account. journeys/fixture.json is the independent mutation account.
- Browser runtime: .state/multiweek-20261117/browser-env/bin/python.
- Set ATLAS_TEST_PASSWORD for the isolated test account and optionally ATLAS_BASE_URL before running capture.py; credentials are not included in the artifacts.
- New independent review should create a fresh fixture account with fixture.mts, then exercise the existing preview. Current screenshots account is intentionally preserved for comparison.
- Main data was not used for test writes. Changes are presentation/component layout only; no domain algorithm or API/storage implementation was altered.

The original checkpoint remains preserved alongside the completed cold reviews and later source repairs listed above.

## Earlier independent daily review 7

[Cold review 7](../../../../reviews/v08/daily-products-cold-7/criterion-ledger.md) operated iteration 10 in a fresh fictional workspace and awarded **94/100**. It would use the product daily and affirms world-class quality for the operated training/recovery loop. Its first judgment preceded the rubric and author-run build records; its complete operations, screenshots and remaining costs are retained.

## Iteration 11: deployed checkpoint

[Actual before/after, source and replay](iteration-11/README.md). Recovery score and three readings share the first phone frame; overview editing retains the exact saved module arrangement; short focused set entry releases 65.19 px and restores navigation afterward. Final context 22/22, layout reload 3/3, exact record reload 3/3 and daily regression 12/12 pass. The public app serves the same build as the validated main and preview.

## Iteration 12: HRV comparison after applying a range

[Source, matched views and nine actual flows](iteration-12/README.md). The applied custom form collapses, placing the complete 180 px plot in the 390 × 640 first frame after source return/reload. The existing legend explains period means and changes; the 320 px title fits one line. Four matched contexts retain exact readings and routes. The broader [cold review 8](../../../../reviews/v08/daily-products-cold-8/score-ledger.md) scored the previous iteration 11 at 82/100 and retained its daily-use Yes; this subsequent repair has separate author-run evidence.

## Iteration 13: find and arrange the desired metric

[Four matched views, source, nine operated paths and deployment](iteration-13/README.md). The common metric chooser adds search inside its existing disclosure; 31 choices become one result for 握力, and the 320 px expanded panel shrinks from 738 to 378.59 px. The narrow Today header has two actions; devices remain reachable through the existing routes. Adjustment menus use a familiar three-dot control without changing the six primary cards’ rectangles. Selection, order, width and visibility survive immediate reload; the HRV custom range remains intact.
