Harden workout start and save (Astra review) #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "astra-review-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by Berkay · project thread
Fixes from Astra's review of
9a7bb92, checked against currentmain.What
SessionController.startnow has a single-start lock and returnsfalsefor a second call while the first is still preparing audio/the foreground service. Home, workout detail and setup only open the session screen when the start actually happened.Combo.fitslike it already did for the random pool, so a kick added later to a combo in a Boxing workout is skipped no matter where the workout was started. Starting from home/detail shows a snackbar with how many combos were skipped. (Setup still blocks start and offers to remove them.)SessionView.saveStatus(saving / saved / failed). Summary shows "Saving…", then "Saved to your history", or an error with TRY AGAIN (retrySave). Rating saves go through the same path.Not changed: release signing still uses the debug key (needs a keystore decision from Berkay).
Tests
flutter analyzeclean,flutter test83 passing (4 new: double start, drill discipline filter, save success, save failure).No APK built, no version bump.
🤖 Generated with Claude Code
https://claude.ai/code/session_015s4aKn6Q7AftVbZ2Mi5d1v