Commit Graph

58 Commits

Author SHA1 Message Date
Julien Froidefond
5e810202bb Refactor challenge access checks and update text encoding: Remove unnecessary session variable in update and delete challenge functions. Update text in ChallengeManagement and ChallengesSection components for proper HTML encoding, enhancing display consistency.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m5s
2025-12-15 15:33:14 +01:00
Julien Froidefond
f093977b34 Add dotenv package for environment variable management and update pnpm-lock.yaml. Adjust layout in RegisterPage and LoginPage components for improved responsiveness. Enhance AdminPanel with ChallengeManagement section and update navigation links for challenges. Refactor Prisma schema to include Challenge model and related enums.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 3m2s
2025-12-15 15:16:54 +01:00
Julien Froidefond
9518eef3d4 Refactor ThemeProvider component: Simplify theme initialization logic by loading the theme from localStorage directly in the state hook, improving code clarity and reducing unnecessary effects. Update AdminPanel component by removing unused Link import, and fix button text encoding in EventsPageSection for proper display.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m1s
2025-12-15 10:18:24 +01:00
Julien Froidefond
dcba162663 Update button text in EventsPageSection component: Change "Rejoindre en direct" to "Connectez-vous à Teams, c'est maintenant !" for improved clarity and user engagement during live events. 2025-12-15 10:12:56 +01:00
Julien Froidefond
1e865330a0 Refactor character class handling across components: Replace hardcoded character class definitions with a centralized CHARACTER_CLASSES import, enhancing maintainability and consistency. Update ProfileForm, Leaderboard, and LeaderboardSection components to utilize new utility functions for character class icons and names, improving code clarity and reducing duplication.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m48s
2025-12-15 10:08:12 +01:00
Julien Froidefond
7dfd426d1f Update LeaderboardSection component: Change text truncation to word breaking for better display of long entries in leaderboard.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m28s
2025-12-15 09:07:37 +01:00
Julien Froidefond
bd8d698c4e Remove link to Style Guide in AdminPanel component to streamline UI preferences section.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m5s
2025-12-13 08:05:13 +01:00
Julien Froidefond
6d1e3daebb Add Footer component to layout and remove StyleGuidePage
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m19s
2025-12-12 17:10:19 +01:00
Julien Froidefond
5b96cf907e Enhance theming and UI components: Introduce a new dark cyan theme in globals.css, update layout to utilize ThemeProvider for consistent theming, and refactor button and card components to use CSS variables for styling. Improve navigation and alert components with dynamic styles based on theme variables, ensuring a cohesive user experience across the application.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 49s
2025-12-12 17:05:22 +01:00
Julien Froidefond
97db800c73 Refactor component imports and structure: Update import paths for various components to improve organization, moving them into appropriate subdirectories. Remove unused components related to user and event management, enhancing code clarity and maintainability across the application.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m36s
2025-12-12 16:48:41 +01:00
Julien Froidefond
880e96d6e4 Update Avatar component in StyleGuidePage: Modify Avatar usage to handle null image source, ensuring fallback functionality works correctly. Clean up ProfileForm by removing unused health and experience percentage calculations for improved code clarity. 2025-12-12 16:45:55 +01:00
Julien Froidefond
99a475736b Enhance UI components and animations: Introduce a shimmer animation effect in globals.css, refactor FeedbackPageClient, LoginPage, RegisterPage, and AdminPanel components to utilize new UI components for improved consistency and maintainability. Update event and feedback handling in EventsPageSection and FeedbackModal, ensuring a cohesive user experience across the application. 2025-12-12 16:44:57 +01:00
Julien Froidefond
db01c25de7 Refactor API routes and component logic: Remove unused event and user management routes, streamline feedback handling in components, and enhance state management with transitions for improved user experience. Update service layer methods for better organization and maintainability across the application.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m38s
2025-12-12 16:28:07 +01:00
Julien Froidefond
494ac3f503 Refactor event handling and user management: Replace direct database calls with service layer methods for events, user profiles, and preferences, enhancing code organization and maintainability. Update API routes to utilize new services for event registration, feedback, and user statistics, ensuring a consistent approach across the application. 2025-12-12 16:19:13 +01:00
Julien Froidefond
f69fbbd0e1 Refactor image URL handling: Update API routes to return image URLs via the API instead of direct paths, ensuring consistency across avatar and background uploads. Introduce normalization functions for avatar and background URLs to maintain compatibility with existing URLs.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m57s
2025-12-12 15:59:18 +01:00
Julien Froidefond
702476c349 Refactor avatar upload logic: Update API routes to create a dedicated 'uploads/avatars' directory for storing user avatars, ensuring organized file management and returning the correct image URL. 2025-12-12 15:51:47 +01:00
Julien Froidefond
f2805505a1 Refactor FeedbackPage component: Simplify props handling and remove unused state and effects related to event and feedback management, streamlining the feedback submission process.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 54s
2025-12-12 10:07:15 +01:00
Julien Froidefond
ae08ed7793 Enhance image upload and background management: Update Docker configuration to create a dedicated backgrounds directory for uploaded images, modify API routes to handle background images specifically, and improve README documentation to reflect these changes. Additionally, refactor components to utilize the new Avatar component for consistent avatar rendering across the application.
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 33s
2025-12-12 08:46:31 +01:00
Julien Froidefond
db2993c50b Refactor avatar display logic in LeaderboardSection: Simplify avatar rendering by consolidating conditional checks and enhancing fallback display for users without avatars, improving visual consistency and user experience.
Some checks failed
Deploy with Docker Compose / deploy (push) Has been cancelled
2025-12-12 08:09:12 +01:00
Julien Froidefond
41234f0729 Update README and HeroSection components: Revise project description to reflect new branding as "Game of Tech - Peaksys" and enhance the HeroSection text to better convey the platform's gamification features and user engagement opportunities.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 25s
2025-12-11 15:01:30 +01:00
Julien Froidefond
2cfb9ad041 Enhance EventsPageSection and Navigation components: Add click functionality to select events and update logo section to be a clickable link, improving user interaction and navigation experience.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 11s
2025-12-11 14:57:20 +01:00
Julien Froidefond
93c6624aec Add login redirection for feedback actions: Ensure users are redirected to the login page if they attempt to provide feedback without being authenticated, enhancing user experience and security. 2025-12-11 07:45:46 +01:00
Julien Froidefond
6c08789555 Refactor HeroSection component: Remove mouse tracking functionality and simplify gradient background styling for improved performance and clarity. 2025-12-11 06:45:42 +01:00
Julien Froidefond
7dbd044859 Refactor UI components for improved responsiveness and consistency: Update styles in AdminPanel, EventManagement, FeedbackManagement, HeroSection, ImageSelector, LeaderboardSection, Navigation, PlayerStats, and UserManagement to enhance mobile and desktop layouts. Adjust text sizes, padding, and button styles for better user experience across devices. 2025-12-11 06:45:14 +01:00
Julien Froidefond
9fde18a35e Add feedback functionality to EventsPageSection: Integrate FeedbackModal for event feedback submission, allowing users to provide feedback on selected events. Update event handling to manage feedback state and improve user interaction. 2025-12-10 12:06:30 +01:00
Julien Froidefond
d11059dac2 Refactor ESLint configuration and update code formatting: Standardize quotes in eslint.config.mjs, next.config.js, and various TypeScript files for consistency. Add Prettier as a dependency and include formatting scripts in package.json. Clean up unnecessary whitespace in multiple files to enhance code readability. 2025-12-10 11:30:00 +01:00
Julien Froidefond
3bd43e777e Implement event feedback functionality: Add EventFeedback model to Prisma schema, enabling users to submit ratings and comments for events. Update EventsPageSection and AdminPanel components to support feedback management, including UI for submitting feedback and viewing existing feedbacks. Refactor registration logic to retrieve all user registrations for improved feedback handling. 2025-12-10 06:11:32 +01:00
Julien Froidefond
44be5d2e98 Remove ESLint configuration file and update type imports across components: Deleted eslint.config.js to streamline project setup. Updated type imports in layout, login, register, and other components to use direct imports for improved clarity and consistency. Enhanced error handling in various components and replaced apostrophes with HTML entities for better rendering. 2025-12-10 06:01:34 +01:00
Julien Froidefond
88d377e7b2 Add user deletion functionality: Implement DELETE API endpoint for user management, allowing admins to remove users while preventing self-deletion. Enhance UserManagement component with delete confirmation and error handling for improved user experience. 2025-12-10 05:55:52 +01:00
Julien Froidefond
95e580aff6 Refactor event date handling in EventsSection and PlayerStats components: Serialize event dates for consistent formatting and update date display to use localized string representation. Remove profile link from Navigation and integrate it into PlayerStats for improved user experience. 2025-12-10 05:49:44 +01:00
Julien Froidefond
a6c329ff15 Update event types in EventManagement and EventsPageSection components: Replace existing event types with new categories (ATELIER, KATA, PRESENTATION, LEARNING_HOUR) to better reflect current offerings. Adjust related functions and seed data to ensure consistency across the application. 2025-12-10 05:48:23 +01:00
Julien Froidefond
a69613a232 Refactor event status handling: Remove EventStatus enum from the Prisma schema and update related API routes and UI components to calculate event status dynamically based on event date. This change simplifies event management and enhances data integrity by ensuring status is always derived from the date. 2025-12-10 05:45:25 +01:00
Julien Froidefond
fb830c6fcc Refactor date handling in EventsPageSection: Update getFirstDayOfMonth function to correctly convert UTC day of the week for improved calendar display. Simplify month navigation logic by directly using UTC date methods, enhancing clarity and functionality in event date management. 2025-12-10 05:37:42 +01:00
Julien Froidefond
1b07fe8ae5 Refactor event date handling: Update event model to use DateTime type for date fields in Prisma schema. Modify API routes and UI components to ensure consistent date formatting and handling, improving data integrity and user experience across event management and display. 2025-12-10 05:32:23 +01:00
Julien Froidefond
fdd860c456 Enhance event model and management: Add new fields for room, time, and maxPlaces to the Event model in Prisma schema. Update API routes and UI components to support these fields, improving event details and user interaction in event management and registration processes. 2025-12-10 05:27:35 +01:00
Julien Froidefond
fb5c8c1466 Refactor event registration logic in EventsPageSection: Introduce useRef to track initial data usage, preventing unnecessary API calls when user session changes. Update loading and error handling to enhance user experience during event registration. 2025-12-09 22:18:31 +01:00
Julien Froidefond
b643e283fa Enhance event registration handling: Integrate server-side session management to fetch user registrations for upcoming events, preventing flicker on load. Update EventsPageSection to accept initial registration data, improving user experience by pre-populating registration states. 2025-12-09 22:18:01 +01:00
Julien Froidefond
0ac6dbd423 Add character selection modal to Leaderboard: Implement a modal for displaying detailed user profiles when a leaderboard entry is clicked. This includes user avatar, rank, character class, score, level, and bio, enhancing user interaction and profile visibility. 2025-12-09 22:11:47 +01:00
Julien Froidefond
b245be3bf4 Enhance user profiles with character class feature: Add character class field to user model and update related API routes, UI components, and validation logic. This update improves user profile customization and leaderboard entries by allowing users to select and display their character class. 2025-12-09 22:03:51 +01:00
Julien Froidefond
3a0dd57bb6 Add bio field to user model and update related components: Enhance leaderboard and profile features by including a bio field in user data. Update API routes, UI components, and validation logic to support bio input and display, improving user profiles and leaderboard entries. 2025-12-09 22:00:19 +01:00
Julien Froidefond
16b0437ecb Refactor event fetching and display: Change event retrieval order to descending by date, enhance event data structure to include registration counts, and update UI components to reflect these changes for better user experience. 2025-12-09 21:55:42 +01:00
Julien Froidefond
50a2eaf109 Implement event registration functionality: Add EventRegistration model to Prisma schema, enabling user event registrations. Enhance EventsPageSection component with registration checks, calendar view, and improved event display. Refactor event rendering logic to separate upcoming and past events, improving user experience. 2025-12-09 21:53:10 +01:00
Julien Froidefond
5ae6cde14e Enhance HeroSection component: Implement mouse-following gradient effect for the game title, improving visual interactivity. Update CSS for better font formatting and add a new title animation class for enhanced text styling. 2025-12-09 14:40:02 +01:00
Julien Froidefond
6dc08dc818 Refactor HeroSection component: Remove particle and orb animations to simplify the code and improve performance. Streamline the component structure while maintaining the existing background image functionality. 2025-12-09 14:32:45 +01:00
Julien Froidefond
b8f4672206 Refactor ProfileForm component: Improve code readability by formatting error messages and UI elements. Add default avatar selection feature for user profile customization, enhancing user experience. Update button labels for clarity during avatar upload and password modification. 2025-12-09 14:26:13 +01:00
Julien Froidefond
67131f6470 Refactor page components to use NavigationWrapper and integrate Prisma for data fetching. Update EventsSection and LeaderboardSection to accept props for events and leaderboard data, enhancing performance and user experience. Implement user authentication in ProfilePage and AdminPage, ensuring secure access to user data. 2025-12-09 14:11:47 +01:00
Julien Froidefond
b1f36f6210 Enhance Admin and Profile UI: Update admin page to display user preferences with improved layout and visuals. Add password change functionality to profile page, including form handling and validation. Refactor ImageSelector for better image preview and upload experience. 2025-12-09 14:02:27 +01:00
Julien Froidefond
447ef9d076 Add profile link to Navigation component for user access, enhancing navigation options. 2025-12-09 12:46:29 +01:00
Julien Froidefond
f732eb7385 feat: user admin ui : condensed 2025-12-09 12:40:45 +01:00
Julien Froidefond
d1e94f1402 Update HeroSection buttons to use Next.js Link for navigation to events and leaderboard, enhancing user experience and accessibility. Rename game title in Navigation component to 'Peaksys'. 2025-12-09 08:51:24 +01:00