Skip to content

Show account page and logout when logged in without a nickname#256

Merged
JacobCoffee merged 1 commit intomainfrom
fix/account-loggedin-state
Apr 18, 2026
Merged

Show account page and logout when logged in without a nickname#256
JacobCoffee merged 1 commit intomainfrom
fix/account-loggedin-state

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

@JacobCoffee JacobCoffee commented Apr 18, 2026

Summary

  • Gate the account hero and action block on `loggedIn` instead of `nickname` so a user with no nickname still lands on their account page instead of being bounced back to `/login`.
  • Add a Logout item in the side menu that shows whenever `loggedIn` is true.
  • Fall back to email (or "Account") for the displayed name when no nickname is set, and hide the email sub-line in that case.

Test plan

  • Log in as a user with a nickname → account page shows nickname + email, Logout appears in menu
  • Log in as a user without a nickname → account page shows email (or "Account") and does not redirect to login; Logout appears in menu
  • Logged out → account page still redirects to `/login`; Logout menu item is hidden
  • Tap Logout → user is signed out and navigation reflects the logged-out state

Gate the account hero and action block on loggedIn instead of nickname, so
a user who signed in but has no nickname still lands on their account page
rather than being bounced back to the login screen. Add a Logout menu item
that appears whenever the user is logged in.
@JacobCoffee
Copy link
Copy Markdown
Member Author

was due to bug where lgoout didnt show if user didnt have it set

@JacobCoffee JacobCoffee merged commit d787c85 into main Apr 18, 2026
2 checks passed
@JacobCoffee JacobCoffee deleted the fix/account-loggedin-state branch April 18, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant