Skip to content

Pu 85 criacao de modal na tela inicial avisando que os dados do usuario serao apagados apos 04 semestres#56

Open
Jaedsonn wants to merge 6 commits intodevelopfrom
PU-85-criacao-de-modal-na-tela-inicial-avisando-que-os-dados-do-usuario-serao-apagados-apos-04-semestres
Open

Pu 85 criacao de modal na tela inicial avisando que os dados do usuario serao apagados apos 04 semestres#56
Jaedsonn wants to merge 6 commits intodevelopfrom
PU-85-criacao-de-modal-na-tela-inicial-avisando-que-os-dados-do-usuario-serao-apagados-apos-04-semestres

Conversation

@Jaedsonn
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Oct 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
proae-frontend Ready Ready Preview Comment Oct 30, 2025 1:51pm

Copy link
Contributor

Copilot AI left a 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 an informational modal for data retention policy and improves error handling in authentication. The changes include adding a new modal component to notify users about data retention, refactoring cookie management logic, and enhancing type safety in the authentication provider.

  • Added InfoModal component to display a data retention notice to users
  • Refactored setCookie function to handle optional and environment-based expiration separately
  • Enhanced optional chaining for safe access to nested user properties

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/components/InfoModal/InfoModal.tsx New modal component displaying data retention policy notice with "don't show again" functionality
src/layouts/ProtectedAluno.tsx Integrated InfoModal component into the student portal layout
src/components/SideBar/sidebar.css Reduced z-index from 1000 to 49 to ensure proper modal layering
src/utils/utils.ts Refactored setCookie to handle days parameter and environment variable separately
src/providers/AuthProvider.tsx Added optional chaining for safe access to nested admin.aprovado property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants