Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(source-map-debugger-modal): Display different copies based on the release userAgent #86967

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

priscilawebdev
Copy link
Member

This PR updates the code to show custom messages in the Sentry debugger modal based on the user agent in the release. If the user agent isn't available, a more general message will be shown, as it is in production.

In the future, it would be helpful always to have the tool used to upload sourcemaps available - maybe this is something we can implement in the sentry-cli - but for now, we're using the user agent in the release to show a more specific message to the user.

Before
image

After
Screenshot 2025-03-13 at 06 42 43

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 13, 2025
…r-agent-of-available' of github.com:getsentry/sentry into priscila/ref/debugger-modal/display-copies-based-on-user-agent-of-available
@priscilawebdev priscilawebdev marked this pull request as ready for review March 13, 2025 07:41
@priscilawebdev priscilawebdev requested a review from a team as a code owner March 13, 2025 07:41
@priscilawebdev priscilawebdev requested review from a team, smeubank and lforst March 13, 2025 07:41
@smeubank
Copy link
Member

in this example it shows vite and sentry-cli? Shouldn't it only show one? It looks like the logic is based on the user-agent right?

image

@priscilawebdev
Copy link
Member Author

priscilawebdev commented Mar 13, 2025

@smeubank we show /render them separately, and based on my redash queries, we often have both 🤔 for the screenshot I had to manually set true in a few places, so it is not 100% accurate if that makes sense - just did that to show how the copies look like

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.

Show tool-specific copies and links based on user agent
2 participants