File tree 5 files changed +32
-21
lines changed
5 files changed +32
-21
lines changed Original file line number Diff line number Diff line change @@ -513,17 +513,18 @@ export default function DOMPlayer({
513
513
No replay available for this session, most likely due to this
514
514
session starting and ending in a background tab.
515
515
</ div >
516
- ) : null }
517
- < div
518
- ref = { wrapper }
519
- className = { cx ( styles . domPlayerWrapper , 'overflow-hidden' , {
520
- 'd-none' : isLoading || isBuffering ,
521
- started : ( replayer . current ?. getCurrentTime ( ) ?? 0 ) > 0 ,
522
- [ styles . domPlayerWrapperPaused ] : playerState === 'paused' ,
523
- } ) }
524
- >
525
- < div className = "player rr-block" ref = { playerContainer } />
526
- </ div >
516
+ ) : (
517
+ < div
518
+ ref = { wrapper }
519
+ className = { cx ( styles . domPlayerWrapper , 'overflow-hidden' , {
520
+ 'd-none' : isLoading || isBuffering ,
521
+ started : ( replayer . current ?. getCurrentTime ( ) ?? 0 ) > 0 ,
522
+ [ styles . domPlayerWrapperPaused ] : playerState === 'paused' ,
523
+ } ) }
524
+ >
525
+ < div className = "player rr-block" ref = { playerContainer } />
526
+ </ div >
527
+ ) }
527
528
</ div >
528
529
</ >
529
530
) ;
Original file line number Diff line number Diff line change @@ -75,8 +75,11 @@ export default function Playbar({
75
75
const isError =
76
76
event . severity_text ?. toLowerCase ( ) === 'error' ||
77
77
event . component === 'error' ||
78
+ event . component === 'console' ||
78
79
statusCode >= 399 ;
79
80
81
+ const isSuccess = ! isError && statusCode < 400 && statusCode > 99 ;
82
+
80
83
return {
81
84
id : event . id ,
82
85
ts : event . startOffset ,
@@ -93,6 +96,7 @@ export default function Playbar({
93
96
? 'Intercom Chat Opened'
94
97
: event . body ,
95
98
isError,
99
+ isSuccess,
96
100
} ;
97
101
} ) ?? [ ] ,
98
102
'percentage' ,
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { format } from 'date-fns' ;
3
2
import { Slider , Tooltip } from '@mantine/core' ;
4
3
5
4
import { useFormatTime } from './useFormatTime' ;
@@ -12,6 +11,7 @@ export type PlaybarMarker = {
12
11
ts : number ;
13
12
description : string ;
14
13
isError : boolean ;
14
+ isSuccess : boolean ;
15
15
} ;
16
16
17
17
type PlaybarSliderProps = {
@@ -60,9 +60,11 @@ export const PlaybarSlider = ({
60
60
< div
61
61
className = { styles . markerDot }
62
62
style = { {
63
- backgroundColor : mark . isError
64
- ? 'var(--mantine-color-red-6)'
65
- : 'var(--mantine-color-gray-6)' ,
63
+ backgroundColor : mark . isSuccess
64
+ ? 'var(--mantine-color-green-6)'
65
+ : mark . isError
66
+ ? 'var(--mantine-color-red-6)'
67
+ : 'var(--mantine-color-gray-6)' ,
66
68
left : `${ ( ( mark . ts - min ) / ( max - min ) ) * 100 } %` ,
67
69
} }
68
70
onClick = { ( ) => onChange ( mark . ts ) }
Original file line number Diff line number Diff line change @@ -314,7 +314,8 @@ export default function SessionSubpanel({
314
314
[ traceSource ] ,
315
315
) ;
316
316
317
- const filteredEventsFilter = useMemo (
317
+ // Events shown in the highlighted tab
318
+ const highlightedEventsFilter = useMemo (
318
319
( ) => ( {
319
320
type : 'lucene' as const ,
320
321
condition : `${ traceSource . resourceAttributesExpression } .rum.sessionId:"${ rumSessionId } "
@@ -363,7 +364,7 @@ export default function SessionSubpanel({
363
364
offset : 0 ,
364
365
} ,
365
366
filters : [
366
- filteredEventsFilter ,
367
+ tab === 'highlighted' ? highlightedEventsFilter : allEventsFilter ,
367
368
...( where ? [ { type : whereLanguage , condition : where } ] : [ ] ) ,
368
369
] ,
369
370
} ) ,
@@ -377,7 +378,9 @@ export default function SessionSubpanel({
377
378
end ,
378
379
whereLanguage ,
379
380
searchedQuery ,
380
- filteredEventsFilter ,
381
+ tab ,
382
+ highlightedEventsFilter ,
383
+ allEventsFilter ,
381
384
where ,
382
385
] ,
383
386
) ;
@@ -410,7 +413,7 @@ export default function SessionSubpanel({
410
413
offset : 0 ,
411
414
} ,
412
415
filters : [
413
- tab === 'highlighted' ? filteredEventsFilter : allEventsFilter ,
416
+ tab === 'highlighted' ? highlightedEventsFilter : allEventsFilter ,
414
417
...( where ? [ { type : whereLanguage , condition : where } ] : [ ] ) ,
415
418
] ,
416
419
} ) ,
@@ -425,7 +428,7 @@ export default function SessionSubpanel({
425
428
whereLanguage ,
426
429
searchedQuery ,
427
430
tab ,
428
- filteredEventsFilter ,
431
+ highlightedEventsFilter ,
429
432
allEventsFilter ,
430
433
where ,
431
434
] ,
Original file line number Diff line number Diff line change 25
25
position : absolute ;
26
26
top : 0 ;
27
27
margin-left : -1px ;
28
- width : 3 px ;
28
+ width : 2 px ;
29
29
height : 8px ;
30
30
background-color : #333 ;
31
31
border-radius : 1px ;
32
+ opacity : 0.5 ;
32
33
33
34
& :hover {
34
35
opacity : 1 !important ;
You can’t perform that action at this time.
0 commit comments