Skip to content

feat(cmdk): Add Open in Production and Open in Development actions#116242

Merged
JonasBa merged 2 commits into
masterfrom
feat/cmdk-open-in-environment
May 26, 2026
Merged

feat(cmdk): Add Open in Production and Open in Development actions#116242
JonasBa merged 2 commits into
masterfrom
feat/cmdk-open-in-environment

Conversation

@JonasBa
Copy link
Copy Markdown
Member

@JonasBa JonasBa commented May 26, 2026

Add two global command palette actions for quickly switching between
environments while preserving the current path and search string.

  • Open in Production: available on the local dev server (NODE_ENV === 'development')
    and Vercel preview deploys (DEPLOY_PREVIEW_CONFIG). Opens the current page on
    https://{org}.sentry.io.
  • Open in Development: available in production (NODE_ENV === 'production') for
    staff users (user.isStaff). Opens the current page on
    https://{org}.dev.getsentry.net:7999.

Both actions preserve the current pathname and search params — only the origin changes.

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>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 26, 2026
@JonasBa JonasBa marked this pull request as ready for review May 26, 2026 21:22
@JonasBa JonasBa requested a review from a team as a code owner May 26, 2026 21:22
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.58%

{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')]}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don't really need translations

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 drop the translations from the keywords in both prod and dev cmdk actions

Copy link
Copy Markdown
Contributor

@cursor cursor Bot May 26, 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 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.

Open in Web Open in Cursor 

Co-authored-by: Jonas <JonasBa@users.noreply.github.com>
@JonasBa JonasBa merged commit 763211d into master May 26, 2026
71 checks passed
@JonasBa JonasBa deleted the feat/cmdk-open-in-environment branch May 26, 2026 21:34
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.

3 participants