Skip to content

Commit 07b2da5

Browse files
tomkisclaude
andcommitted
feat: custom progression mode — skip loading/testing phase
PRD #51 US1. Add ProgressionMode (liftcoach/custom) to mesocycle. Custom mode: exercises start pending with blank sets, no Week 0. Progression mode selection screen in planner flow. Guard extendMicrocycle() for custom mode until carry-forward lands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9e77500 commit 07b2da5

33 files changed

Lines changed: 1186 additions & 56 deletions

drizzle/0004_thick_mimic.sql

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
2+
CREATE TABLE `__new_workout_exercise_set` (
3+
`id` text PRIMARY KEY NOT NULL,
4+
`workout_exercise_id` text NOT NULL,
5+
`state` text NOT NULL,
6+
`order_index` integer NOT NULL,
7+
`reps` integer,
8+
`weight` real,
9+
`created_at` integer NOT NULL,
10+
`updated_at` integer NOT NULL,
11+
FOREIGN KEY (`workout_exercise_id`) REFERENCES `workout_exercise`(`id`) ON UPDATE no action ON DELETE no action
12+
);
13+
--> statement-breakpoint
14+
INSERT INTO `__new_workout_exercise_set`("id", "workout_exercise_id", "state", "order_index", "reps", "weight", "created_at", "updated_at") SELECT "id", "workout_exercise_id", "state", "order_index", "reps", "weight", "created_at", "updated_at" FROM `workout_exercise_set`;--> statement-breakpoint
15+
DROP TABLE `workout_exercise_set`;--> statement-breakpoint
16+
ALTER TABLE `__new_workout_exercise_set` RENAME TO `workout_exercise_set`;--> statement-breakpoint
17+
PRAGMA foreign_keys=ON;--> statement-breakpoint
18+
CREATE INDEX `workout_exercise_set_workout_exercise_id_idx` ON `workout_exercise_set` (`workout_exercise_id`);--> statement-breakpoint
19+
ALTER TABLE `mesocycle` ADD `progression_mode` text DEFAULT 'liftcoach' NOT NULL;

0 commit comments

Comments
 (0)