spotlight icon indicating copy to clipboard operation
spotlight copied to clipboard

Clicks between spans will mess up router with escape key

Open lforst opened this issue 2 years ago • 1 comments

I clicked between spans and then pressed ESC and it moved me between the spans again. Ideally, we close the drawer if esc is pressed.

https://github.com/getsentry/spotlight/assets/8118419/7619d67e-12c2-447d-bbb9-0c19011a1041

lforst avatar Dec 18 '23 15:12 lforst

Hi @lforst the reason why clicking the escape spandetails sidepanel is not closing is that it's a route (/traces/:traceId/:spanId)and in the spotlight when escape is clicked, we navigate to the previous route in history.

the solution which we can implement here is to remove the spanId from the route(not treating the sidepanel as a page) and open the sidepanel based on the active span state.

Also, with this commit - https://github.com/getsentry/spotlight/commit/14eadb97f34d3430e201cc3a29170bf22f02e4ff we added a UX of treating sidepanel as a dialogue box in which on clicking outside of panel close the sidepanel

Shubhdeep12 avatar Dec 21 '23 17:12 Shubhdeep12

Hi, closing this as the issue looks resolved.

Shubhdeep12 avatar Nov 10 '24 03:11 Shubhdeep12