Create a view model for the day details #161
No reviewers
Labels
No Label
hex-grid
maintenance
music-player
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: savanni/monorepo#161
Loading…
Reference in New Issue
No description provided.
Delete Branch "fitnesstrax/detail-view-model"
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?
I was having a lot of excess code dealing with handling data embedded into the middle of the view components. This got very complicated.
The view model holds all of the detail needed for DaySummary, DayDetail, and DayEdit, and manages the state of the data within the model. Then, when it's time to save data, it handles all of the details of committing the updated records to the database.
This PR also gets made much larger with a lot of linting fixes.