Commit Graph

47 Commits

Author SHA1 Message Date
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
Julien Froidefond
e32e3b8bc0 refactor: remove ProfileForm and update loading state display
- Removed the ProfileForm component from HomePage, simplifying the UI during loading.
- Added a loading spinner and message to indicate redirection to the login page, enhancing user experience.
2025-08-21 12:00:44 +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
5cb2bad992 feat: add skill creation functionality and reload categories
- Introduced a new button to create skills within the SkillSelector component, allowing users to add missing skills directly.
- Implemented a dialog for skill creation, including a form to handle new skill submissions.
- Added a reloadSkillCategories function in the useEvaluation hook to refresh skill categories and migrate existing evaluations if necessary.
- Enhanced error handling for category reloading to improve robustness.
2025-08-21 11:46:29 +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
a749f7fcff feat: add Adminer support for PostgreSQL management
- Updated DATABASE_SETUP.md to include instructions for starting Adminer alongside PostgreSQL.
- Enhanced Docker Compose configuration to add Adminer service for database management.
- Provided connection details and usage instructions for Adminer in the documentation.
- Updated commands for restarting services and viewing logs to include Adminer.
2025-08-21 10:02:57 +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
Julien Froidefond
488684fd9b feat: dashboard 2025-08-21 08:23:24 +02:00
Julien Froidefond
328a1b68a1 Add mentor and learning status updates to skill evaluation
- Introduced `updateSkillMentorStatus` and `updateSkillLearningStatus` functions to manage mentor and learning preferences for skills.
- Updated `SkillEvaluationCard` to include buttons for toggling mentor and learning statuses with corresponding icons.
- Enhanced `SkillEvaluationGrid` and `SkillEvaluation` components to pass new status update handlers.
- Modified `SkillEvaluation` type to accommodate new properties for mentor and learning status.
2025-08-20 17:04:19 +02:00
Julien Froidefond
ab9c35c276 Add score color logic and evaluation migration
- Introduced `getScoreColors` function to dynamically set badge colors based on skill scores for better visual feedback.
- Updated HomePage to display skill evaluation percentages with corresponding colors.
- Implemented `migrateEvaluation` function to ensure existing evaluations are updated with new skill categories, enhancing data integrity.
- Refactored data loading in `loadSkillCategories` and `loadTeams` to fetch from API endpoints, improving flexibility and maintainability.
2025-08-20 16:50:30 +02:00
Julien Froidefond
38d8e7ec40 Refactor data loading to use static JSON imports
- Replaced dynamic fetch calls with direct imports of skill category and team data from JSON files for improved performance and reliability.
- Removed obsolete JSON files from the public/data directory to clean up the codebase.
- Updated loadSkillCategories and loadTeams functions to return imported data directly.
2025-08-20 16:26:12 +02:00
Julien Froidefond
553ee39728 Refactor TechIcon component for improved readability
- Split conditional check for Font Awesome icon into multiple lines for better clarity.
- Maintained existing functionality while enhancing code maintainability.
2025-08-20 16:24:37 +02:00
Julien Froidefond
f74d4d3e87 Add Font Awesome icons and refactor tech icon handling
- Added Font Awesome dependencies for enhanced icon support.
- Refactored tech icon components to utilize Font Awesome icons instead of custom SVGs.
- Updated skill data files to include icon properties for various technologies.
- Removed obsolete tech icon files to streamline the codebase.
2025-08-20 16:24:07 +02:00
Julien Froidefond
e6d4bbe13d Refactor radar chart and improve UI elements
- Updated radar chart to use abbreviated category labels for better readability.
- Enhanced chart visibility with improved grid and axis styling.
- Added a gradient background to the radar area for a more polished look.
- Simplified links in JSON files for backend, cloud, and devops skills.
- Adjusted HomePage text for clarity and consistency.
2025-08-20 16:10:28 +02:00
Julien Froidefond
5c510ebd07 Add skill removal functionality and enhance UI components
- Integrated onRemoveSkill functionality in SkillEvaluation, SkillSelector, and SkillEvaluationCard components for better skill management.
- Updated UI to improve user experience when removing skills, including tooltip descriptions and styling adjustments.
- Added new skills to backend, devops, frontend, and mobile JSON files for comprehensive skill coverage.
2025-08-20 16:06:09 +02:00
Julien Froidefond
fe63f9592a Enhance skill evaluation UI with category icons and URL state management
- Added category icons to the skill evaluation components for better visual representation.
- Implemented URL parameter handling in SkillEvaluation to maintain selected category state across navigation.
- Improved the HomePage layout with expandable skill categories and enhanced user interaction.
- Updated skill data files to include icon properties for each category.
2025-08-20 15:52:59 +02:00
Julien Froidefond
09d2c5cbe1 init 2025-08-20 15:43:24 +02:00