update config, admin-web tooling & relocate agent skills

Update app.json config and add new dependencies in package.json. Update
.gitignore for new patterns. Add timed-exercise editor/list components,
warmup/stretch video migration, and Supabase helpers in admin-web.
Relocate agent skills from .agents/skills/ to .opencode/skills/.
This commit is contained in:
Millian Lamiaux
2026-04-21 21:51:11 +02:00
parent d4edf54aeb
commit 8c90b73d90
42 changed files with 980 additions and 20 deletions

View File

@@ -17,7 +17,9 @@ async function getProgram(id: string) {
const { data, error } = await (supabase.from("workout_programs") as any)
.select(`
*,
program_tabatas (*)
program_tabatas (*),
workout_warmup_exercises (*),
workout_stretch_exercises (*)
`)
.eq("id", id)
.single()
@@ -30,6 +32,17 @@ async function getProgram(id: string) {
if (data.program_tabatas) {
data.program_tabatas.sort((a: any, b: any) => a.position - b.position)
}
if (data.workout_warmup_exercises) {
data.workout_warmup_exercises.sort((a: any, b: any) => a.position - b.position)
}
if (data.workout_stretch_exercises) {
data.workout_stretch_exercises.sort((a: any, b: any) => a.position - b.position)
}
// Map to ProgramForm's expected shape
data.tabatas = data.program_tabatas
data.warmup = data.workout_warmup_exercises
data.stretch = data.workout_stretch_exercises
return data
}