Skip to content

feat(#59): weekly training planner + docs update for #59 and #123#127

Merged
ChristopherRotnes merged 3 commits into
masterfrom
claude/issue-59-docs-update-GHSDA
May 5, 2026
Merged

feat(#59): weekly training planner + docs update for #59 and #123#127
ChristopherRotnes merged 3 commits into
masterfrom
claude/issue-59-docs-update-GHSDA

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

Summary

Changes

Feature (issue #59)

  • app/src/components/Planlegger.jsx — full weekly planner view: week navigation, HeatmapBodySVG projected coverage, 7-day DayRow list, template bottom-sheet picker, Forslag card (≥2 untrained muscles), sticky CTA with delete confirmation
  • app/src/lib/db.jsfetchWeekPlan, saveWeekPlan, deleteWeekPlan
  • app/src/lib/utils.jstoWeekIso(date), weekIsoToMonday(weekIso)
  • app/src/App.jsx — imports Planlegger, adds onShowPlanlegger to NavContext, adds "planlegger" view branch
  • app/src/components/PageShell.jsxEventSchedule NavBtn now calls onShowPlanlegger and reflects active state

Docs

DB

week_plans and week_plan_days tables are already live in production Supabase (applied in a prior session). No migration needed.

Test plan

  • Nav calendar icon navigates to Planlegger view and shows current week
  • ChevronLeft / ChevronRight updates week label and clears unsaved assignments
  • Assigning a template to a day updates HeatmapBodySVG in real time
  • ≥2 muscles without coverage → Forslag card appears; fill coverage → card disappears
  • "Lagre plan" saves to Supabase; reload restores the plan
  • "Fjern uke" with confirmation deletes week_plans row (cascade clears days)
  • Empty day shows dashed "+ Legg til økt"; assigned day shows name + muscle chips + × button
  • Mobile: Front/Bak toggle on body map; bottom-sheet template picker
  • Settings view, theme toggle, and logout still work (no regression from conflict resolution)

https://claude.ai/code/session_015uVNeffg6P3QMG8SjgWWAV


Generated by Claude Code

claude added 3 commits May 5, 2026 17:02
New Planlegger view lets the user assign session templates to days of the
current week and see the projected muscle coverage on a live heatmap body map.

- Supabase migration: week_plans + week_plan_days tables with RLS policies
- db.js: fetchWeekPlan, saveWeekPlan, deleteWeekPlan
- utils.js: toWeekIso, weekIsoToMonday helpers
- Planlegger.jsx: full component (week nav, HeatmapBodySVG, 7-day plan list,
  bottom-sheet template picker, Forslag card, sticky save/delete CTA)
- App.jsx: planlegger view branch + onShowPlanlegger in NavContext
- PageShell.jsx: EventSchedule nav icon linking to planner

https://claude.ai/code/session_01XVey99eDCo79X8b6fNQuKP
- CHANGELOG: add 1.2.0-rc.1 entry (weekly planner + settings view)
- CLAUDE.md: document Planlegger.jsx, Settings.jsx, week_plans data model,
  new db.js functions (fetchWeekPlan/saveWeekPlan/deleteWeekPlan),
  new utils.js exports (toWeekIso/weekIsoToMonday), updated PageShell.jsx
  nav icon order and App.jsx view list
- README: add planner + settings to how-it-works, project structure, db.js
  and utils.js descriptions

https://claude.ai/code/session_015uVNeffg6P3QMG8SjgWWAV
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-127.westeurope.7.azurestaticapps.net

@ChristopherRotnes ChristopherRotnes merged commit 3a04bfc into master May 5, 2026
1 check passed
@ChristopherRotnes ChristopherRotnes deleted the claude/issue-59-docs-update-GHSDA branch May 8, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants