Skip to content

refactor: add jotai and change titles on login page - #112

Merged
jv-ramos merged 1 commit into
developfrom
refactor/add-jotai-and-change-login-page
Aug 13, 2025
Merged

refactor: add jotai and change titles on login page#112
jv-ramos merged 1 commit into
developfrom
refactor/add-jotai-and-change-login-page

Conversation

@cleytonjesus07

@cleytonjesus07 cleytonjesus07 commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

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:

  • Migra o gerenciamento de temas do React Context para átomos do Jotai, simplificando o tratamento de estado
  • Atualiza os títulos das páginas de login e registro para maior clareza e consistência
  • Melhora o layout dos formulários e aprimoramentos de estilo em vários componentes

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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

Comment thread frontend/src/components/forms/LoginForm.jsx
Comment thread frontend/src/context/atoms/themeApp.atoms.jsx
Comment thread frontend/src/components/Logo/index.jsx
Comment thread frontend/src/components/Logo/index.jsx
@jv-ramos
jv-ramos merged commit 5d063fe into develop Aug 13, 2025
1 check passed
@Alan-oliveir
Alan-oliveir deleted the refactor/add-jotai-and-change-login-page branch August 13, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants