# Training Atlas iteration 11: connected recovery readings and a faithful editing preview

Open [Training Atlas](https://app.training-atlas.workers.dev).

The deployed Atlas build keeps the selected recovery score beside HRV, resting heart rate and sleep; lets overview editing use the same module arrangement as the saved overview; and recovers the bottom navigation's space during a short, focused set entry.

Main on port 3001 and preview on port 3015 both serve **`/assets/index-D9n6V3BK.js`**. The comparison starts from the actual previous build, `/assets/index-MyIBjgAR.js`, using one new synthetic account, the same fixed date, records, browser and operations.

## Observed gains

| Task and viewport | Original build | Deployed build |
|---|---|---|
| Compare the recovery score with its three component readings, 390 × 640 | 0 of 3 component readings in the unobstructed first viewport; 174.75px further scroll to show all three | 3 of 3 in the existing score header; no further scroll |
| The same recovery comparison, 320 × 568 | 0 of 3; 421.09px further scroll | 3 of 3; no further scroll |
| Enter overview editing at 1440, 390 and 320px widths | All six leading summary rectangles change position or size at each width | All six retain their exact x/y, width and height within the overview grid |
| Module titles added by the editor | 14 repeated module titles | 0; the actual content identifies each module |
| Short focused entry, 390 × 360 | Bottom navigation occupies 65.19px; the following row extends 6.03px under it | Navigation releases 65.19px; the following row has 59.16px clear below it |
| Fully reachable set rows in that short frame | 1 | 2 |
| Exact entered record after return and reload | 67.5kg × 7, RPE 8.5 retained | The same values retained |

Overview coordinates are relative to the grid's origin. The existing page-level editing controls remain above the grid. The normal composition, wide-Sleep composition and user-selected order, widths and visibility use the same layout in editing and saved states.

The final replay passes all **21 matched observations**, plus the final single-line narrow-menu label check. The original replay records eight unmet observations. Both record zero browser page errors.

[Measurements](measurements.json) · [Original results](before/results.json) · [Deployed results](after/results.json) · [Original execution](before/execution.txt) · [Deployed execution](after/execution.txt)

## Recovery: one selected day, one readable group

| Before, 390 × 640 | After, 390 × 640 |
|---|---|
| ![Original recovery view with component values below the chart](before/recovery-390x640.png) | ![Recovery score and its actual component values share the header](after/recovery-390x640.png) |

The existing component links move into the score's existing header group. Desktop places the readings beside the score. Phone layouts use the adjacent column for HRV, resting heart rate and sleep. Their values, units and detail destinations are identical in the matched before/after record.

The displayed fixture date has a score of 74, HRV 67.6ms, resting heart rate 53.3bpm and sleep 7h 20m. After selecting 11/20–12/03 and the 12/03 observation, the view shows 82, 71.3ms, 52.5bpm and 7h 20m. Opening that night's sleep, using Return and reloading restores the same range, date, exact readings and URL.

The trend retains its height and encoding. On the phone its top moves down 30.16px to accommodate the adjacent readings; the comparison values move above it. Desktop trend geometry is unchanged.

[320px before](before/recovery-320x568.png) / [after](after/recovery-320x568.png) · [Desktop before](before/recovery-1440x900.png) / [after](after/recovery-1440x900.png) · [Selected range](after/recovery-custom-selected-390x640.png) · [Sleep detail](after/selected-sleep-390x640.png) · [Return and reload](after/recovery-return-reload-390x640.png)

## Overview editing: adjust the actual composition

| Before, 1440 × 900 | After, 1440 × 900 |
|---|---|
| ![Original editing view with added module headers and changed placement](before/overview-edit-1440x900.png) | ![Editing retains the compact normal composition with contextual grips](after/overview-edit-1440x900.png) |

Each module has one grip that supports pointer dragging and opens its existing options. Move earlier, move later, width and hide remain available. The actual module label replaces the repeated editor title. The workout grip occupies its existing arrow position during editing; the quick-actions grip occupies its existing corner action position. The normal overview retains those ordinary actions.

The default summary keeps the workout across its three adjacent reading rows. The wide-Sleep arrangement also retains its Recovery region beside the two compact vital readings. Other custom layouts use the same existing flow measurement while editing.

| Before: custom arrangement being edited | After: the same custom arrangement being edited |
|---|---|
| ![Original custom editor changes the saved composition](before/layout-custom-preview-1440x900.png) | ![Custom editor matches the saved order and composition](after/layout-custom-preview-1440x900.png) |

The replay moves Sleep before Recovery, changes Sleep to half width, hides VO₂max, presses Done and reloads immediately. The saved UI and backend preference match the intended order, widths and visibility. The five leading custom-summary rectangles also match the saved composition.

At 320px, the grip opens with Enter, all four adjustment actions fit above bottom navigation, and the width label remains on one line. The existing immediate-save intent and durable write path are unchanged.

[Saved custom result](after/layout-custom-saved-1440x900.png) · [390px editor](after/overview-edit-390x640.png) · [320px editor](after/overview-edit-320x568.png) · [320px options](after/layout-options-320x568.png)

## Short entry: the next set stays in view

| Before, 390 × 360 | After, 390 × 360 |
|---|---|
| ![Bottom navigation covers part of the following set](before/short-active-390x360.png) | ![The active and next set remain fully visible with navigation space reclaimed](after/short-active-390x360.png) |

A set logger marks its own short editing state when an input, select or textarea is focused, the window is at most 480px wide, and the visual viewport is shorter than 480px. The shell then releases bottom navigation and its reserved bottom padding. The state clears on blur and unmount; resize reevaluates it.

The browser replay operated blur, a 640 × 390 landscape resize, restoration to 390 × 640, and browser Back. Navigation returned in every case. The same next-exercise progression still works after completing the bench sets.

This measurement uses a reduced-height Chrome viewport: `visualViewport.height = 360`, device scale 1. The portable workspace meter samples a 5 × 5 grid of pointer hit targets. Both builds expose the active field at all 25 sampled points; the final build also exposes the following row fully. The settled screenshots show their rendered appearance.

## Decisions and retained probes

The visual direction keeps Atlas's pale active-workout surface, strong current-entry numerals, amber recovery score, lavender sleep encoding and restrained olive canvas. The changes address information proximity, editing continuity and working height within that direction.

- **First candidate:** recovery and short entry improved, but four overview geometry observations failed. A zero-height details item still contributed a 5.59px flex gap, and reserved quick-action padding caused wrapping at 320px. Absolute controls and the existing action positions resolved both. [Results](candidate-1/results.json) · [Patch](candidate-1/source.patch)
- **Second candidate:** all geometric/workflow observations passed. The short-entry screenshot still contained the previous layout-save toast. The settled replay waits for that existing toast to finish and adds pointer reachability measurements. The original capture remains available. [Initial capture](candidate-2/short-active-390x360.png) · [Settled results](candidate-2-settled/results.json)
- **Final narrow finish:** the 320px options menu's width label wrapped. Giving its existing fraction selector 48px keeps the label on one line inside the same menu bounds. The final replay adds this specific observation.
- **Service probe:** historical process IDs were absent. Socket inspection and the processes' cgroups identified the current systemd services. The final deployment records those observed IDs before and after the asset copy.

[Probe notes](probe-notes.json) · [Captured Productive UI inputs](inputs.json) · [Input provenance](skill-input-provenance.json)

The captured chapters and scripts list the material read during implementation. Missing navigation targets were added during packaging from the original shipping revision recorded in the provenance file. Those added files are marked packaging-only, and the already captured inputs remain unchanged.

## Source and verification

Seven production files changed:

| File | Change |
|---|---|
| `DailyHealthDetail.tsx` | Moves the existing selected-day component links into the score header |
| `DailyHealthDetail.css` | Arranges those readings beside the score at desktop and phone widths |
| `OverviewBlocks.tsx` | Uses the saved composition while editing and combines drag/options in one grip |
| `OverviewBlocks.css` | Positions contextual controls without adding module height; contains the narrow menu |
| `TodayOverview.css` | Preserves the two-column summary composition during 320px editing |
| `SetLogger.tsx` | Tracks only its focused short-entry state alongside the existing reveal behavior |
| `styles/shell.css` | Releases navigation space for that state |

The source patch uses actual pre-edit working files. All original file contents are in [source-before](source-before/), with the final copies in [source-after](source-after/) and the exact [scoped patch](source.patch). Existing unrelated dirty work remains in place; no application files were staged or committed.

The new context replay covers the three observed costs and their adjacent actions. The existing compact-training replay now measures the contextual adjustment control instead of the removed toolbar container. The immediate-record and immediate-layout tests remain unchanged.

| Check actually run | Result |
|---|---|
| Matched reading, editing and short-entry journey | 21 matched observations passed; one final narrow-menu check passed |
| Overview Done followed by immediate reload | 3/3 UI and backend preferences matched |
| Set recording followed by immediate reload | 3/3 completed states and exact values matched |
| Prior daily workout/layout regression | 12/12 observations passed |
| Recording unit suite | 10 passed, including failed-write retry behavior |
| TypeScript and production build | Both exit 0 |
| Scoped diff whitespace check | Exit 0 |
| Interface audit on 12 default/active captures | Zero automated findings |
| Main ready state at 1440, 390 and 320px | HTTP 200, Google sign-in, no password input, horizontal overflow or page errors |

The short-entry audit recorded 21 paint cases for manual inspection; the actual screenshot retains legible input, selected row and contextual actions. The audit and workspace measurements are included with each [final result](after/results.json).

The exact-record reload regression retained 67.5kg × 7 at RPE 8, 70kg × 6 at RPE 8.5 and 72.5kg × 5 at RPE 9. The daily regression also retained 67.5kg × 8 at RPE 8.5 and 65kg × 7 at RPE 9, advanced the overview to seated row, and preserved the wide-Sleep composition.

[Layout reload](layout-regression/results.json) · [Recording reload](recording-regression/results.json) · [Daily regression](daily-regression/results.json) · [Unit output](recording-unit.txt) · [Build](build.txt) · [TypeScript](typecheck.txt) · [Execution checks](regression-checks.json)

## Deployment and cleanup

| Service | Static root | Observed PID before and after final deployment |
|---|---|---:|
| Preview, 3015 | `.state/instances/preview/web` | 2760250 |
| Main, 3001 | `apps/web/dist` | 2737161 |

Completed assets were copied first, old assets retained, and entry HTML replaced last. The services remained running. Main retains Google sign-in with developer authentication disabled.

The fresh synthetic fixture's 12 sets were restored after each daily replay. The layout regressions left no active test preference or pending layout-intent key. The recording regression removed its six temporary records. All browser contexts and captured workers completed; no fixture server was started.

[Deployment record](deployment.json) · [Public URL and asset verification](public-ready.json) · [Main ready state](main-ready.json) · [Source/runtime identity and cleanup](identity.json)

## Replay and fresh fixture

Use the existing [fixture generator](../iteration-2/fixture.mts) with a new private output directory and the preview's developer-auth environment. It creates a new timestamped synthetic account. Log in through the normal UI, fix the browser time to the fixture's `at`, and preserve its paired storage state including IndexedDB. The private setup JSON supplies `baseUrl`, `name`, `state`, `date`, `at` and `activeId`.

From the Training Atlas repository:

```bash
ATLAS_TEST_SETUP=/path/to/new-private/atlas-login.json \
ATLAS_TEST_OUTPUT=/path/to/new-results \
ATLAS_TEST_SKILL=/path/to/productive-ui/skills/productive-ui/scripts \
ATLAS_EXPECT_FIXED=1 \
/home/nvidia/miniforge3/bin/python tests/overview-reading-context.browser.py
```

[Context replay](overview-reading-context.browser.py) · [Daily replay](overview-training-compact.browser.py) · [Layout reload replay](overview-layout-immediate-reload.browser.py) · [Recording reload replay](setlogger-immediate-reload.browser.py)

The four primary matched pairs for the case viewer are recovery at 390 × 640, default overview editing at 1440 × 900, custom overview editing at 1440 × 900, and short active entry at 390 × 360. Their paths are listed in [viewer pairs](viewer-pairs.json).
