Commit Graph

68 Commits

Author SHA1 Message Date
Julien Froidefond
5e1e06be47 perf: homepage 2025-08-25 21:30:35 +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
abd0de9f12 feat: add logout functionality to navigation component
- Integrated logout feature in the navigation dropdown using authClient.
- Implemented toast notifications for successful logout and error handling.
- Redirected users to the login page post-logout for improved user experience.
2025-08-25 19:14:56 +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
49804c0fa1 fix: auto-login user after successful registration
- Updated AuthWrapper to automatically log in the user upon successful registration.
- Added toast notification for user feedback during the redirection process.
- Redirects user to the home page after registration completion.
2025-08-25 16:22:09 +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
caf396d964 feat: adding login/RegisterForm and new columns in PG 2025-08-25 14:02:07 +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
e02af4f992 chore: readme reset 2025-08-25 08:40:04 +02:00
Julien Froidefond
a5e5a75561 refactor: use services in routes plz 2025-08-25 08:38:56 +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
1a0877f51d refactor: update data fetching in management pages and improve type imports
- Simplified data extraction from AdminService in SkillsPage, TeamsPage, and UsersPage.
- Updated import paths for Team type in user-related components for consistency.
- Added id and name properties to SkillCategory interface for better data structure.
- Enhanced logging in useSkillsManagement for debugging skill creation process.
2025-08-24 22:25:12 +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
2e195ca5cf reafctor: pages for management and split components 2025-08-23 08:16:09 +02:00
Julien Froidefond
97d274190d refacto: dialogs 2025-08-23 07:52:38 +02:00
Julien Froidefond
2877e3b58f refactor: managements pages simplification 2025-08-23 07:50:25 +02:00
Julien Froidefond
5848f1331c refactor: bad old components and structure 2025-08-22 16:58:50 +02:00
Julien Froidefond
79b7a050fa style: refine AdminOverviewCards for improved UI consistency
- Adjusted padding and margin for card elements to enhance layout.
- Reduced font sizes for better readability and visual hierarchy.
- Updated icon sizes for a more cohesive look across all cards.
- Overall improvements to maintain a consistent design language in the admin overview section.
2025-08-22 16:48:58 +02:00
Julien Froidefond
905e2b2081 refactor: improve logging and streamline skill synchronization process
- Enhanced console logging for better clarity during skill category processing.
- Simplified skill update checks and utilized bulkInsertSkillsFromJSON for efficient skill management.
- Improved code readability by standardizing formatting and reducing unnecessary comments.
2025-08-22 16:41:41 +02:00
Julien Froidefond
734044d73b refactor: style of tabs admin 2025-08-22 16:37:02 +02:00
Julien Froidefond
a08caf2981 feat: userr management 2025-08-22 16:34:13 +02:00
Julien Froidefond
1a05b22242 style: update UI components for improved visual consistency and interactivity
- Enhanced AdminOverviewCards with gradient backgrounds and updated hover effects for better user engagement.
- Introduced a utility function to dynamically assign colors based on direction in DirectionOverview, improving maintainability.
- Updated TeamStatsRow with gradient backgrounds and refined text colors for better readability and aesthetics.
- Overall improvements to component styling for a more cohesive look across the admin interface.
2025-08-22 14:03:45 +02:00
Julien Froidefond
5c76ec0549 feat: enhance team overview and skills tabs with improved skill distribution and UI
- Updated team overview tab to calculate and display skill distribution by individual skill levels.
- Refactored skill tab layout for better responsiveness and readability, including adjustments to grid and text sizes.
- Added a new utility function to calculate skill level distribution for cleaner code and reusability.
- Improved visual elements for better user interaction and clarity in skill metrics.
2025-08-22 13:59:51 +02:00
Julien Froidefond
8974a9b579 refactor: update team stats component usage in DirectionOverview
- Replaced TeamStatsCard with TeamStatsRow for better alignment with new design.
- Updated comments and layout structure to reflect the change from grid to list format.
- Ensured proper export of TeamStatsRow in team-detail index for consistency.
2025-08-22 13:48:33 +02:00
Julien Froidefond
ad89eedd9d feat: remove create skill in evaluation page 2025-08-22 12:19:59 +02:00
Julien Froidefond
965c08aec1 fix: add all skills KO if no skill in categ 2025-08-22 12:18:26 +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
376012fce6 feat: redesign TeamStatsCard for improved UI and functionality
- Updated layout and styling for better visual hierarchy and user interaction.
- Simplified skill metrics display and added progress bars for clarity.
- Enhanced top skills section for better readability and engagement.
- Introduced ChevronRight icon for action buttons to indicate interactivity.
- Streamlined component structure for maintainability and performance.
2025-08-22 09:41:58 +02:00
Julien Froidefond
8e7c65d81a refactor: improve local state management in TeamsManagement
- Replaced direct usage of `teams` with `localTeams` for better state handling.
- Added `getLocalTeam` function to retrieve teams from local state.
- Updated team stats management to avoid unnecessary page reloads, enhancing user experience.
- Streamlined team addition and deletion processes by directly manipulating local state.
- Removed unused `mergeTeamStats` function to simplify codebase.
2025-08-22 09:39:57 +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
7ad970c73c refactor: sort teamsjson 2025-08-22 09:09:16 +02:00
Julien Froidefond
aa5b537577 feat: enhance ProfileForm with team search and dropdown functionality
- Added search functionality to filter teams by name or direction in the ProfileForm component.
- Implemented a custom dropdown for team selection, including dynamic positioning based on available space.
- Integrated click outside detection to close the dropdown when interacting outside of it.
- Updated navigation component to use a Link for user info display, improving accessibility and interaction.
2025-08-22 09:07:08 +02:00
Julien Froidefond
e314a96fae feat: CRUD admin for skills and teams 2025-08-22 08:56:02 +02:00
Julien Froidefond
514b33870b Updating teams json 2025-08-21 18:10:37 +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
dad172157b feat: add multiple skills addition and optimize evaluation handling
- Introduced `addMultipleSkillsToEvaluation` function in `EvaluationClientWrapper` for batch skill addition.
- Updated `SkillEvaluation` and `SkillSelector` components to utilize the new multiple skills addition feature.
- Implemented optimistic UI updates for skill level, mentor status, and learning status changes, enhancing user experience.
- Refactored evaluation state management to improve performance and maintainability.
- Added error handling and rollback mechanisms for better reliability during API interactions.
2025-08-21 15:07:57 +02:00
Julien Froidefond
2faa998cbe feat: update TeamDetailPage and modularize components
- Changed params in TeamDetailPage to be a Promise, ensuring proper async handling.
- Updated data fetching logic to use awaited teamId for better clarity.
- Modularized TeamDetailClientWrapper by extracting TeamDetailHeader, TeamMetricsCards, TeamDetailTabs, and TeamMemberModal for improved organization and readability.
- Removed unused imports and streamlined the component structure, enhancing maintainability.
2025-08-21 14:42:38 +02:00
Julien Froidefond
747b0189a6 refactor: modularize AdminClientWrapper by extracting components
- Removed unused imports and components from AdminClientWrapper.
- Introduced AdminHeader, AdminOverviewCards, AdminFilters, and AdminContentTabs for better code organization and readability.
- Streamlined the layout and functionality of the admin dashboard, enhancing maintainability.
2025-08-21 14:33:15 +02:00
Julien Froidefond
b3bb8e9296 feat: handling SSR and PG datas for admin space 2025-08-21 14:30:01 +02:00
Julien Froidefond
c7ac6fc920 feat: generation data script 2025-08-21 14:12:30 +02:00
Julien Froidefond
578f0858e8 feat: secu migrate to user uuid 2025-08-21 13:54:13 +02:00
Julien Froidefond
ef16c73625 feat: handling SSR on evaluation 2025-08-21 13:19:46 +02:00
Julien Froidefond
69f23db55d feat: handling SSR on home page 2025-08-21 12:54:48 +02:00