feat(#59): weekly training planner + docs update for #59 and #123#127
Merged
Conversation
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
Caused ESLint no-unused-vars error in CI. 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
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-127.westeurope.7.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Planleggerview) from issue As a user I want to plan my training week upfront so I can see projected muscle coverage before I start #59 — cherry-picked from the abandoned PR feat(#59): add weekly training planner view #122 branch and cleanly rebased onto current masterEventSchedulenav icon (previously a no-op placeholder added in As a user I want simple and clear navigation on all pages so I can move around the app without confusion #123) to the newPlanleggerviewChanges
Feature (issue #59)
app/src/components/Planlegger.jsx— full weekly planner view: week navigation,HeatmapBodySVGprojected coverage, 7-day DayRow list, template bottom-sheet picker, Forslag card (≥2 untrained muscles), sticky CTA with delete confirmationapp/src/lib/db.js—fetchWeekPlan,saveWeekPlan,deleteWeekPlanapp/src/lib/utils.js—toWeekIso(date),weekIsoToMonday(weekIso)app/src/App.jsx— importsPlanlegger, addsonShowPlanleggertoNavContext, adds"planlegger"view branchapp/src/components/PageShell.jsx—EventScheduleNavBtn now callsonShowPlanleggerand reflects active stateDocs
CHANGELOG.md— new[1.2.0-rc.1]entry covering planner (As a user I want to plan my training week upfront so I can see projected muscle coverage before I start #59) + settings (As a user I want simple and clear navigation on all pages so I can move around the app without confusion #123)CLAUDE.md— Planlegger and Settings architecture entries, week-plans data model, new db.js/utils.js exports, updated PageShell nav icon order and App.jsx view listREADME.md— planner and settings added to how-it-works, project structure, db.js and utils.js descriptionsDB
week_plansandweek_plan_daystables are already live in production Supabase (applied in a prior session). No migration needed.Test plan
HeatmapBodySVGin real timeweek_plansrow (cascade clears days)https://claude.ai/code/session_015uVNeffg6P3QMG8SjgWWAV
Generated by Claude Code