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,7 +4,6 @@
|
||||
"createdAt" : "2020-01-01T00:00:00Z",
|
||||
"exercises" : [
|
||||
{
|
||||
"category" : 1,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00AHY49HPHA00JGDQY",
|
||||
"loadType" : 0,
|
||||
@@ -12,11 +11,9 @@
|
||||
"order" : 0,
|
||||
"reps" : 10,
|
||||
"sets" : 1,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 1,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT0021S72PRVXDA0HCNB",
|
||||
"loadType" : 0,
|
||||
@@ -24,11 +21,9 @@
|
||||
"order" : 1,
|
||||
"reps" : 8,
|
||||
"sets" : 1,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 1,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00K2AHTEHR3HRVKGEG",
|
||||
"loadType" : 0,
|
||||
@@ -36,11 +31,9 @@
|
||||
"order" : 2,
|
||||
"reps" : 8,
|
||||
"sets" : 1,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 45,
|
||||
"id" : "01DXF6DT00V256F3TPS99MCP5F",
|
||||
"loadType" : 2,
|
||||
@@ -48,11 +41,9 @@
|
||||
"order" : 3,
|
||||
"reps" : 0,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 30,
|
||||
"id" : "01DXF6DT007YMYCAYYNJEFWTQ5",
|
||||
"loadType" : 2,
|
||||
@@ -60,11 +51,9 @@
|
||||
"order" : 4,
|
||||
"reps" : 0,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 30,
|
||||
"id" : "01DXF6DT00WXCASZG1VEZRPT0Y",
|
||||
"loadType" : 2,
|
||||
@@ -72,11 +61,9 @@
|
||||
"order" : 5,
|
||||
"reps" : 0,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00VMWCDF9QCB28WR20",
|
||||
"loadType" : 0,
|
||||
@@ -84,11 +71,9 @@
|
||||
"order" : 6,
|
||||
"reps" : 12,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00MJH9N622QTMM7XB3",
|
||||
"loadType" : 0,
|
||||
@@ -96,11 +81,9 @@
|
||||
"order" : 7,
|
||||
"reps" : 8,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
},
|
||||
{
|
||||
"category" : 0,
|
||||
"durationSeconds" : 0,
|
||||
"id" : "01DXF6DT00Z98NR23ESEEKGQH1",
|
||||
"loadType" : 0,
|
||||
@@ -108,14 +91,13 @@
|
||||
"order" : 8,
|
||||
"reps" : 12,
|
||||
"sets" : 3,
|
||||
"weight" : 0,
|
||||
"weightReminderWeeks" : 2
|
||||
"weight" : 0
|
||||
}
|
||||
],
|
||||
"id" : "01DXF6DT00RV99WG172YFW4NKA",
|
||||
"name" : "Bodyweight Core",
|
||||
"order" : 3,
|
||||
"schemaVersion" : 1,
|
||||
"schemaVersion" : 2,
|
||||
"systemImage" : "figure.core.training",
|
||||
"updatedAt" : "2020-01-01T00:00:00Z"
|
||||
}
|
||||
Reference in New Issue
Block a user