Commit Graph

4 Commits (6e487639474851f4321d03db6c43145c8e9a9375)

Author SHA1 Message Date
Pau Costa Ferrer 6e48763947 Add filtering for past and upcoming bookings in "My Bookings" page
- Enhance UI to separate upcoming and past bookings with collapsible sections.
- Add new i18n keys for handling booking filters (`en.json`, `es-ES.json`).
- Update booking component logic to filter reservations based on time.
- Introduce "Show/Hide Past Bookings" toggle for improved user experience.
2026-03-28 18:14:51 +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 71404d0ed8 Add i18n support with English and Spanish translations
- Introduce `svelte-i18n` for internationalization.
- Add English (`en.json`) and Spanish (`es-ES.json`) locale files.
- Implement `setupI18n` function for initializing and managing locales.
- Update project dependencies to include `svelte-i18n`.
2026-03-28 17:34:13 +01:00
Pau Costa Ferrer 165cd76b6f Add "My Bookings" page and enable reservation updates and cancellations
- Implement `+page.svelte` for managing user reservations with real-time updates.
- Add API endpoints for updating and canceling reservations with enhanced validation and authorization.
- Introduce `UpdateReservationDto` for refined reservation update handling.
- Update `reservations.service.ts` to handle overlapping checks, time adjustments, and admin actions.
- Extend layout to include a link to the "My Bookings" page.
- Add `date-fns` library for date formatting.
2026-03-28 16:16:27 +01:00