Skip to content

feat: implementation of logout functionality#968

Merged
Roopan-Microsoft merged 2 commits into
dev-v4from
LogoutFunctionality_Akhileswar
May 8, 2026
Merged

feat: implementation of logout functionality#968
Roopan-Microsoft merged 2 commits into
dev-v4from
LogoutFunctionality_Akhileswar

Conversation

@Akhileswara-Microsoft

Copy link
Copy Markdown
Contributor

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?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

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

…unctionality; adjust PanelFooter and PanelLeft styles

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

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 LoginButton user 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.

Comment thread src/App/src/components/auth/LoginButton.tsx Outdated
Comment thread src/App/src/components/auth/LoginButton.tsx
Comment thread src/App/src/components/auth/LoginButton.tsx Outdated
Comment thread src/App/src/store/slices/appSlice.ts Outdated
Comment thread src/App/src/store/slices/appSlice.ts
…lay logic; enhance fetchCurrentUser to handle user info retrieval and error management
@Roopan-Microsoft Roopan-Microsoft merged commit 08e30c9 into dev-v4 May 8, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants