-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #102472 - feat: Consolidate adjacent traces & move next to search #13
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
base: base_pr_102472_20251204_9590
Are you sure you want to change the base?
[CLEAN] Synthetic Benchmark PR #102472 - feat: Consolidate adjacent traces & move next to search #13
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
Benchmark PR getsentry#102472
Type: Clean (correct implementation)
Original PR Title: feat: Consolidate adjacent traces & move next to search
Original PR Description: ## Description
This is a follow up to getsentry#96510. The new approach is that the buttons are close to the other interaction buttons, so the user doesn't have to go and find this at the very bottom of the page. Since the search and the "Open in Explore" are already trace related, the user doesn't have to switch "context" and the buttons wouldn't need any additional text in it, except the tooltip if users are curious what it is.
Significant changes
useFindPreviousTraceanduseFindNextTracehave been consolidated intouseFindAdjacentTrace, which reduces code duplication📹
Original PR URL: getsentry#102472
PR Type
Enhancement
Description
Consolidate
useFindNextTraceanduseFindPreviousTraceinto unifieduseFindAdjacentTracehookMove trace navigation buttons to toolbar with shared tooltip and ButtonBar component
Simplify button rendering using
LinkButtoncomponent with icon and aria-labelExtract trace links navigation logic into dedicated
TraceLinksNavigationcomponentDiagram Walkthrough
File Walkthrough
useFindLinkedTraces.ts
Consolidate adjacent trace finding logicstatic/app/views/performance/newTraceDetails/traceLinksNavigation/useFindLinkedTraces.ts
useFindNextTraceanduseFindPreviousTraceinto singleuseFindAdjacentTracefunctionadjacentTrace*prefix for both directionsconditions
available,isLoading,id, andtracefieldstraceLinkNavigationButton.tsx
Simplify button rendering with LinkButton componentstatic/app/views/performance/newTraceDetails/traceLinksNavigation/traceLinkNavigationButton.tsx
LinkButtonfrom scraps
logic
useFindAdjacentTracehook instead of two separate hooksiconDirectionandariaLabelcomputed values based on directiontraceLinksNavigation.tsx
Extract trace links navigation into dedicated componentstatic/app/views/performance/newTraceDetails/traceLinksNavigation/traceLinksNavigation.tsx
ButtonBarwith shared tooltip
button styling
traceWaterfall.tsx
Move trace navigation buttons to toolbarstatic/app/views/performance/newTraceDetails/traceWaterfall.tsx
showLinkedTracesstate logic and move toTraceLinksNavigationcomponent
TraceLinksNavigationTraceLinkNavigationButtonandTraceLinkNavigationButtonPlaceHolderimportsTraceLinksNavigationContainerstyled componentbottom