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

fix(insights): Close span samples panel when navigating to a trace view #83699

Merged

Conversation

gggritso
Copy link
Member

Right now, clicking on a span ID in the panel keeps the panel open, and navigates to the trace view. Closing the panel then calls the onClose callback, and sometimes clobbers the URL.

Navigating to the sample view should close the panel, this PR adds that check. This is a hotfix, the proper solution is to make the navigation behaviour more robust, probably by rendering the panel view at a /samples/ sub-route, which is easier to detect on navigation.

- close panel unless _all_ required params are present
- close panel if landing on the trace view
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 20, 2025
@gggritso gggritso marked this pull request as ready for review January 20, 2025 19:56
@gggritso gggritso requested a review from a team as a code owner January 20, 2025 19:56
@gggritso gggritso merged commit 09c4240 into master Jan 20, 2025
42 checks passed
@gggritso gggritso deleted the fix/insights/close-samples-panel-when-viewing-sample branch January 20, 2025 21:22
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
…ew (#83699)

Right now, clicking on a span ID in the panel keeps the panel open, and
navigates to the trace view. Closing the panel then calls the `onClose`
callback, and sometimes clobbers the URL.

Navigating to the sample view should close the panel, this PR adds that
check. This is a hotfix, the proper solution is to make the navigation
behaviour more robust, probably by rendering the panel view at a
`/samples/` sub-route, which is easier to detect on navigation.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants