Skip to content

Fix missing menu - use new auth#700

Merged
bourgeoa merged 4 commits into
stagingfrom
fix/missing-menu
Jun 21, 2026
Merged

Fix missing menu - use new auth#700
bourgeoa merged 4 commits into
stagingfrom
fix/missing-menu

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

use new auth for displaying side menu. isLoggedIn was no longer a dependable way of checking auth state, needed checkuser, also solid-logic is now async.

@SharonStrats SharonStrats requested review from bourgeoa and Copilot June 21, 2026 03:49
@SharonStrats SharonStrats self-assigned this Jun 21, 2026
@SharonStrats SharonStrats changed the base branch from main to staging June 21, 2026 03:50

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

This PR updates the left-side navigation menu’s authentication detection to align with newer solid-logic behavior, where authSession.info.isLoggedIn is no longer a reliable indicator and auth state may require an async refresh via checkUser().

Changes:

  • Add an async auth refresh helper (refreshAuthStateFromSession) that calls authn.checkUser() before determining menu visibility.
  • Ensure auth state is refreshed during menu initialization and on login/logout/sessionRestore events before re-rendering the menu.

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

Comment thread src/mainPage/menu.ts
SharonStrats and others added 3 commits June 21, 2026 13:57
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@bourgeoa bourgeoa merged commit 6614821 into staging Jun 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants