Skip to content

Feature/navbar auth state #30

Merged
merged 3 commits into from
Apr 9, 2026
Merged

Feature/navbar auth state #30

merged 3 commits into from
Apr 9, 2026

Conversation

mariukle
Copy link
Member

@mariukle mariukle commented Apr 9, 2026

Updates the navbar to reflect the user's login status and adds logout functionality.

Changes:
Navbar "Sign In" button changes to "My Profile" when user is logged in
Clicking "My Profile" navigates to profile page
Added logout button functionality in MyProfile page
Navbar updates immediately after login and logout
Added PROFILE case to setActivePage() in NavbarController
Added MyProfileController to NavigationAware pattern

How it works:
updateAuthButton() is called after every page load in MainController
SessionManager is used to check login status
Logout clears session and navigates to Home

@mariukle mariukle added the GUI label Apr 9, 2026
@mariukle mariukle self-assigned this Apr 9, 2026
@mariukle mariukle merged commit 23325b5 into DEV Apr 9, 2026
@mariukle mariukle deleted the feature/navbar-auth-state branch April 9, 2026 10:24
Sign in to join this conversation on GitHub.
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant