feat: implementation of logout functionality#968
Merged
Conversation
…unctionality; adjust PanelFooter and PanelLeft styles
Contributor
There was a problem hiding this comment.
Pull request overview
Adds centralized authentication state (via Azure EasyAuth) and surfaces current user identity + sign-out UI in the left panel footer, alongside some layout tweaks to improve sidebar alignment and footer stacking.
Changes:
- Introduces a Redux thunk (
fetchCurrentUser) to load EasyAuth user identity into global app state and dispatches it on app mount. - Replaces the legacy user card in the left panel footer with a new
LoginButtonuser menu (includes sign-out). - Adjusts left panel/footer styling and footer z-index to improve layout/stacking.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/App/src/styles/PlanPanelLeft.css | Adjusts sidebar layout alignment/padding. |
| src/App/src/store/slices/appSlice.ts | Adds auth fields + thunk to fetch EasyAuth user info into Redux. |
| src/App/src/components/content/PlanPanelLeft.tsx | Removes legacy user info card and uses new login/user control in footer. |
| src/App/src/components/auth/LoginButton.tsx | New user avatar/menu UI with sign-out behavior. |
| src/App/src/commonComponents/components/Panels/PanelLeft.tsx | Ensures footer overlays correctly via z-index. |
| src/App/src/commonComponents/components/Panels/PanelFooter.tsx | Tweaks footer padding to match new layout. |
| src/App/src/App.tsx | Dispatches fetchCurrentUser() on initial mount. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…lay logic; enhance fetchCurrentUser to handle user info retrieval and error management
Roopan-Microsoft
approved these changes
May 8, 2026
Roopan-Microsoft
approved these changes
May 8, 2026
|
🎉 This PR is included in version 4.2.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Purpose
This pull request adds authentication awareness and user identity display to the sidebar, refactors user info handling, and improves the layout of the left panel and its footer. Authentication and User Info Handling
These changes centralize authentication state, improve the user experience by showing real user info, and modernize the sidebar's appearance.
Does this introduce a breaking change?
How to Test
This pull request introduces authentication improvements and UI updates, primarily replacing the legacy user card with a new login and user menu, and integrating Azure EasyAuth user info into the global app state. It also includes style adjustments for better layout consistency.
These changes modernize authentication handling, improve user experience, and clean up legacy code.
What to Check
Verify that the following are valid
Check whether signed in user is able to sign out