Commit Graph

6 Commits (165cd76b6f81a090911de94ba731bcd5df5d91fb)

Author SHA1 Message Date
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
Pau Costa Ferrer 30d3ab0686 Add admin reporting dashboard with utilization statistics and downloadable reports
- Implement `+page.svelte` for admin reporting dashboard showing utilization and employee stats.
- Add API endpoints for utilization stats, employee stats, and Excel report export (NestJS).
- Create `ReportsService` and `ReportsModule` for backend logic.
- Introduce `xlsx` package for generating Excel reports.
- Update layout to include "Reports" link for admin users.
- Extend Prisma querying for detailed building, space type, and employee role data.
2026-03-28 16:06:05 +01:00
Pau Costa Ferrer 7683066ceb Add floorplan editor for admin layout management
- Implement `FloorplanEditor.svelte` component for adding, editing, and positioning spaces.
- Add backend support for floorplan image upload and batch updating space positions.
- Update Prisma schema to include `planImageUrl` for floors.
- Enable API proxy in Vite configuration for straightforward local development.
- Refactor API calls to use a centralized `apiFetch` utility with token handling.
2026-03-28 15:15:28 +01:00
Pau Costa Ferrer 3b09daeb04 Add real-time space status updates and reservation management
- Integrate WebSocket functionality using `socket.io` for floor-specific updates.
- Implement `ReservationsModule` with CRUD for managing reservations (API).
- Create `LoggerMiddleware` for consistent HTTP request logging.
- Update `SpacesService` to include real-time reservation status checks.
- Add `SpaceCard.svelte` component to reflect live space status (Web).
- Enable environmental base API URL configuration for flexible deployments.
2026-03-28 00:50:51 +01:00
Pau Costa Ferrer 8dc99bc1a4 Implement authentication, organization management, and floor layout features
- Add API authentication with JWT strategy using NestJS.
- Configure Prisma schema for organizations, users, buildings, floors, and spaces.
- Seed initial database with test data and relationships.
- Build SvelteKit web pages for dashboard and floor layout with secured routing and organization hierarchy display.
- Remove deprecated `AppService` from API.
2026-03-28 00:36:05 +01:00
Pau Costa Ferrer 1faa0d5c8f Initialize Hot Desking app with web and API services
- Set up SvelteKit for the web interface with Tailwind CSS.
- Build the API using NestJS with Prisma ORM for database interaction.
- Add environment variable management and docker-compose for PostgreSQL and PgAdmin instances.
- Create shared data models for consistent typing across services.
- Establish basic routing and layouts for web and API services.
2026-03-28 00:06:57 +01:00