Commit Graph

14 Commits

Author SHA1 Message Date
ecdd38ebbc Show a summary of the day's biking stats when there is one 2024-02-08 08:57:17 -05:00
2fb8728856 Invert the TraxRecord
This simplifies, though not as much as I was hoping, the patterns for accessing data along strict type patterns. I may see better results once I'm getting the Time/Distance views working.
2024-02-08 00:20:40 -05:00
9727d35116 Resolve clippy warnings
Warnings were mounting up. It was time to resolve them before attempting a massive rebase.
2024-02-07 23:36:03 -05:00
1d6155d9e5 Finish the update and delete view model functions 2024-02-07 09:29:08 -05:00
a8bf540517 Remove test that steps and weights are honored correctly
Step and weight records may be presented in any order. Any test that
tries to enforce that one gets presented before teh other can't cannot
succeed. So, I've removed that test and instead put in a warning that
will appear when the view model gets loaded.
2024-02-07 08:28:38 -05:00
3db870d790 Set up time distance operations and tests 2024-02-03 15:28:33 -05:00
24276d172b Introduce the RecordProvider interface
DayDetailViewModel needs testing. I've worked out an improved API, and a set of tests to go along with it, and those can be made more easily with a mockable RecordProvider. So, in addition to stubbing out a bunch of tests, I've also created RecordProvider, mocked it, and implemented it for App.
2024-02-01 10:12:35 -05:00
c1e797f3ae DayDetailViewModel now ignores records and directly retrieves data from App
This is preparatory work. Having the view model directly retrieve data both adds a degree of symmetry (it both gets data from and sends data to the app) and makes it possible for the view model to refresh itself when needing to revert data or after saving data.
2024-02-01 09:27:40 -05:00
304008c674 The view model can no longer be initialized without an app 2024-01-31 09:51:17 -05:00
55c1a6372f Rename the formatters 2024-01-31 08:38:17 -05:00
69567db486 Introduce a structure for formatting and parsing Weight values 2024-01-30 10:08:10 -05:00
7ec48ded5d Make the day summary use the view model 2024-01-20 17:04:20 -05:00
9bedb7a76c Tons of linting and get tests running again 2024-01-20 15:04:46 -05:00
1fe318068b Set up a view model for the day detail view 2024-01-20 11:16:31 -05:00