@@ -90,6 +90,7 @@ const ALERTS_OFF: Record<EventType, boolean> = {
90
90
monitorSeat : false ,
91
91
span : false ,
92
92
profileDuration : false ,
93
+ profileDurationUI : false ,
93
94
uptime : false ,
94
95
} ;
95
96
@@ -319,6 +320,7 @@ class GSBanner extends Component<Props, State> {
319
320
monitorSeat : true ,
320
321
span : true ,
321
322
profileDuration : true ,
323
+ profileDurationUI : true ,
322
324
uptime : true ,
323
325
} ,
324
326
overageWarningDismissed : {
@@ -329,6 +331,7 @@ class GSBanner extends Component<Props, State> {
329
331
monitorSeat : true ,
330
332
span : true ,
331
333
profileDuration : true ,
334
+ profileDurationUI : true ,
332
335
uptime : true ,
333
336
} ,
334
337
productTrialDismissed : {
@@ -339,6 +342,7 @@ class GSBanner extends Component<Props, State> {
339
342
monitorSeat : true ,
340
343
span : true ,
341
344
profileDuration : true ,
345
+ profileDurationUI : true ,
342
346
uptime : true ,
343
347
} ,
344
348
} ;
@@ -669,6 +673,7 @@ class GSBanner extends Component<Props, State> {
669
673
'monitor_seats_overage_alert' ,
670
674
'spans_overage_alert' ,
671
675
'profile_duration_overage_alert' ,
676
+ 'profile_duration_ui_overage_alert' ,
672
677
'uptime_overage_alert' ,
673
678
674
679
// warning alerts
@@ -679,6 +684,7 @@ class GSBanner extends Component<Props, State> {
679
684
'monitor_seats_warning_alert' ,
680
685
'spans_warning_alert' ,
681
686
'profile_duration_warning_alert' ,
687
+ 'profile_duration_ui_warning_alert' ,
682
688
'uptime_warning_alert' ,
683
689
684
690
// product trial alerts
@@ -689,6 +695,7 @@ class GSBanner extends Component<Props, State> {
689
695
'monitor_seats_product_trial_alert' ,
690
696
'spans_product_trial_alert' ,
691
697
'profile_duration_product_trial_alert' ,
698
+ 'profile_duration_ui_product_trial_alert' ,
692
699
'uptime_product_trial_alert' ,
693
700
] ,
694
701
{
@@ -731,6 +738,9 @@ class GSBanner extends Component<Props, State> {
731
738
profileDuration : promptIsDismissedForBillingPeriod (
732
739
checkResults . profile_duration_overage_alert !
733
740
) ,
741
+ profileDurationUI : promptIsDismissedForBillingPeriod (
742
+ checkResults . profile_duration_ui_overage_alert !
743
+ ) ,
734
744
uptime : promptIsDismissedForBillingPeriod ( checkResults . uptime_overage_alert ! ) ,
735
745
} ,
736
746
overageWarningDismissed : {
@@ -749,6 +759,9 @@ class GSBanner extends Component<Props, State> {
749
759
profileDuration : promptIsDismissedForBillingPeriod (
750
760
checkResults . profile_duration_warning_alert !
751
761
) ,
762
+ profileDurationUI : promptIsDismissedForBillingPeriod (
763
+ checkResults . profile_duration_ui_warning_alert !
764
+ ) ,
752
765
uptime : promptIsDismissedForBillingPeriod ( checkResults . uptime_warning_alert ! ) ,
753
766
} ,
754
767
@@ -781,6 +794,10 @@ class GSBanner extends Component<Props, State> {
781
794
checkResults . profile_duration_product_trial_alert ! ,
782
795
subscription
783
796
) ,
797
+ profileDurationUI : trialPromptIsDismissed (
798
+ checkResults . profile_duration_ui_product_trial_alert ! ,
799
+ subscription
800
+ ) ,
784
801
uptime : trialPromptIsDismissed (
785
802
checkResults . uptime_product_trial_alert ! ,
786
803
subscription
@@ -820,6 +837,9 @@ class GSBanner extends Component<Props, State> {
820
837
profileDuration :
821
838
! this . state . overageAlertDismissed . profileDuration &&
822
839
! ! subscription . categories . profileDuration ?. usageExceeded ,
840
+ profileDurationUI :
841
+ ! this . state . overageAlertDismissed . profileDurationUI &&
842
+ ! ! subscription . categories . profileDurationUI ?. usageExceeded ,
823
843
uptime :
824
844
! this . state . overageAlertDismissed . uptime &&
825
845
! ! subscription . categories . uptime ?. usageExceeded ,
@@ -857,6 +877,9 @@ class GSBanner extends Component<Props, State> {
857
877
profileDuration :
858
878
! this . state . overageWarningDismissed . profileDuration &&
859
879
! ! subscription . categories . profileDuration ?. sentUsageWarning ,
880
+ profileDurationUI :
881
+ ! this . state . overageWarningDismissed . profileDurationUI &&
882
+ ! ! subscription . categories . profileDurationUI ?. sentUsageWarning ,
860
883
uptime :
861
884
! this . state . overageWarningDismissed . uptime &&
862
885
! ! subscription . categories . uptime ?. sentUsageWarning ,
@@ -924,6 +947,7 @@ class GSBanner extends Component<Props, State> {
924
947
monitorSeat : `monitor_seats_${ key } _alert` ,
925
948
span : `spans_${ key } _alert` ,
926
949
profileDuration : `profile_duration_${ key } _alert` ,
950
+ profileDurationUI : `profile_duration_ui_${ key } _alert` ,
927
951
uptime : `uptime_${ key } _alert` ,
928
952
} ;
929
953
@@ -942,6 +966,7 @@ class GSBanner extends Component<Props, State> {
942
966
monitorSeat : true ,
943
967
span : true ,
944
968
profileDuration : true ,
969
+ profileDurationUI : true ,
945
970
uptime : true ,
946
971
} ;
947
972
// Suppress all warnings and alerts
@@ -1060,7 +1085,7 @@ class GSBanner extends Component<Props, State> {
1060
1085
} ) }
1061
1086
</ ExternalLink >
1062
1087
) ,
1063
- // TODO: Uncomment when we have a continuous profile doc link
1088
+ // TODO(continuous profiling) : Uncomment when we have a continuous profile doc link
1064
1089
// profile: (
1065
1090
// <ExternalLink
1066
1091
// key="profiles"
0 commit comments