Commit Graph

13 Commits

Author SHA1 Message Date
Julien Froidefond
7d12a66c12 refactor: migrate authentication to NextAuth and clean up related services 2025-10-12 15:45:09 +02:00
Julien Froidefond
aee5d74445 feat: importance in db and mentorcard home colors 2025-08-27 11:51:43 +02:00
Julien Froidefond
d7fef0be9b feat: remove a skill category empty 2025-08-26 07:10:26 +02:00
Julien Froidefond
565fde2808 refactor: no XHR for currentUser but backside 2025-08-25 21:47:15 +02:00
Julien Froidefond
a440c0729f refactor: remove unused components and clean up evaluation client
- Deleted CreateSkillForm and ProfileForm components as they are no longer needed.
- Removed the initializeEmptyEvaluation method from EvaluationClient, as the backend handles evaluation creation.
- Updated exports in evaluation index to reflect the removal of WelcomeEvaluationScreen.
2025-08-25 19:31:17 +02:00
Julien Froidefond
42217c1c13 feat: enhance user authentication and profile retrieval
- Updated GET handler in auth route to fetch user UUID from cookie using AuthService.
- Improved error handling for unauthenticated and non-existent users.
- Added team name retrieval for the user profile, with fallback handling.
- Refactored AuthClient to return detailed user information including team details.
- Enhanced navigation component to use a dropdown menu for user actions, improving UI/UX.
- Implemented loading state in UserContext to manage user info fetching.
2025-08-25 16:33:10 +02:00
Julien Froidefond
5c71ce1a54 refactor: update authentication flow and cookie management
- Changed COOKIE_NAME from "peakSkills_userId" to "session_token" for better clarity.
- Updated AuthClient to handle login and registration with new data structures.
- Enhanced AuthWrapper to manage user sessions and display appropriate messages.
- Added error handling in LoginForm and RegisterForm for better user feedback.
- Refactored user service methods to streamline user creation and verification processes.
2025-08-25 16:19:31 +02:00
Julien Froidefond
9a818b7205 refactor: SSR on page teams and split getAdminData 2025-08-25 09:20:36 +02:00
Julien Froidefond
0c7903bcb2 refactor: SSR on skills management 2025-08-25 09:04:33 +02:00
Julien Froidefond
e02af4f992 chore: readme reset 2025-08-25 08:40:04 +02:00
Julien Froidefond
dc06f00342 refactor: remove legacy evaluation route and update user management interfaces
- Deleted the obsolete evaluations route to streamline the API.
- Added User and UserFormData interfaces to admin-client for better user management.
- Updated useUsersManagement hook to utilize adminClient for fetching and creating users, improving data handling.
- Cleaned up unused imports and code for better maintainability.
2025-08-25 08:30:34 +02:00
Julien Froidefond
26496e7473 refactor: integrate EvaluationClient and remove legacy evaluation actions
- Added EvaluationClient to clients/index.ts and created an instance for use.
- Updated client-wrapper.tsx and welcome-screen.tsx to utilize EvaluationClient for evaluation actions.
- Removed obsolete evaluation-actions.ts file to streamline codebase and reduce redundancy.
2025-08-25 08:06:23 +02:00
Julien Froidefond
6fba622003 refactor: revew all design of services, clients, deadcode, ... 2025-08-24 22:03:15 +02:00