@@ -40,6 +40,7 @@ import type {
40
40
import decodeBrowserTypes from 'sentry/views/insights/browser/webVitals/utils/queryParameterDecoders/browserType' ;
41
41
import useProfileExists from 'sentry/views/insights/browser/webVitals/utils/useProfileExists' ;
42
42
import { SampleDrawerBody } from 'sentry/views/insights/common/components/sampleDrawerBody' ;
43
+ import { useInsightsEap } from 'sentry/views/insights/common/utils/useEap' ;
43
44
import { useDomainViewFilters } from 'sentry/views/insights/pages/useFilters' ;
44
45
import { SpanIndexedField , type SubregionCode } from 'sentry/views/insights/types' ;
45
46
import { TraceViewSources } from 'sentry/views/performance/newTraceDetails/traceHeader/breadcrumbs' ;
@@ -49,8 +50,8 @@ type Column = GridColumnHeader;
49
50
50
51
const PAGELOADS_COLUMN_ORDER : GridColumnOrder [ ] = [
51
52
{ key : 'id' , width : COL_WIDTH_UNDEFINED , name : t ( 'Transaction' ) } ,
52
- { key : 'replayId' , width : COL_WIDTH_UNDEFINED , name : t ( 'Replay' ) } ,
53
53
{ key : 'profile.id' , width : COL_WIDTH_UNDEFINED , name : t ( 'Profile' ) } ,
54
+ { key : 'replayId' , width : COL_WIDTH_UNDEFINED , name : t ( 'Replay' ) } ,
54
55
{ key : 'webVital' , width : COL_WIDTH_UNDEFINED , name : t ( 'Web Vital' ) } ,
55
56
{ key : 'score' , width : COL_WIDTH_UNDEFINED , name : t ( 'Score' ) } ,
56
57
] ;
@@ -86,6 +87,7 @@ export function PageOverviewWebVitalsDetailPanel({
86
87
const routes = useRoutes ( ) ;
87
88
const { replayExists} = useReplayExists ( ) ;
88
89
const domainViewFilters = useDomainViewFilters ( ) ;
90
+ const useEap = useInsightsEap ( ) ;
89
91
90
92
const browserTypes = decodeBrowserTypes ( location . query [ SpanIndexedField . BROWSER_NAME ] ) ;
91
93
const subregions = location . query [
@@ -128,7 +130,10 @@ export function PageOverviewWebVitalsDetailPanel({
128
130
useTransactionSamplesCategorizedQuery ( {
129
131
transaction : transaction ?? '' ,
130
132
webVital,
131
- enabled : Boolean ( webVital ) && ( ! isInp || ( ! isSpansWebVital && useSpansWebVitals ) ) ,
133
+ enabled :
134
+ Boolean ( webVital ) &&
135
+ ! useEap &&
136
+ ( ! isInp || ( ! isSpansWebVital && useSpansWebVitals ) ) ,
132
137
browserTypes,
133
138
subregions,
134
139
} ) ;
@@ -137,7 +142,8 @@ export function PageOverviewWebVitalsDetailPanel({
137
142
useSpanSamplesCategorizedQuery ( {
138
143
transaction : transaction ?? '' ,
139
144
webVital,
140
- enabled : Boolean ( webVital ) && ( isInp || ( isSpansWebVital && useSpansWebVitals ) ) ,
145
+ enabled :
146
+ Boolean ( webVital ) && ( useEap || isInp || ( isSpansWebVital && useSpansWebVitals ) ) ,
141
147
browserTypes,
142
148
subregions,
143
149
} ) ;
@@ -331,7 +337,7 @@ export function PageOverviewWebVitalsDetailPanel({
331
337
replayId : row . replayId ,
332
338
id : '' , // id doesn't actually matter here. Just to satisfy type.
333
339
'transaction.duration' :
334
- isInp || ( isSpansWebVital && useSpansWebVitals )
340
+ useEap || isInp || ( isSpansWebVital && useSpansWebVitals )
335
341
? row [ SpanIndexedField . SPAN_SELF_TIME ]
336
342
: // @ts -expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
337
343
row [ 'transaction.duration' ] ,
@@ -415,7 +421,7 @@ export function PageOverviewWebVitalsDetailPanel({
415
421
return (
416
422
< NoOverflow >
417
423
{ eventTarget ? (
418
- < Link to = { eventTarget } > { getShortEventId ( row . id ) } </ Link >
424
+ < Link to = { eventTarget } > { getShortEventId ( row . trace ) } </ Link >
419
425
) : (
420
426
< span > { getShortEventId ( row . id ) } </ span >
421
427
) }
@@ -465,11 +471,15 @@ export function PageOverviewWebVitalsDetailPanel({
465
471
renderBodyCell : renderSpansBodyCell ,
466
472
} }
467
473
/>
468
- ) : isSpansWebVital && useSpansWebVitals ? (
474
+ ) : useEap || ( isSpansWebVital && useSpansWebVitals ) ? (
469
475
< GridEditable
470
476
data = { spansTableData }
471
477
isLoading = { isSpansLoading }
472
- columnOrder = { SPANS_SAMPLES_COLUMN_ORDER }
478
+ columnOrder = {
479
+ isSpansWebVital && useSpansWebVitals
480
+ ? SPANS_SAMPLES_COLUMN_ORDER
481
+ : PAGELOADS_COLUMN_ORDER
482
+ }
473
483
columnSortBy = { [ sort ] }
474
484
grid = { {
475
485
renderHeadCell,
0 commit comments