feat(cmdk): Add Open in Production and Open in Development actions#116242
Merged
Conversation
Add two global command palette actions for quickly switching between
environments while preserving the current path and search string.
- "Open in Production" is available on local dev server and Vercel
preview deploys, opens the current page on {org}.sentry.io
- "Open in Development" is available in production for staff users,
opens the current page on {org}.dev.getsentry.net:7999
Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.58% |
scttcper
approved these changes
May 26, 2026
| {NODE_ENV === 'production' && user.isStaff && ( | ||
| <CMDKAction | ||
| display={{label: t('Open in Development'), icon: <IconOpen />}} | ||
| keywords={[t('development'), t('dev'), t('dev-ui'), t('localhost'), t('local')]} |
Member
There was a problem hiding this comment.
don't really need translations
Member
Author
There was a problem hiding this comment.
@cursoragent drop the translations from the keywords in both prod and dev cmdk actions
Contributor
There was a problem hiding this comment.
Perfect! I've successfully removed the translation calls from the keywords in both the "Open in Production" and "Open in Development" command palette actions.
Changes made:
- Removed
t()wrapper from keywords in the "Open in Production" action: changed[t('production'), t('prod'), t('live')]to['production', 'prod', 'live'] - Removed
t()wrapper from keywords in the "Open in Development" action: changed[t('development'), t('dev'), t('dev-ui'), t('localhost'), t('local')]to['development', 'dev', 'dev-ui', 'localhost', 'local']
The changes have been committed and pushed to the feat/cmdk-open-in-environment branch. The keywords don't need translation since they're used for search matching, not display to users.
Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
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.


Add two global command palette actions for quickly switching between
environments while preserving the current path and search string.
NODE_ENV === 'development')and Vercel preview deploys (
DEPLOY_PREVIEW_CONFIG). Opens the current page onhttps://{org}.sentry.io.NODE_ENV === 'production') forstaff users (
user.isStaff). Opens the current page onhttps://{org}.dev.getsentry.net:7999.Both actions preserve the current pathname and search params — only the origin changes.