Skip to content

feat(cmdk): Add admin actions group for staff users#112244

Draft
JonasBa wants to merge 1 commit intomasterfrom
jb/cmdk/admin
Draft

feat(cmdk): Add admin actions group for staff users#112244
JonasBa wants to merge 1 commit intomasterfrom
jb/cmdk/admin

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented Apr 3, 2026

Adds a new 'Admin' group to the command palette, visible only to Sentry staff (user.isStaff). The group appears after the 'Go to...' section and contains:

  • Open _admin — opens /_admin/ in a new tab
  • Open <org> in _admin — opens the org's admin page in a new tab
  • Exit Superuser — only shown when a superuser session is active (isActiveSuperuser()); calls DELETE /auth/superuser/ via useMutation and reloads the page

Add a new 'Admin' group to the command palette that is only visible
to staff users. The group appears after the 'Go to...' section and
includes three actions:

- Open _admin: opens /_admin/ in a new tab
- Open <org> in _admin: opens the org admin page in a new tab
- Exit Superuser: shown only when a superuser session is active,
  calls DELETE /auth/superuser/ via useMutation and reloads the page

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 3, 2026
@JonasBa JonasBa requested a review from rbro112 April 3, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants