Exclude Prisma directory from API build configuration

main
Pau Costa Ferrer 2026-03-28 18:47:36 +01:00
parent 62a879abe2
commit 9315502369
2 changed files with 32 additions and 12 deletions

View File

@ -4,11 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="6c8b3c54-eabb-40e5-967f-c7b594c750bc" name="Changes" comment="Allow admins and supervisors to book or update reservations for other users&#10;&#10;- Add role-based restrictions for booking or updating reservations on behalf of others (Admins/Supervisors only).&#10;- Extend reservation DTOs (`CreateReservationDto`, `UpdateReservationDto`) to include `userId` and `note` fields.&#10;- Update Prisma schema to allow nullable `userId` and add support for reservation notes.&#10;- Enhance API logic to validate permissions and handle ownership changes for reservations.&#10;- Improve UI for booking flow; introduce &quot;Book for&quot; options, user search, and reservation notes.&#10;- Localize new strings in `en.json` and `es-ES.json`."> <list default="true" id="6c8b3c54-eabb-40e5-967f-c7b594c750bc" name="Changes" comment="Integrate `svelte-i18n` for enhanced localization support&#10;&#10;- Add `svelte-i18n` as a dependency for dynamic translations.&#10;- Replace `@sveltejs/adapter-auto` with `@sveltejs/adapter-node` for better deployment compatibility.&#10;- Update `package-lock.json` to reflect new and updated dependencies." />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/apps/api/src/reports/reports.service.ts" beforeDir="false" afterPath="$PROJECT_DIR$/apps/api/src/reports/reports.service.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/apps/api/src/reservations/reservations.service.ts" beforeDir="false" afterPath="$PROJECT_DIR$/apps/api/src/reservations/reservations.service.ts" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -129,7 +125,7 @@
<updated>1774643312599</updated> <updated>1774643312599</updated>
<workItem from="1774643313611" duration="74000" /> <workItem from="1774643313611" duration="74000" />
<workItem from="1774643422240" duration="5278000" /> <workItem from="1774643422240" duration="5278000" />
<workItem from="1774706361502" duration="13226000" /> <workItem from="1774706361502" duration="13566000" />
</task> </task>
<task id="LOCAL-00001" summary="Initialize Hot Desking app with web and API services &#10;&#10;- Set up SvelteKit for the web interface with Tailwind CSS. &#10;- Build the API using NestJS with Prisma ORM for database interaction. &#10;- Add environment variable management and docker-compose for PostgreSQL and PgAdmin instances. &#10;- Create shared data models for consistent typing across services. &#10;- Establish basic routing and layouts for web and API services."> <task id="LOCAL-00001" summary="Initialize Hot Desking app with web and API services &#10;&#10;- Set up SvelteKit for the web interface with Tailwind CSS. &#10;- Build the API using NestJS with Prisma ORM for database interaction. &#10;- Add environment variable management and docker-compose for PostgreSQL and PgAdmin instances. &#10;- Create shared data models for consistent typing across services. &#10;- Establish basic routing and layouts for web and API services.">
<option name="closed" value="true" /> <option name="closed" value="true" />
@ -347,7 +343,31 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1774718807082</updated> <updated>1774718807082</updated>
</task> </task>
<option name="localTasksCounter" value="28" /> <task id="LOCAL-00028" summary="Update reservations logic to handle non-nullable fields and type adjustments&#10;&#10;- Adjust `userId` handling in update DTO logic to allow undefined instead of null.&#10;- Cast certain fields to `any` to handle edge cases in type compatibility.&#10;- Extend Prisma imports to include `Role` for future role-based logic enhancements.">
<option name="closed" value="true" />
<created>1774719602199</created>
<option name="number" value="00028" />
<option name="presentableId" value="LOCAL-00028" />
<option name="project" value="LOCAL" />
<updated>1774719602199</updated>
</task>
<task id="LOCAL-00029" summary="Remove redundant node_modules copy in API Dockerfile">
<option name="closed" value="true" />
<created>1774719698140</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1774719698140</updated>
</task>
<task id="LOCAL-00030" summary="Integrate `svelte-i18n` for enhanced localization support&#10;&#10;- Add `svelte-i18n` as a dependency for dynamic translations.&#10;- Replace `@sveltejs/adapter-auto` with `@sveltejs/adapter-node` for better deployment compatibility.&#10;- Update `package-lock.json` to reflect new and updated dependencies.">
<option name="closed" value="true" />
<created>1774719795821</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1774719795821</updated>
</task>
<option name="localTasksCounter" value="31" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@ -365,9 +385,6 @@
</option> </option>
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="Add booking modal and enhance reservation handling&#10;&#10;- Create `BookingModal.svelte` for booking spaces with custom time slots or full-day durations.&#10;- Add API endpoint to fetch reservations by space ID and date.&#10;- Update `SpacesService` with enhanced validation rules and conflict checks for reservations.&#10;- Extend WebSocket updates to include reservation data for real-time synchronization.&#10;- Enable date-based filtering and status handling in UI components (`SpaceCard.svelte`, `FloorplanViewer.svelte`)." />
<MESSAGE value="Add support for space resizing and enhanced layout management&#10;&#10;- Update `SpacesService` to handle width and height properties for spaces.&#10;- Introduce `UpdateSpaceDto` for improved validation in batch update operations.&#10;- Extend `FloorplanEditor.svelte` and `FloorplanViewer.svelte` to support dynamic container scaling and space resizing.&#10;- Modify Prisma schema to include `width` and `height` fields for spaces.&#10;- Enhance floorplan rendering to maintain proportional layout during editing and viewing." />
<MESSAGE value="Add admin reporting dashboard with utilization statistics and downloadable reports&#10;&#10;- Implement `+page.svelte` for admin reporting dashboard showing utilization and employee stats.&#10;- Add API endpoints for utilization stats, employee stats, and Excel report export (NestJS).&#10;- Create `ReportsService` and `ReportsModule` for backend logic.&#10;- Introduce `xlsx` package for generating Excel reports.&#10;- Update layout to include &quot;Reports&quot; link for admin users.&#10;- Extend Prisma querying for detailed building, space type, and employee role data." />
<MESSAGE value="Add user management and registration features with invite-based onboarding&#10;&#10;- Implement `+page.svelte` for admin user management, allowing role updates, password resets, and invite link generation." /> <MESSAGE value="Add user management and registration features with invite-based onboarding&#10;&#10;- Implement `+page.svelte` for admin user management, allowing role updates, password resets, and invite link generation." />
<MESSAGE value="Add user management and registration features with invite-based onboarding&#10;&#10;- Implement `+page.svelte` for admin user management, allowing role updates, password resets, and invite link generation. Update `UsersController` and `UsersService` to support user role updates, password changes, and invite token generation.&#10;- Create DTOs (`RegisterDto`, `UpdateUserDto`) for input validation in user management endpoints.&#10;- Extend `AuthService` and `AuthController` with invite-based registration logic.&#10;- Update admin layout to include &quot;Users&quot; link for easy access to user management." /> <MESSAGE value="Add user management and registration features with invite-based onboarding&#10;&#10;- Implement `+page.svelte` for admin user management, allowing role updates, password resets, and invite link generation. Update `UsersController` and `UsersService` to support user role updates, password changes, and invite token generation.&#10;- Create DTOs (`RegisterDto`, `UpdateUserDto`) for input validation in user management endpoints.&#10;- Extend `AuthService` and `AuthController` with invite-based registration logic.&#10;- Update admin layout to include &quot;Users&quot; link for easy access to user management." />
<MESSAGE value="Add &quot;My Bookings&quot; page and enable reservation updates and cancellations&#10;&#10;- Implement `+page.svelte` for managing user reservations with real-time updates.&#10;- Add API endpoints for updating and canceling reservations with enhanced validation and authorization.&#10;- Introduce `UpdateReservationDto` for refined reservation update handling.&#10;- Update `reservations.service.ts` to handle overlapping checks, time adjustments, and admin actions.&#10;- Extend layout to include a link to the &quot;My Bookings&quot; page.&#10;- Add `date-fns` library for date formatting." /> <MESSAGE value="Add &quot;My Bookings&quot; page and enable reservation updates and cancellations&#10;&#10;- Implement `+page.svelte` for managing user reservations with real-time updates.&#10;- Add API endpoints for updating and canceling reservations with enhanced validation and authorization.&#10;- Introduce `UpdateReservationDto` for refined reservation update handling.&#10;- Update `reservations.service.ts` to handle overlapping checks, time adjustments, and admin actions.&#10;- Extend layout to include a link to the &quot;My Bookings&quot; page.&#10;- Add `date-fns` library for date formatting." />
@ -390,6 +407,9 @@
<MESSAGE value="Refactor date picker components for improved accessibility and usability&#10;&#10;- Add `showPicker` event to trigger native date picker overlays.&#10;- Adjust z-index and positioning for hidden `input` elements to improve interaction.&#10;- Reorganize markup for consistent focus and selection behavior across components." /> <MESSAGE value="Refactor date picker components for improved accessibility and usability&#10;&#10;- Add `showPicker` event to trigger native date picker overlays.&#10;- Adjust z-index and positioning for hidden `input` elements to improve interaction.&#10;- Reorganize markup for consistent focus and selection behavior across components." />
<MESSAGE value="Prevent past bookings and updates across web and API&#10;&#10;- Add validation logic to block creating or updating reservations in the past.&#10;- Update date pickers to enforce minimum selectable date as today.&#10;- Extend i18n files (`en.json`, `es-ES.json`) with new error messages.&#10;- Refine UI to disable interaction with past time slots and display appropriate messages." /> <MESSAGE value="Prevent past bookings and updates across web and API&#10;&#10;- Add validation logic to block creating or updating reservations in the past.&#10;- Update date pickers to enforce minimum selectable date as today.&#10;- Extend i18n files (`en.json`, `es-ES.json`) with new error messages.&#10;- Refine UI to disable interaction with past time slots and display appropriate messages." />
<MESSAGE value="Allow admins and supervisors to book or update reservations for other users&#10;&#10;- Add role-based restrictions for booking or updating reservations on behalf of others (Admins/Supervisors only).&#10;- Extend reservation DTOs (`CreateReservationDto`, `UpdateReservationDto`) to include `userId` and `note` fields.&#10;- Update Prisma schema to allow nullable `userId` and add support for reservation notes.&#10;- Enhance API logic to validate permissions and handle ownership changes for reservations.&#10;- Improve UI for booking flow; introduce &quot;Book for&quot; options, user search, and reservation notes.&#10;- Localize new strings in `en.json` and `es-ES.json`." /> <MESSAGE value="Allow admins and supervisors to book or update reservations for other users&#10;&#10;- Add role-based restrictions for booking or updating reservations on behalf of others (Admins/Supervisors only).&#10;- Extend reservation DTOs (`CreateReservationDto`, `UpdateReservationDto`) to include `userId` and `note` fields.&#10;- Update Prisma schema to allow nullable `userId` and add support for reservation notes.&#10;- Enhance API logic to validate permissions and handle ownership changes for reservations.&#10;- Improve UI for booking flow; introduce &quot;Book for&quot; options, user search, and reservation notes.&#10;- Localize new strings in `en.json` and `es-ES.json`." />
<option name="LAST_COMMIT_MESSAGE" value="Allow admins and supervisors to book or update reservations for other users&#10;&#10;- Add role-based restrictions for booking or updating reservations on behalf of others (Admins/Supervisors only).&#10;- Extend reservation DTOs (`CreateReservationDto`, `UpdateReservationDto`) to include `userId` and `note` fields.&#10;- Update Prisma schema to allow nullable `userId` and add support for reservation notes.&#10;- Enhance API logic to validate permissions and handle ownership changes for reservations.&#10;- Improve UI for booking flow; introduce &quot;Book for&quot; options, user search, and reservation notes.&#10;- Localize new strings in `en.json` and `es-ES.json`." /> <MESSAGE value="Update reservations logic to handle non-nullable fields and type adjustments&#10;&#10;- Adjust `userId` handling in update DTO logic to allow undefined instead of null.&#10;- Cast certain fields to `any` to handle edge cases in type compatibility.&#10;- Extend Prisma imports to include `Role` for future role-based logic enhancements." />
<MESSAGE value="Remove redundant node_modules copy in API Dockerfile" />
<MESSAGE value="Integrate `svelte-i18n` for enhanced localization support&#10;&#10;- Add `svelte-i18n` as a dependency for dynamic translations.&#10;- Replace `@sveltejs/adapter-auto` with `@sveltejs/adapter-node` for better deployment compatibility.&#10;- Update `package-lock.json` to reflect new and updated dependencies." />
<option name="LAST_COMMIT_MESSAGE" value="Integrate `svelte-i18n` for enhanced localization support&#10;&#10;- Add `svelte-i18n` as a dependency for dynamic translations.&#10;- Replace `@sveltejs/adapter-auto` with `@sveltejs/adapter-node` for better deployment compatibility.&#10;- Update `package-lock.json` to reflect new and updated dependencies." />
</component> </component>
</project> </project>

View File

@ -1,4 +1,4 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "prisma"]
} }