mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-02 10:09:09 +01:00
Two things from the design that the first pass left out. The live test now gets the card the design gives it, instead of a bullet list inside a row. It is the only check with a duration and the only one the rider takes part in, so while it runs it takes over its section: a tinted head with the ask and a mono countdown, a progress bar, and the four-step path the trainer app walks — found us, looked up the details, asked for our address, connected — with the connector turning green behind each step that has happened. WatchProgress carries the window now so the bar does not hard-code the probe's 60s; the two would drift the moment either moved. The phone layout was broken, and by me. Rendering the page at 320/360/390 and at 1.3x/1.6x text produced nine layout errors at every size: RenderFlex children have non-zero flex but incoming height constraints are unbounded The footer used a Flex that flips to vertical when narrow. A Flexible keeps flex:1 whichever fit it is handed, and a flexed child inside this page's SingleChildScrollView has no bounded height to flex against — the eight "RenderBox was not laid out" errors after it were all fallout from that one. Replaced with an explicit arrangement: a Row with Expanded when there is room, a plain Column when there is not. Nine errors to zero at every width and text scale, and that sweep is now a test rather than something I ran once — it drives the page and the live card across three widths and two text scales and asserts no layout errors at all. Not verified by eye: the live card cannot be captured, because its spinner animates forever and pumpAndSettle never returns. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>