- Add autoSelectPlan() to the store: after loadPlans() resolves, set activePlan to the current week's plan (or most recent) without a second API round-trip -- list already returns full PlanSummary with slots - Call autoSelectPlan(mondayOfCurrentWeek()) in onMounted so the grid populates immediately without the user touching the dropdown - Make onNewPlan idempotent: if a 409 comes back, activate the existing plan for that week instead of surfacing an error to the user |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .env | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| THEMING_SYSTEM.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||