Conversation
…do modal informativo sobre a politica de exclusão de dados
…ização do modal de informativo
…m o parâmetro opcional days
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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
InfoModalcomponent to display a data retention notice to users - Refactored
setCookiefunction 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.
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.
No description provided.