Skip to content

feat: ship sign in / register in anonymous header menu by default#263

Merged
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/anonymous-menu
May 14, 2026
Merged

feat: ship sign in / register in anonymous header menu by default#263
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/anonymous-menu

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

@arbrandes arbrandes commented May 14, 2026

Description

Fixes #264.

The anonymous header menu wraps an inner slot whose only registrant was a dev-only devUserApp, so any non-dev site configuration produced an empty AnonymousMenu shell with no visible buttons. This moves LoginButton and RegisterButton registration onto headerApp so anonymous users see sign in / register out of the box, and removes the now-redundant devUserApp. The buttons are also restyled to match frontend-component-header's DesktopLoggedOutItems: Sign In as a text link, Register as outline-primary.

LLM usage notice

Built with assistance from Claude.

The header.anonymousMenu.v1 slot was only populated by the dev-only
devUserApp, so any non-dev site config produced an empty AnonymousMenu
wrapper. Register LoginButton and RegisterButton on headerApp directly
and drop devUserApp. Restyle to match frontend-component-header's
treatment: Sign In as a text link, Register as outline-primary.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes arbrandes force-pushed the arbrandes/anonymous-menu branch from fa4f2f4 to ab44443 Compare May 14, 2026 10:27
@brian-smith-tcril
Copy link
Copy Markdown
Contributor

The image @diana-villalvazo-wgu posted on slack

image

shows "Sign in" as primary, and "Register" as outline-primary. I just want to verify that using the link variant for `Sign in" is intentional here.

Comment thread shell/header/anonymous-menu/LoginButton.tsx
@arbrandes
Copy link
Copy Markdown
Contributor Author

@brian-smith-tcril, @diana-villalvazo-wgu, it's intentional. We're going with what frontend-app-catalog - the most modern MFE - does with the header.

Copy link
Copy Markdown
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going with what frontend-app-catalog - the most modern MFE - does with the header.

Makes sense. That's the one that people are supposed to see when logged out (as opposed to being redirected to authn), so matching that is perfect!

@arbrandes arbrandes merged commit ad154db into openedx:main May 14, 2026
5 checks passed
@arbrandes arbrandes deleted the arbrandes/anonymous-menu branch May 14, 2026 22:18
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.48 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anonymous header menu has no default sign in / register buttons

5 participants