Commit Graph

5 Commits (0b6a043f19d46e05e733dfb646be80e218f1b505)

Author SHA1 Message Date
Pau Costa Ferrer 0b6a043f19 Prevent past bookings and updates across web and API
- Add validation logic to block creating or updating reservations in the past.
- Update date pickers to enforce minimum selectable date as today.
- Extend i18n files (`en.json`, `es-ES.json`) with new error messages.
- Refine UI to disable interaction with past time slots and display appropriate messages.
2026-03-28 18:19:57 +01:00
Pau Costa Ferrer 9ac64de030 Refactor date picker components for improved accessibility and usability
- Add `showPicker` event to trigger native date picker overlays.
- Adjust z-index and positioning for hidden `input` elements to improve interaction.
- Reorganize markup for consistent focus and selection behavior across components.
2026-03-28 18:17:30 +01:00
Pau Costa Ferrer 5fe893c7ce Add i18n integration and translations for improved localization
- Extend English (`en.json`) and Spanish (`es-ES.json`) locale files with additional keys for buildings, bookings, reports, and user management.
- Update Svelte components and pages to use `svelte-i18n` for dynamic translations across the app.
- Refactor labels, titles, and error messages for multilingual support.
- Improve date formatting based on locale preferences.
2026-03-28 17:58:24 +01:00
Pau Costa Ferrer 45e42c3d37 Add booking modal and enhance reservation handling
- Create `BookingModal.svelte` for booking spaces with custom time slots or full-day durations.
- Add API endpoint to fetch reservations by space ID and date.
- Update `SpacesService` with enhanced validation rules and conflict checks for reservations.
- Extend WebSocket updates to include reservation data for real-time synchronization.
- Enable date-based filtering and status handling in UI components (`SpaceCard.svelte`, `FloorplanViewer.svelte`).
2026-03-28 15:33:34 +01:00
Pau Costa Ferrer f8af8cf2d7 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.
2026-03-28 15:20:17 +01:00