From f8af8cf2d7447e1aac155bdaf681d070ddf8a57d Mon Sep 17 00:00:00 2001 From: Pau Costa Date: Sat, 28 Mar 2026 15:20:17 +0100 Subject: [PATCH] Add building-level dashboard and interactive floorplan viewer - Create `+page.svelte` for building-level dashboard with floor selection and layout preview. - Add `FloorplanViewer.svelte` component with WebSocket integration for real-time space status updates. - Extend `SpacesService` and API endpoints for building floors and floor details retrieval. - Update dashboard UI with cleaner building and floor presentation. - Improve loading states and error handling across dashboard and floor pages. --- .idea/workspace.xml | 25 +-- apps/api/src/spaces/spaces.controller.ts | 5 + apps/api/src/spaces/spaces.service.ts | 11 ++ .../src/lib/components/FloorplanViewer.svelte | 83 ++++++++++ .../components/admin/FloorplanEditor.svelte | 17 +- apps/web/src/routes/dashboard/+page.svelte | 56 ++++--- .../dashboard/building/[id]/+page.svelte | 153 ++++++++++++++++++ .../routes/dashboard/floor/[id]/+page.svelte | 13 ++ 8 files changed, 333 insertions(+), 30 deletions(-) create mode 100644 apps/web/src/lib/components/FloorplanViewer.svelte create mode 100644 apps/web/src/routes/dashboard/building/[id]/+page.svelte diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7a97e30..529fe68 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,18 +4,12 @@