refactor: add jotai and change titles on login page - #112
Merged
Conversation
|
Alan-oliveir
approved these changes
Aug 12, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a state management refactor by replacing React Context with Jotai atoms for theme management, while also improving the user experience with clearer titles and better UI organization.
- Migrates theme management from React Context to Jotai atoms for simpler state handling
- Updates login and register page titles for better clarity and consistency
- Enhances form layout and styling improvements across various components
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/package.json | Adds Jotai dependency for state management |
| frontend/src/context/atoms/themeApp.atoms.jsx | Creates new Jotai atoms for theme state management |
| frontend/src/context/ThemeContext.jsx | Removes legacy React Context theme implementation |
| frontend/src/main.jsx | Removes ThemeProvider wrapper as it's replaced by Jotai |
| frontend/src/pages/Login/index.jsx | Updates page title from "Crie a sua conta" to "Acesse sua conta" |
| frontend/src/pages/Register/index.jsx | Updates page title from "Cadastre a sua conta" to "Crie a sua conta" |
| frontend/src/components/forms/LoginForm.jsx | Restructures form layout and improves registration link text |
| frontend/src/components/Logo/index.jsx | Migrates from React Context to Jotai for theme detection |
| frontend/src/components/Layout/DropdownMenu/DropdownMenuNav/SwitchTheme/index.jsx | Updates theme toggle to use Jotai atoms |
| frontend/src/pages/Groups/GroupDetails/GroupSettings/index.jsx | Adds cursor-pointer class to button |
| frontend/src/App.jsx | Removes empty className attribute |
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.



Esta PR implementa uma refatoração do gerenciamento de estado substituindo o React Context por átomos do Jotai para o gerenciamento de temas, além de melhorar a experiência do usuário com títulos mais claros e uma organização de UI mais eficiente.
Principais mudanças: