-
Notifications
You must be signed in to change notification settings - Fork 0
Improvement/interface 2 #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…namic color modes
…to use the lib folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements theme support with light/dark mode toggle and refactors the codebase structure by moving constants to a centralized location. Key changes include adding color mode support across components, reorganizing validation and category constants, and improving UI consistency.
- Added light/dark theme toggle with Chakra UI's color mode system
- Refactored constants from
/constto/lib/constwith new helper functions - Updated multiple components to use dynamic colors based on theme mode
Reviewed Changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/styles/theme.ts | Configured theme with dark mode as default and dynamic color styles |
| src/lib/const/categories.ts | Added helper functions and types for category management |
| src/lib/const/validation.ts | Moved validation constants to centralized location |
| src/pages/auth/signup.tsx | Updated imports and replaced execute() with execute?.() for recaptcha |
| src/components/Header/Profile.tsx | Added theme toggle button in user menu |
| src/features/user/profile/index.tsx | Applied dynamic theme colors and removed unused icon import |
| src/pages/spots/index.tsx | Updated to use hardcoded dark mode colors instead of dynamic colors |
| src/features/user/edit/index.tsx | Applied consistent heading style but uses hardcoded dark colors |
| src/components/StoriesSwiper/index.tsx | Replaced placeholder images and removed unused button functionality |
| src/components/CardUser/index.tsx | Improved card styling with theme-aware colors and consolidated social media functions |
| src/components/Sidebar/SidebarNav.tsx | Moved "Cadastro geral" link to authenticated user section with dynamic colors |
| src/features/skatistas/index.tsx | Applied theme-aware background colors |
| src/features/stories/home/index.tsx | Applied dynamic title background color |
| src/features/login/modal/login.tsx | Added theme-aware colors for buttons and backgrounds |
| src/components/Footer/index.tsx | Applied theme-aware colors to footer elements |
| src/types/usersBasics.type.ts | Added id field to category object |
| src/types/UserBasicsWithPagination.type.ts | Added id field to category object |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…t color for improved styling
…n Header component
… in Header component
|
This pull request has been deployed to Vercel.
|
No description provided.