Refactor/change theme atom jotai - #113
Merged
Merged
Conversation
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the theme management system by migrating from React Context to Jotai atoms, removing redundant code and simplifying state management. The changes also include minor UI text corrections and styling improvements.
- Replaced React Context-based theme management with Jotai atoms for better performance and simpler state management
- Updated UI text labels for better clarity (Login/Register page headings)
- Made minor styling improvements including cursor pointer addition and aria-label updates
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/context/atoms/themeApp.atoms.jsx | New Jotai atoms for theme management with localStorage integration |
| frontend/src/context/ThemeContext.jsx | Removed entire React Context implementation |
| frontend/src/main.jsx | Removed ThemeProvider wrapper from app root |
| frontend/src/components/Logo/index.jsx | Updated to use Jotai theme atom instead of Context |
| frontend/src/components/Layout/DropdownMenu/DropdownMenuNav/SwitchTheme/index.jsx | Migrated from useTheme hook to Jotai atoms |
| frontend/src/components/forms/LoginForm.jsx | Restructured form layout and updated link text |
| frontend/src/pages/Login/index.jsx | Changed heading text from "Crie a sua conta" to "Acesse sua conta" |
| frontend/src/pages/Register/index.jsx | Changed heading text from "Cadastre a sua conta" to "Crie a sua conta" |
| frontend/src/pages/Groups/GroupDetails/GroupSettings/index.jsx | Added cursor-pointer class to button |
| frontend/src/App.jsx | Removed empty className attribute |
| frontend/package.json | Added jotai dependency |
Alan-oliveir
approved these changes
Aug 12, 2025
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.



Refatorando o "theme.atom.js" removendo redundâncias.