Skip to content

docs(targets): document the login-button disable target - #27

Draft
Ludovic-Iafrate wants to merge 1 commit into
masterfrom
docs/user-avatar-disable-target
Draft

docs(targets): document the login-button disable target#27
Ludovic-Iafrate wants to merge 1 commit into
masterfrom
docs/user-avatar-disable-target

Conversation

@Ludovic-Iafrate

@Ludovic-Iafrate Ludovic-Iafrate commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Documents the login-button disable target: window.lumapps.disable('login-button') hides the top bar's sign-in entry point for anonymous users, the same way favorites, bookmarks, and contribution-button already work.
  • Never affects the avatar/profile menu shown to a connected user — that element cannot be disabled.
  • Added a "Login button" entry to the Components section of capabilities.md.
  • Added the target to the list of disableable component ids in api.md.

Renamed from user-avatar following review feedback on the lumapps-web PR: UserProfileDropdown renders a login link for unconnected users and the real avatar/menu only once connected, so the target was never actually "the avatar".

⚠️ Merge dependency

Do not merge before the corresponding lumapps-web change is live in production. This documents a capability that does not exist yet at runtime — merging early would advertise a feature customers can't actually use.

Tracking PR: lumapps/lumapps-web#17348

Testing

No manual testing required — documentation-only change.

The top bar's sign-in entry point for anonymous users can be disabled
via window.lumapps.disable('login-button'), same as favorites,
bookmarks, and the contribution button. It never affects the
avatar/profile menu shown to a connected user — that element cannot
be disabled.

Renamed from user-avatar following review feedback: the target only
ever affects the anonymous login link, not an actual avatar.
@Ludovic-Iafrate
Ludovic-Iafrate force-pushed the docs/user-avatar-disable-target branch from 6fad235 to 8b8d6e6 Compare August 13, 2026 00:08
@Ludovic-Iafrate Ludovic-Iafrate changed the title docs(targets): document the user-avatar disable target docs(targets): document the login-button disable target Aug 13, 2026
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