Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes dark mode compatibility by upgrading Material-UI (MUI) to version 7 and implementing a comprehensive theme system with proper color scheme support for both light and dark modes.
Changes:
- Upgraded MUI packages from v5 to v7 and React from v18 to v19
- Created a centralized theme configuration with dedicated color schemes for light and dark modes
- Migrated deprecated MUI component props (
InputProps/InputLabelPropstoslotProps)
Reviewed changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| client/src/theme/theme.ts | New theme configuration file defining color palettes and typography for both light and dark modes |
| client/src/styles/index.css | Removed CSS-based theme variables and styling now handled by MUI theme |
| client/src/main.tsx | Imported centralized theme instead of inline theme definition |
| client/src/features/trainee-profile/profile/components/TraineeProfile.tsx | Updated to use theme-aware background colors |
| client/src/features/trainee-profile/profile/ProfileSidebar.tsx | Replaced CSS variable with theme color token |
| client/src/features/trainee-profile/interactions/components/InteractionsList.tsx | Updated alternating row colors to use theme tokens |
| client/src/features/trainee-profile/interactions/InteractionsInfo.tsx | Removed hardcoded color prop to use theme default |
| client/src/features/trainee-profile/employment/EmploymentInfo.tsx | Removed hardcoded color prop to use theme default |
| client/src/features/trainee-profile/education/tests/TestsComponent.tsx | Removed hardcoded color prop to use theme default |
| client/src/features/trainee-profile/education/strikes/StrikesList.tsx | Updated alternating row colors to use theme tokens |
| client/src/features/trainee-profile/education/strikes/StrikesComponent.tsx | Removed hardcoded color prop to use theme default |
| client/src/features/trainee-profile/education/EducationInfo.tsx | Removed hardcoded color prop to use theme default |
| client/src/features/trainee-profile/contact/ContactInfo.tsx | Migrated TextField props from deprecated API to new slotProps syntax |
| client/src/features/search/components/SearchResultsList.tsx | Updated text color to use theme token for proper dark mode support |
| client/src/features/search/components/SearchBar.tsx | Added background color styling and migrated to slotProps API |
| client/src/features/search/SearchPage.tsx | Converted CSS classes to MUI Box components with theme-aware styling |
| client/src/features/dashboard/components/DashboardPieChart.tsx | Added type assertion to fix TypeScript error with arcLabel callback |
| client/src/features/dashboard/DashboardPage.tsx | Fixed JSX syntax error and added theme-aware background color |
| client/package.json | Upgraded MUI packages to v7, React to v19, and related type definitions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0b471b5 to
796187f
Compare
Member
|
Looks good. Tested on both light and dark modes. No major issues. |
stasel
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed that dark mode bug by upgrading MUI and applying a theme :)
I am not a designer 😬 The colors should probably be tweaked.