Add machine comfort settings and tighten the document schemas
Machine-based exercises now carry ordered name/value comfort settings (seat height, back-rest position, ...) on both ExerciseDocument and, as a plan-time snapshot, WorkoutLogDocument — the optional array doubles as the machine flag. Editable from the exercise editor's new Machine section and from the workout row's settings sheet, whose mid-workout edits write back to the originating split (workout saved first, so seed clone-on-edit repointing can't clobber the log edit). Schema tightening rides the same rev: splits bump to v2 (weight-reminder fields and the unused exercise category removed), workouts to v3 (the derived `completed` flag removed; status is the single source). Starter seeds regenerated at v2 with unchanged ULIDs; SwiftData cache schema bumped to rebuild. SCHEMA.md documents the shapes. Claude-Session: https://claude.ai/code/session_01LEoff8bXGBS83tK1c55Mf7
This commit is contained in:
@@ -4,58 +4,70 @@
|
||||
"createdAt" : "2020-01-01T00:00:00Z",
|
||||
"exercises" : [
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00GV3336R9C25W4X2A",
|
||||
"loadType" : 1,
|
||||
"name" : "Abductor",
|
||||
"name" : "Leg Press",
|
||||
"order" : 0,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 140,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 140
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00Z28DJ7PSP7Q11CJH",
|
||||
"loadType" : 1,
|
||||
"name" : "Adductor",
|
||||
"name" : "Leg Curl",
|
||||
"order" : 1,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 140,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 40
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00D53Q4QMWAE1BHXR6",
|
||||
"loadType" : 1,
|
||||
"name" : "Leg Press",
|
||||
"name" : "Leg Extension",
|
||||
"order" : 2,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 160,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 80
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT006HW2KWNA5BCCDCJE",
|
||||
"loadType" : 1,
|
||||
"name" : "Leg Curl",
|
||||
"name" : "Abductor",
|
||||
"order" : 3,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 70,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 130
|
||||
},
|
||||
{
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00H5B5YD16868Y95ZQ",
|
||||
"loadType" : 1,
|
||||
"name" : "Adductor",
|
||||
"order" : 4,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 130
|
||||
},
|
||||
{
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT002S88DB6NKYZS4EAW",
|
||||
"loadType" : 1,
|
||||
"name" : "Calfs",
|
||||
"order" : 5,
|
||||
"reps" : 10,
|
||||
"sets" : 4,
|
||||
"weight" : 100
|
||||
}
|
||||
],
|
||||
"id" : "01DXF6DT006QRF1PMGK17FV505",
|
||||
"name" : "Lower Body",
|
||||
"order" : 2,
|
||||
"schemaVersion" : 1,
|
||||
"schemaVersion" : 2,
|
||||
"systemImage" : "figure.run",
|
||||
"updatedAt" : "2020-01-01T00:00:00Z"
|
||||
}
|
||||
Reference in New Issue
Block a user