Commit Graph

34 Commits

Author SHA1 Message Date
Julien Froidefond
117ac243f5 refactor: review cookie code for auth 2025-08-28 12:07:35 +02:00
Julien Froidefond
84979501fa fix: risk and colors on covergae in myteam page 2025-08-27 14:57:10 +02:00
Julien Froidefond
a8cad0b2ec refactor: rule of coverage are in one place 2025-08-27 14:31:05 +02:00
Julien Froidefond
a5bcdd34fb feat: review admin teams views for importance inclusion 2025-08-27 13:43:47 +02:00
Julien Froidefond
e9aecca2a5 feat: review admin overview and popup details fwith importance 2025-08-27 13:16:39 +02:00
Julien Froidefond
94a18b0ca5 feat: review my team page with importance 2025-08-27 12:56:48 +02:00
Julien Froidefond
88dc00a44b chore: datas are ok and sync also 2025-08-27 12:18:40 +02:00
Julien Froidefond
aee5d74445 feat: importance in db and mentorcard home colors 2025-08-27 11:51:43 +02:00
Julien Froidefond
c7a5b25501 feat: my team page 2025-08-27 10:53:11 +02:00
Julien Froidefond
d7fef0be9b feat: remove a skill category empty 2025-08-26 07:10:26 +02:00
Julien Froidefond
d58ee314f7 feat: remove user even if in a team 2025-08-25 22:04:39 +02:00
Julien Froidefond
5e1e06be47 perf: homepage 2025-08-25 21:30:35 +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
ee58eb82e5 refactor: auth service for logic in evaluation skill PUT 2025-08-25 10:50:39 +02:00
Julien Froidefond
d575596c71 fix: login was KO by profile 2025-08-25 10:48:13 +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
a5e5a75561 refactor: use services in routes plz 2025-08-25 08:38:56 +02:00
Julien Froidefond
6fba622003 refactor: revew all design of services, clients, deadcode, ... 2025-08-24 22:03:15 +02:00
Julien Froidefond
f4dcc89c11 refactor: Userservice 2025-08-24 16:44:31 +02:00
Julien Froidefond
a08caf2981 feat: userr management 2025-08-22 16:34:13 +02:00
Julien Froidefond
90c2f25ec7 fix: update team shouldnot create new user 2025-08-22 12:15:36 +02:00
Julien Froidefond
76015510f3 fix: evaluation on empty eval category was KO 2025-08-22 12:03:59 +02:00
Julien Froidefond
c0e2b9533b feat: add team members functionality and modal
- Introduced `onViewMembers` prop in `TreeItemRow` to handle viewing team members.
- Added `TeamMembersModal` to display members of a selected team.
- Implemented state management for team members in `TeamsManagement`, including fetching and updating stats.
- Enhanced `AdminManagementService` with methods to fetch and remove team members.
2025-08-22 09:28:52 +02:00
Julien Froidefond
e314a96fae feat: CRUD admin for skills and teams 2025-08-22 08:56:02 +02:00
Julien Froidefond
dc3f030fce feat: filter teams with zero members in admin components
- Updated `AdminClientWrapper` to filter out teams with zero members in `getFilteredTeamStats`.
- Modified `AdminFilters` to only include directions and teams with members in the options.
- Enhanced `AdminService` to generate direction stats based on teams with members, improving data accuracy.
2025-08-21 17:12:39 +02:00
Julien Froidefond
a4b680b092 refactor: update database setup and remove skills migration API
- Changed migration commands in DATABASE_SETUP.md to use `pnpm run sync-skills` and `pnpm run sync-teams`.
- Removed the skills migration API endpoint in route.ts, streamlining the migration process.
- Updated MIGRATION_UUID.md to reflect changes in migration steps and removed the old skills migration script.
- Added new sync scripts for skills and teams in package.json.
- Cleaned up init.sql by removing old teams data insertion and adjusted comments for clarity.
2025-08-21 15:21:36 +02:00
Julien Froidefond
b3bb8e9296 feat: handling SSR and PG datas for admin space 2025-08-21 14:30:01 +02:00
Julien Froidefond
578f0858e8 feat: secu migrate to user uuid 2025-08-21 13:54:13 +02:00
Julien Froidefond
45fb1148ae feat: enhance evaluation loading with cookie authentication
- Updated the GET method in the evaluations route to support user authentication via cookies, improving security and user experience.
- Added compatibility for legacy parameter-based authentication to ensure backward compatibility.
- Refactored the useEvaluation hook to load user profiles from cookies instead of localStorage, streamlining the authentication process.
- Introduced a new method in EvaluationService to retrieve user profiles by ID, enhancing data retrieval efficiency.
- Updated ApiClient to handle cookie-based requests for loading evaluations, ensuring proper session management.
2025-08-21 11:55:50 +02:00
Julien Froidefond
75c3b2c983 feat: update evaluation schema and refactor skill evaluations
- Added unique constraint on users table for first_name, last_name, and team_id.
- Removed category_evaluations and selected_skills tables, simplifying the schema.
- Updated skill_evaluations to directly reference user_evaluations and include is_selected flag.
- Refactored EvaluationService to handle skill evaluations directly, improving data integrity and performance.
- Introduced new queries for loading skills and evaluations, enhancing data retrieval efficiency.
- Added views for user skills summary and category skills count for easier querying.
2025-08-21 11:41:35 +02:00
Julien Froidefond
72b653de19 feat: refactor skills API and database schema
- Replaced file-based skill category loading with API calls in the GET and POST methods of the skills route.
- Added new `SkillsService` for handling skill category operations.
- Updated SQL initialization script to create `skill_categories`, `skills`, and `skill_links` tables with appropriate relationships.
- Enhanced `ApiClient` with methods for loading skill categories and creating new skills, improving API interaction.
- Introduced error handling for skill category creation and loading processes.
2025-08-21 09:55:35 +02:00
Julien Froidefond
345ff5baa0 feat: adding teams in PG 2025-08-21 09:44:29 +02:00
Julien Froidefond
4e82a6d860 feat: add PostgreSQL support and enhance evaluation loading
- Added `pg` and `@types/pg` dependencies for PostgreSQL integration.
- Updated `useEvaluation` hook to load user evaluations from the API, improving data management.
- Refactored `saveUserEvaluation` and `loadUserEvaluation` functions to interact with the API instead of localStorage.
- Introduced error handling for profile loading and evaluation saving to enhance robustness.
- Added new methods for managing user profiles and evaluations, including `clearUserProfile` and `loadEvaluationForProfile`.
2025-08-21 08:46:52 +02:00