-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #102472 - feat: Consolidate adjacent traces & move next to search #14
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?
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: Corrupted (contains bugs)
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 unifieduseFindAdjacentTracehookSimplify trace navigation button component using
LinkButtonfrom scraps libraryExtract trace links navigation into dedicated
TraceLinksNavigationcomponent with shared tooltipMove trace navigation buttons from bottom of page to toolbar near search and explore buttons
Diagram Walkthrough
File Walkthrough
useFindLinkedTraces.ts
Consolidate adjacent trace finding logicstatic/app/views/performance/newTraceDetails/traceLinksNavigation/useFindLinkedTraces.ts
useFindNextTraceanduseFindPreviousTrace) into singleuseFindAdjacentTracehookadjacentTraceprefix instead ofnextTrace/previousTracefor consistencyand enabled conditions
sampledfield and using consistentstructure for both directions
useMemowrapper for return value to optimize performancetraceLinkNavigationButton.tsx
Simplify button component with LinkButtonstatic/app/views/performance/newTraceDetails/traceLinksNavigation/traceLinkNavigationButton.tsx
LinkButtonfrom@sentry/scraps/buttonlibraryuseFindAdjacentTracehook instead oftwo separate hooks
useMemofor timestamp andicon direction
traceLinksNavigation.tsx
New component for trace links navigationstatic/app/views/performance/newTraceDetails/traceLinksNavigation/traceLinksNavigation.tsx
and button bar
traces
ButtonBarfrom scraps library for consistent button groupingtraceWaterfall.tsx
Relocate trace navigation to toolbarstatic/app/views/performance/newTraceDetails/traceWaterfall.tsx
search and explore buttons
TraceLinksNavigationContainerwithTraceLinksNavigationcomponent in toolbar
component
component