# Atlas v08 — iteration 4

## Working brief

Daily user → inspect today's training and recovery → continue the active workout or save a personal overview → desktop, 390 × 640 and 320 × 568 → preserve real values, record routes, workout completion, and saved order/width/hidden choices.

The existing pale workout panel, dark health surfaces, semantic metric colors and aligned set preview remain the visual direction. This is a focused repair of the relationship between that primary panel and its surrounding metrics, with a compact phone entry.

## Observed cause and chosen repair

The supplied synthetic account already had a customized lower HRV chart width of one third. All first six summary blocks still used the original order and widths. The previous composition condition required every block on the entire page to equal the defaults. That lower customization disabled the workout's three-row span and left a large vacant area to its right.

Composition eligibility now checks the first six relevant entries only. Changing their own order, width or visibility still chooses the ordinary customizable grid. Later customizations retain their values and no longer dismantle the summary. Stretching is confined to those first six blocks.

On phones, the overview's existing Device & sync control already opens app sync status and the actual Sync now action. Settings is already present in More. The redundant brand/sync/settings band is therefore omitted on this page; required reauthentication keeps its existing band. The date is grouped with Today's title, with edit and coach actions beside it. During layout editing on the shortest phone, the date yields space to Cancel and Done. A pending marker on the existing device icon and its status title retain visible sync context.

Rejected alternative: resetting the person's layout to the default would erase a useful width choice. A denser global grid or smaller metric typography would alter unrelated parts of the product. Neither is necessary for the observed cause.

## Matched observations

All captures use the same private setup, fixed fixture time, locale zh-TW, timezone Asia/Taipei, viewport, 100% zoom, scroll position and settled data. The before overview has the actual saved one-third HRV chart. Default desktop captures are separately named before-default and after-default.

| Viewport | Observation | Before | After |
| --- | --- | ---: | ---: |
| 1440 × 960 | Night HRV / resting HR top | 558.39 px | 285.16 px |
| 1440 × 960 | Workout top | 92 px | 92 px |
| 390 × 640 | Workout top | 136 px | 71.19 px |
| 320 × 568 | Workout top | 187 px | 71.19 px |
| 320 × 568 | Recovery card bottom | 594.08 px | 478.27 px |

At 320 × 568 the bottom navigation begins at 502.81 px: the recovery value and meter now fit above it. At 390 × 640 both recovery and the complete sleep card fit above navigation. The desktop workout remains the dominant object and its right side now contains recovery, sleep, HRV, resting heart rate and quick actions.

The before/after visible main-content text is exactly equal at all three sizes. DOM block order and widths are also exactly equal. The lower HRV chart remains one-third width. These observations establish retained displayed values and choices; source edits do not touch health calculations, record routes or chart data.

Geometric measures in after-observations.json use the PUI measureWorkspace clipped-geometry and 5 × 5 pointer-sampling methods. Screenshots were visually inspected separately. No painted-pixel or speed claims are made.

## Actual workflow verification

All 14 focused journey checks passed:

- Existing device dialog exposes app sync and performs Sync now on the phone.
- More opens Data & settings.
- Done and Cancel remain reachable at 320 × 568.
- A deliberately failed actual IndexedDB preference write keeps the changed draft and enabled retry.
- Retrying produces visible Saved feedback after the write completes.
- Changed order, width and hidden state survive an immediate reload.
- Cancel preserves the last saved layout.
- Reset restores defaults and hidden modules.
- The original fixture's exact visible order and width choices are restored.
- Continue workout opens the original active session and its next editable set.
- A separate owned synthetic workout records 62.5 kg × 6 and persists completed session and set state.
- No runtime page errors occurred.

The test created exactly four owned entities for the completion replay. All four were deleted in its cleanup. The original active workout and its sets were not changed. Browser contexts and browsers were closed; no temporary server was started.

## Checks and observed failures

- Final typecheck: exit 0.
- Final preview build: exit 0, output .state/instances/preview/web.
- Final main build: exit 0, output apps/web/dist.
- Both existing services, 3015 and 3001, return HTTP 200.
- auditInterface on overview and training at all three sizes: zero final findings and zero page errors.
- Initial audit found the narrow customized chart's Details link was 23.02 px wide. Its minimum width is now 24 px; final audit passes.
- An initial short-phone edit probe showed the date crowding editing actions. The date is hidden only in that edit state.
- The first journey harness stopped after the successful failed-write check because a function-valued assignment was evaluated as a callable by Playwright. Wrapping the prototype restoration in an explicit function corrected the harness. The complete replay then passed. The partial first run is preserved in journey-harness-first-run.json.
- System Python and the runner's default Python lacked Playwright; all browser verification used /home/nvidia/miniforge3/bin/python. One evidence-packaging command was transiently rejected by the runner's process limit; the retry completed.
- Both builds retain Vite's existing large-chunk warning (over 500 kB). No bundle splitting was introduced in this layout repair.
- The separate preexisting Body regression failures documented by iteration 3 were not modified.

## Scope and evidence

Five source files changed, listed in changed-files.json. implementation.patch is relative to the exact scoped pre-iteration-4 source snapshot, including all preexisting dirty work. No reset, staging or commit was performed. The parent's iteration-3 HRV repair, evaluator, rubric, reviews and root Productive UI skill were not edited.

Key evidence:

- before/after-overview-1440x960.png
- before/after-overview-390x640.png
- before/after-overview-320x568.png
- before/after-default-overview-1440x960.png
- before/after-training at all three matched sizes
- after-edit-320x568.png
- after-custom-save-failure-320x568.png
- after-custom-save-320x568.png
- after-training-completed-390x640.png
- comparison.json, journey-results.json, after-observations.json
- typecheck-final.txt, build-preview-final.txt, build-main-final.txt, service-check.json

Further product work should start from a new observed task cost. The intentionally narrow saved HRV chart remains narrow, and the summary obeys customized hero order/width/visibility by returning to the ordinary grid.
