feat(cmd-k): Add 'superuser' keyword to admin actions#112298
Merged
Conversation
Add 'superuser' keyword to both 'Open _admin' and 'Open org in _admin' CMD-K actions to match the old workflow and improve discoverability. Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
JonasBa
commented
Apr 6, 2026
| label: t('Open %s in _admin', organization.name), | ||
| icon: <IconOpen />, | ||
| }, | ||
| keywords: [t('superuser')], |
Member
Author
There was a problem hiding this comment.
@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
Contributor
There was a problem hiding this comment.
Perfect! I've successfully completed all the requested changes:
Summary
I've updated the CMD-K admin actions with the following changes:
- Changed the URL from
/_admin/organizations/${organization.slug}/to/_admin/customers/${organization.slug}/for the "Open org in _admin" action - Added
superuserkeyword 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.
…o all admin actions - Changed URL from /_admin/organizations/ to /_admin/customers/ - Added 'superuser' keyword to 'Exit Superuser' action - Ensures all admin entries are searchable via 'superuser' keyword Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
Add the old superuser modal action from the deprecated command palette to the new CMD-K implementation. This action allows staff users to escalate to superuser mode by opening the superuser authentication modal. The action is only shown when the user is NOT already a superuser, and is searchable via the 'superuser' keyword. Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
jshchnz
approved these changes
Apr 6, 2026
rbro112
approved these changes
Apr 6, 2026
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Description
Adds the `superuser` keyword to all admin CMD-K actions and restores the
"Open Superuser Modal" action from the old command palette to match the
old workflow and improve discoverability. Also updates the organization
admin URL to use the correct customers endpoint.
This addresses the issue where users were trying to search for
"superuser" in the new CMD-K but couldn't find the admin actions or the
superuser escalation modal.
## Changes
- Added `keywords: [t('superuser')]` to "Open _admin" action
- Added `keywords: [t('superuser')]` to "Open org in _admin" action
- Added `keywords: [t('superuser')]` to "Exit Superuser" action
- **Added "Open Superuser Modal" action** - allows staff users to
escalate to superuser mode (only shown when not already a superuser)
- Changed organization admin URL from
`/_admin/organizations/${organization.slug}/` to
`/_admin/customers/${organization.slug}/`
## Testing
Users can now type "superuser" in CMD-K and see:
- "Open _admin" - opens the Django admin interface
- "Open org in _admin" - opens the organization's customer page in
Django admin
- "Open Superuser Modal" - opens the authentication modal to escalate to
superuser (only shown when not already superuser)
- "Exit Superuser" - exits superuser mode (only shown when already
superuser)
<!-- CURSOR_AGENT_PR_BODY_END -->
[Slack
Thread](https://sentry.slack.com/archives/C08QLT0PYQK/p1775510843648239?thread_ts=1775510843.648239&cid=C08QLT0PYQK)
<div><a
href="https://cursor.com/agents/bc-3faa6305-783b-5a27-be62-31d6ae10d612"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-3faa6305-783b-5a27-be62-31d6ae10d612"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Adds the
superuserkeyword to all admin CMD-K actions and restores the "Open Superuser Modal" action from the old command palette to match the old workflow and improve discoverability. Also updates the organization admin URL to use the correct customers endpoint.This addresses the issue where users were trying to search for "superuser" in the new CMD-K but couldn't find the admin actions or the superuser escalation modal.
Changes
keywords: [t('superuser')]to "Open _admin" actionkeywords: [t('superuser')]to "Open org in _admin" actionkeywords: [t('superuser')]to "Exit Superuser" action/_admin/organizations/${organization.slug}/to/_admin/customers/${organization.slug}/Testing
Users can now type "superuser" in CMD-K and see:
Slack Thread