Track preschool planning days, partner invites and real vacation forfeiture
Three strands of work that grew together across the same settings screen and
API client, so they land as one change.
Per-year preschool planning days ("studiedagar"): new table, repository
(SQLite + Postgres), service, router and migration 007, plus the hooks and
Settings UI to plan and record them per child and year. Allocation now
reserves the recorded figure for a year where one exists and only falls back
to the child-level estimate otherwise, marking that fallback as assumed.
Partner invitations: workspaces issue and list invitations, registration
accepts an invite token to join the inviter's workspace instead of creating a
personal one, and a /join/:token page plus the settings invite panel drive it.
Vacation forfeiture: tips and the dashboard now distinguish days a parent
genuinely loses from days that merely age, so the warning stops firing on
balances that were never at risk.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ from app.routers.leave_wishes import router as leave_wishes_router
|
||||
from app.routers.plan import router as plan_router
|
||||
from app.routers.planned_day_exclusions import router as planned_day_exclusions_router
|
||||
from app.routers.planned_days import router as planned_days_router
|
||||
from app.routers.preschool_planning_days import router as preschool_planning_days_router
|
||||
from app.routers.settings import child_router, settings_child_router, tips_router
|
||||
from app.routers.workspace import _inv_router as invitations_router
|
||||
from app.routers.workspace import router as workspace_router
|
||||
@@ -129,6 +130,7 @@ def _register_routers(app: FastAPI) -> None:
|
||||
app.include_router(planned_days_router)
|
||||
app.include_router(planned_day_exclusions_router)
|
||||
app.include_router(vacation_days.router)
|
||||
app.include_router(preschool_planning_days_router)
|
||||
app.include_router(day_overrides_router)
|
||||
app.include_router(calendar_router)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user