Skip to content

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

Merged
JonasBa merged 1 commit intomasterfrom
jb/cmdk/admin
Apr 6, 2026
Merged

feat(cmdk): Add admin actions group for staff users#112244
JonasBa merged 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
@JonasBa JonasBa marked this pull request as ready for review April 6, 2026 15:32
@JonasBa JonasBa requested a review from a team as a code owner April 6, 2026 15:32
@JonasBa JonasBa merged commit 3a2050c into master Apr 6, 2026
74 checks passed
@JonasBa JonasBa deleted the jb/cmdk/admin branch April 6, 2026 15:32
george-sentry pushed a commit that referenced this pull request Apr 9, 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

Co-authored-by: Claude Sonnet 4 <noreply@anthropic.com>
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