After the redesign in Part 2, DotShredzilla looked finished. Then I took it to the gym and logged a real leg day with it.
Three problems showed up before the first exercise was done:
The gym had poor signal, and the app wasn't built for that.
Most machines use a weight stack, and you count plates, not kilograms. The app only accepted kilograms.
I wanted leg curl first, but the list order was fixed.
This part is about turning that session into changes in the data model. DotShredzilla is an Android workout tracker from FreeRave (DotSuite) , written in Kotlin, Jetpack Compose and Firestore, and open source under Apache License 2.0 : github.com/kareem2099/Shredzilla .
Offline-first with Firestore
Firestore already queues writes offline, so I assumed the app worked without signal. It mostly didn't. Three things were waiting on the server:
Refreshing after a save. The UI refreshed history in the write's success listener.…