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:
@@ -115,5 +115,13 @@ export const settings = {
|
||||
'vacationDaysTable.assumedPrompt': 'Inget värde är registrerat för detta år — 25 dagar (lagstadgat) har antagits. Bekräfta eller ändra nedan.',
|
||||
'vacationDaysTable.empty': 'Inga år att visa ännu.',
|
||||
'vacationDaysTable.savedDaysHeader': 'Sparade dagar in',
|
||||
'vacationDaysTable.savedStatus': 'Sparat',
|
||||
'vacationDaysTable.saveErrorStatus': 'Det gick inte att spara',
|
||||
'vacationDaysTable.savingStatus': 'Sparar…',
|
||||
'vacationDaysTable.vacationDaysHeader': 'Semesterdagar',
|
||||
'settings.preschoolPerYearHelp': 'Ange hur många planeringsdagar som faktiskt togs ut ett visst år — det kan skilja sig från det uppskattade antalet ovan.',
|
||||
'settings.preschoolPerYearTitle': 'Planeringsdagar per år',
|
||||
'settings.preschoolPlannedLabel': 'Planerade dagar',
|
||||
'settings.preschoolTakenLabel': 'Uttagna dagar',
|
||||
'settings.preschoolTakenPlaceholder': 'Ej angivet',
|
||||
} as const
|
||||
Reference in New Issue
Block a user