Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {ProjectAvatar} from '@sentry/scraps/avatar';

import {addLoadingMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
import {openInviteMembersModal} from 'sentry/actionCreators/modal';
import {openSudo} from 'sentry/actionCreators/sudoModal';
import {useCommandPaletteActionsRegister} from 'sentry/components/commandPalette/context';
import type {
CMDKQueryOptions,
Expand Down Expand Up @@ -350,27 +351,46 @@ export function useGlobalCommandPaletteActions() {
label: t('Open _admin'),
icon: <IconOpen />,
},
keywords: [t('superuser')],
onAction: () => window.open('/_admin/', '_blank', 'noreferrer'),
},
{
display: {
label: t('Open %s in _admin', organization.name),
icon: <IconOpen />,
},
keywords: [t('superuser')],
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@cursoragent modify the line below to use /_admin/customers/$organization.slug and add the superuser keyword and make sure the superuser keyword is added to all admin entries

Copy link
Copy Markdown
Contributor

@cursor cursor bot Apr 6, 2026

Choose a reason for hiding this comment

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

Perfect! I've successfully completed all the requested changes:

Summary

I've updated the CMD-K admin actions with the following changes:

  1. Changed the URL from /_admin/organizations/${organization.slug}/ to /_admin/customers/${organization.slug}/ for the "Open org in _admin" action
  2. Added superuser keyword to ALL admin entries, including:
    • "Open _admin" ✓ (already had it)
    • "Open org in _admin" ✓ (already had it)
    • "Exit Superuser" ✓ (newly added)

All admin actions are now searchable via the "superuser" keyword, and the organization admin link now correctly points to the customers endpoint. The changes passed all linting checks and have been pushed to the PR.

Open in Web Open in Cursor 

onAction: () =>
window.open(
`/_admin/organizations/${organization.slug}/`,
`/_admin/customers/${organization.slug}/`,
'_blank',
'noreferrer'
),
},
...(isActiveSuperuser()
? []
: [
{
display: {
label: t('Open Superuser Modal'),
icon: <IconLock locked />,
},
keywords: [t('superuser')],
onAction: () =>
openSudo({
isSuperuser: true,
needsReload: true,
}),
},
]),
...(isActiveSuperuser()
? [
{
display: {
label: t('Exit Superuser'),
icon: <IconLock locked={false} />,
},
keywords: [t('superuser')],
onAction: () => exitSuperuser(),
},
]
Expand Down
Loading