Shared from Yui | See it
Build my workout
The coach keeps your moves and their swaps in tables. Today's session is rows you tick off, and a swap is one put: goblet squat becomes front squat, the sets stay. Try it here, the phone gets it next.
Drawing the screen...
The lines the agent sends:
table create variations Move:text Swap:text Cue:text
put variations goblet-squat Move="Goblet squat" Swap="Front squat" Cue="Elbows up, chest tall"
put variations split-squat Move="Split squat" Swap="Reverse lunge" Cue="Front shin tall, drop straight down"
put variations push-up Move="Push-up" Swap="Incline push-up" Cue="One line from head to heel"
put variations row Move="Dumbbell row" Swap="Cable row" Cue="Pull to the hip, not the chest"
put variations hinge Move="Romanian deadlift" Swap="Hip thrust" Cue="Hips back, soft knees"
table create workouts Day:date Name:text Focus:text Done:bool
put workouts w1 Day=today-4 Name="Legs A" Focus=Legs +Done
put workouts w2 Day=today-2 Name="Push" Focus=Chest +Done
put workouts w3 Day=today Name="Legs B" Focus=Legs
put workouts w4 Day=today+2 Name="Pull" Focus=Back
table create session Slot:number Move:text Sets:number Reps:number Done:bool
put session 1 Slot=1 Move="Goblet squat" Sets=3 Reps=8
put session 2 Slot=2 Move="Split squat" Sets=3 Reps=10
put session 3 Slot=3 Move="Romanian deadlift" Sets=3 Reps=8
put session 4 Slot=4 Move="Push-up" Sets=2 Reps=12
query workouts sort=Day cols=Day|Name|Focus|Done as table "This week"
query session sort=Slot cols=Move|Sets|Reps|Done as list check=Done "Today: Legs B"
query variations cols=Move|Swap|Cue as table "Swaps I know"