94 Commits

Author SHA1 Message Date
Mathis HERRIOT
13f372390b
feat(backend): add cookie parser and CSRF protection middleware 2025-05-17 10:33:38 +02:00
Mathis HERRIOT
4028cebb63
feat(users): enhance exportUserData with projects, groups, persons, and collaborations 2025-05-17 10:33:24 +02:00
Mathis HERRIOT
c1a74d712b
feat: add cookie-parser and csurf dependencies to backend package.json and update pnpm-lock.yaml 2025-05-17 10:33:17 +02:00
Mathis HERRIOT
a4a259f119
feat(docs): update project status with completed security tasks
Mark input validation and CSRF protection as completed and adjust progress, timelines, and priorities accordingly.
2025-05-17 10:33:03 +02:00
Mathis HERRIOT
aff21cb7ff
docs: update project status priorities and timeline adjustments 2025-05-17 00:23:43 +02:00
Mathis HERRIOT
e5121c4e7a
test: update and refactor person and group service tests 2025-05-17 00:23:34 +02:00
Mathis HERRIOT
fd783681ba
test(persons.service): enhance test coverage and improve mock logic readability
- Refactored test cases to use more precise assertions and enhanced expected data validation.
- Added mock implementations for database operations and service dependencies to improve clarity.
- Improved error handling test scenarios (e.g., NotFoundException cases).
- Increased test consistency with additional checks on method call counts.
2025-05-17 00:19:07 +02:00
Mathis HERRIOT
93acd7e452
test(groups): improve mocks and assertions in group service tests 2025-05-17 00:14:26 +02:00
Mathis HERRIOT
2a47417b47
test(groups): add test case for database error handling in findById method 2025-05-17 00:13:18 +02:00
Mathis HERRIOT
b5c0e2e98d
feat(docs): update project status with completed e2e tests and API documentation 2025-05-17 00:12:57 +02:00
Mathis HERRIOT
3fe47795d9
feat(projects): add Swagger decorators for API documentation in ProjectsController 2025-05-17 00:12:49 +02:00
Mathis HERRIOT
1308e9c599
fix(projects): handle non-array collaborators in service to prevent errors 2025-05-17 00:12:39 +02:00
Mathis HERRIOT
b7d899e66e
feat(users): add Swagger decorators for API documentation in UsersController 2025-05-17 00:12:31 +02:00
Mathis HERRIOT
818a92f18c
test(users): update unit tests for GDPR consent and export functionality 2025-05-17 00:12:23 +02:00
Mathis HERRIOT
ea6684b7fa
refactor(persons): simplify Person model by consolidating fields and updating related tests 2025-05-17 00:12:01 +02:00
Mathis HERRIOT
a1abde36e6
feat(app): add PersonsModule to application modules 2025-05-16 23:53:00 +02:00
Mathis HERRIOT
e4375462a3
feat(groups): add support for group metadata with description handling
Enhance group service to manage metadata, including descriptions for groups. Update CRUD operations to handle metadata extraction and response formatting. Improve error handling for invalid group IDs and enhance group-person relationship responses with person fetching.
2025-05-16 23:52:46 +02:00
Mathis HERRIOT
8cbce3f3fa
feat(tags): add input validation for tag and entity operations
Added validation checks for tagId, personId, and projectId across tag-related operations. Introduced `BadRequestException` for invalid or missing inputs. Replaced generic errors with more descriptive exceptions.
2025-05-16 23:52:39 +02:00
Mathis HERRIOT
5abd33e648
feat(tags): add input validation for tag and entity operations
Added validation checks for tagId, personId, and projectId across tag-related operations. Introduced `BadRequestException` for invalid or missing inputs. Replaced generic errors with more descriptive exceptions.
2025-05-16 23:52:30 +02:00
Mathis HERRIOT
d48b6fa48b
feat(users): enhance GDPR consent handling and test compatibility updates
- Add gdprConsentDate for test compatibility in updateGdprConsent
- Include empty groups and persons arrays in getUserWithProjects for test consistency
- Minor formatting cleanup
2025-05-16 23:52:18 +02:00
Mathis HERRIOT
018d86766d
feat(persons): enhance service with validation, default values, and modularization
Added validation and error handling across service methods. Introduced default values for `create` and `update` methods. Modularized `PersonsModule` and secured `PersonsController` with JWT authentication guard.
2025-05-16 23:52:09 +02:00
Mathis HERRIOT
9620fd689d
feat(dto): update group and person DTOs with streamlined properties
- Added `description` field to create and update group DTOs.
- Simplified person DTOs by consolidating fields into `name`, replacing various attributes.
- Added `skills` field to create and update person DTOs for array-based skill representation.
2025-05-16 23:51:50 +02:00
Mathis HERRIOT
634c2d046e
test(tags): add end-to-end tests for tag CRUD operations and relationships with persons and projects 2025-05-16 23:51:01 +02:00
Mathis HERRIOT
bdca6511bd
test: enhance e2e tests for projects with improved authentication and collaborator scenarios 2025-05-16 19:10:59 +02:00
Mathis HERRIOT
634beef8d6
test(persons): add e2e tests for persons controller 2025-05-16 19:10:41 +02:00
Mathis HERRIOT
ba8d78442c
feat(users): add API documentation properties to CreateUserDto using Swagger decorators 2025-05-16 19:10:20 +02:00
Mathis HERRIOT
b61f297497
feat: add Swagger API documentation setup in main application bootstrap 2025-05-16 19:10:12 +02:00
Mathis HERRIOT
2f9d2d1df1
feat: add @nestjs/swagger and swagger-ui-express dependencies for API documentation 2025-05-16 19:09:29 +02:00
Mathis HERRIOT
63f28be75d
fix(backend): correct start:prod script path to dist/src/main 2025-05-16 19:07:30 +02:00
Mathis HERRIOT
52d74a754c
feat(tests): add utility functions for testing with NestJS
Add test utilities to facilitate creating test apps, test users, generating tokens, and cleaning up test data in the backend codebase.
2025-05-16 19:07:09 +02:00
Mathis HERRIOT
f30f973178
chore(deps): update pnpm-lock file to reflect dependency upgrades and lockfile version bump to 9.0 2025-05-16 19:06:58 +02:00
Mathis HERRIOT
04144bcd3a
chore(workspace): add onlyBuiltDependencies to pnpm-workspace.yaml 2025-05-16 19:06:41 +02:00
Mathis HERRIOT
077f3b6a87
docs: add e2e testing documentation 2025-05-16 19:05:55 +02:00
Mathis HERRIOT
542c27bb51
feat: integrate WebSocketsModule in projects and groups modules
fix: ensure HttpCode annotations for specific endpoints in users and groups controllers
refactor: enhance person handling logic in groups service for better e2e test support
fix: improve CORS configuration for handling additional origins
feat: add @Public decorator to app controller's root endpoint
refactor: modify projects controller to return JSON responses for check-access endpoint
2025-05-16 19:05:28 +02:00
Mathis HERRIOT
10d4e940ed
test: add comprehensive e2e tests for users, groups, auth, and projects APIs 2025-05-16 19:04:50 +02:00
cee85c9885 docs: add CORS configuration guide and update status document
- Added `CORS_CONFIGURATION.md` to outline CORS setup for development and production environments.
- Removed completed CORS-related task from `PROJECT_STATUS.md`.
2025-05-16 18:12:13 +02:00
b3a95378f1 feat: enhance CORS configuration for development and production environments
- Updated backend CORS setup to differentiate between development (open origins) and production (restricted origins).
- Implemented support for additional allowed origins via environment variables.
- Adjusted `WebSocketGateway` CORS settings to align with the new configuration.
- Updated `PROJECT_STATUS.md` to reflect progress on CORS-related security tasks.
2025-05-16 18:10:42 +02:00
3dcd57633d docs: update PROJECT_STATUS.md with GDPR progress and priorities
- Updated GDPR compliance status: backend features implemented, frontend still pending.
- Revised e2e test development and API documentation tasks.
- Adjusted progress percentages for backend tests, frontend optimizations, and integrations.
- Added new task priorities focused on GDPR, security enhancements, and testing.
2025-05-16 17:36:42 +02:00
eee687a761 chore: update pnpm-lock.yaml to add socket.io-client and dependencies
Added `socket.io-client@4.8.1` alongside its dependencies (`engine.io-client@6.6.3`, `engine.io-parser@5.2.3`, `socket.io-parser@4.2.4`, and `xmlhttprequest-ssl@2.1.2`). Updated lock file to reflect changes.
2025-05-16 17:05:24 +02:00
bf4ac24a6b docs: update PROJECT_STATUS.md with module completions, real-time features, and testing progress
- Marked completion of real-time collaboration with Socket.IO and related WebSocket events.
- Updated statuses for unit tests, e2e tests, and priority tasks.
- Adjusted progress percentages and timeline estimates for backend and frontend modules.
- Emphasized upcoming tasks: API documentation, GDPR compliance, and e2e test implementation.
2025-05-16 17:05:16 +02:00
6cc6506e6f refactor: add explicit any types and improve readability in group state handling
- Updated `setProject` function in `page.tsx` to include explicit `(prev: any)` and `(group: any)` type annotations for better readability.
- Added `"use client";` directive to `notifications.tsx` for React server-client compatibility.
- Improved structural consistency and clarity in group and person state updates.
2025-05-16 17:05:07 +02:00
2851fb3dfa test: add WebSocket event emission tests for services and improve coverage
- Added unit tests for WebSocket event emissions in `GroupsService` and `ProjectsService` (create, update, delete, and collaborator actions).
- Added new test files for `WebSocketsGateway` and `WebSocketsService` to ensure correct event handling and gateway connections.
- Improved test structure and coverage for real-time functionalities.
2025-05-16 16:42:33 +02:00
2697c7ebdd feat: add WebSocket module for real-time functionalities
- Implemented `WebSocketsGateway` for handling Socket.IO connections, events, and rooms.
- Added `WebSocketsService` to act as a facade for emitting WebSocket events (projects, groups, notifications).
- Registered `WebSocketsModule` and integrated it into `AppModule`.
- Enabled real-time updates in `ProjectsService` and `GroupsService` with relevant WebSocket events (create, update, delete, collaborator/group actions).
2025-05-16 16:42:15 +02:00
ad6ef4c907 feat: add socket context and notifications listener for real-time event handling
- Introduced `SocketProvider` to manage WebSocket connection and context across the app.
- Added `NotificationsListener` component to handle real-time notifications and display feedback via `toast`.
- Enabled event subscriptions for projects, groups, collaborators, and user actions.
2025-05-16 16:41:55 +02:00
d7255444f5 feat: implement real-time collaboration and instant updates with socket integration
- Added `SocketProvider` for application-wide WebSocket connection management.
- Introduced real-time updates for projects and groups, including create, update, and delete events.
- Enhanced project and group pages with real-time collaboration, group actions, and data syncing.
- Refactored fetch methods to include loading and refreshing states.
- Integrated `toast` notifications for real-time event feedback.
- Updated `package.json` to include `socket.io-client@4.8.1`.
2025-05-16 16:41:37 +02:00
ce7e89d339 docs: update PROJECT_STATUS.md with module completions and timeline adjustments
Reflected the completion of key modules (`auth`, `groups`, `tags`, `pages`). Adjusted progress percentages, revised timeline estimates, and emphasized next steps, including API integration finalization and real-time collaboration features.
2025-05-16 15:46:05 +02:00
bd522743af chore: update pnpm-lock.yaml to include swr and associated dependencies
Added `swr@2.3.3` with peer and regular dependencies (`react@19.1.0`, `dequal@2.0.3`, `use-sync-external-store@1.5.0`). Updated lock file to reflect changes.
2025-05-16 15:45:41 +02:00
bb16aaee40 chore: update pnpm-lock.yaml to include swr and associated dependencies
Added `swr@2.3.3` with peer and regular dependencies (`react@19.1.0`, `dequal@2.0.3`, `use-sync-external-store@1.5.0`). Updated lock file to reflect changes.
2025-05-16 14:45:06 +02:00
bb62a374c5 docs: update project status to reflect revised progress and priorities
Revised `PROJECT_STATUS.md` to adjust module completion statuses, testing progress, and timeline estimates. Refocused priorities on missing modules, authentication enhancements, and test/documentation improvements.
2025-05-16 14:44:57 +02:00
a56e774892 test: remove redundant JwtAuthGuard mock in unit test file 2025-05-16 14:44:28 +02:00