From fa93fc0ac6d07054af1f8e07c2938ab2d14078bb Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Sat, 28 Mar 2026 18:12:17 +0100 Subject: [PATCH] Improve real-time space status handling and date-based resets - Add logic to clear real-time updates when the selected date changes. - Enhance space status updates to consider reservation time ranges for relevance. - Update relevant Svelte components (`SpaceCard`, `FloorplanViewer`) to handle date-sensitive real-time updates. - Update API to include reservation details in `space_status_changed` events for improved update precision. --- .idea/workspace.xml | 21 ++++--- .../src/reservations/reservations.service.ts | 7 +++ .../src/lib/components/FloorplanViewer.svelte | 63 ++++++++++++------- apps/web/src/lib/components/SpaceCard.svelte | 30 ++++++++- 4 files changed, 90 insertions(+), 31 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ecc11de..f2538d6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,8 @@