mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-01 02:02:33 +01:00
_appCard derived its status line from link.status alone and never looked at activeStep, so every amber state with an app selected read "Waiting for MyWhoosh". That is only true once everything on this side is done — while a permission is missing or no method is switched on, the app is never going to connect however long the rider waits, and the sentence sends them into the trainer app hunting for a problem that is over here. This predates Local Network: "Enable a connection method" was mislabelled the same way. The decision is a pure appStatusFollowsActiveStep() in chain_state.dart so it is testable without widgets. It ignores optional steps: the local-control offer is never done for most riders, and letting it through would make the card permanently claim there is work outstanding. Also drop the launch-time Local Network toast. The app card carries this as a required step now, and a line that stays put beats one that scrolls away. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>