Let a household choose to be paid for the red days
Asking for a full week off never spent anything on the Saturday, the Sunday or a holiday, and a test now says so outright rather than leaving it to be rediscovered. Those days are free because vacation cannot be taken on a day that is not a working day. Parental benefit is a payment rather than a schedule, though, so it can be drawn on a red day to turn an unpaid day off into a paid one — at the cost of a day the family would otherwise keep. That is now a workspace setting, off by default, and it never reaches for a vacation day. With it off the planner behaves exactly as before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ei7gCZzdd751uZtPzb1Pep
This commit is contained in:
@@ -458,6 +458,7 @@ interface RawWorkspace {
|
||||
id: string
|
||||
name: string
|
||||
created_at: string
|
||||
take_pl_on_red_days: boolean
|
||||
}
|
||||
|
||||
function toWorkspace(raw: RawWorkspace): Workspace {
|
||||
@@ -465,6 +466,7 @@ function toWorkspace(raw: RawWorkspace): Workspace {
|
||||
id: raw.id,
|
||||
name: raw.name,
|
||||
createdAt: raw.created_at,
|
||||
takePlOnRedDays: raw.take_pl_on_red_days,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -716,6 +718,7 @@ export async function updateWorkspace(
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({
|
||||
name: req.name,
|
||||
take_pl_on_red_days: req.takePlOnRedDays,
|
||||
}),
|
||||
})) as RawWorkspace
|
||||
return toWorkspace(raw)
|
||||
|
||||
Reference in New Issue
Block a user