From 3fd1455704f548637238b062ae5b2c082725d3de Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 30 Apr 2026 18:10:44 +0200 Subject: [PATCH] fix: hide close-week button when a tracked day is still open Fetch entries for the week alongside days/weeks in the week view. canCloseWeek now mirrors the server rule: every past workday that has at least one entry must have a closed_days record. Days with no entries are still skipped (they count as 0h implicitly). --- web/src/routes/week/+page.svelte | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/web/src/routes/week/+page.svelte b/web/src/routes/week/+page.svelte index 95b839d..5e7f5bb 100644 --- a/web/src/routes/week/+page.svelte +++ b/web/src/routes/week/+page.svelte @@ -1,14 +1,15 @@