@@ -9,7 +9,7 @@ import * as UI from '../../../ui/legacy/legacy.js';
99
1010import { SidebarAnnotationsTab } from './SidebarAnnotationsTab.js' ;
1111import { SidebarInsightsTab } from './SidebarInsightsTab.js' ;
12- import { SidebarRNPerfIssuesTab } from './SidebarRNPerfIssuesTab .js' ;
12+ import { SidebarRNPerfSignalsTab } from './SidebarRNPerfSignalsTab .js' ;
1313
1414export interface ActiveInsight {
1515 model : Trace . Insights . Types . InsightModel ;
@@ -41,7 +41,7 @@ declare global {
4141export const enum SidebarTabs {
4242 INSIGHTS = 'insights' ,
4343 ANNOTATIONS = 'annotations' ,
44- PERF_ISSUES = 'perf-issues ' ,
44+ PERF_SIGNALS = 'perf-signals ' ,
4545}
4646export const DEFAULT_SIDEBAR_TAB = SidebarTabs . INSIGHTS ;
4747
@@ -55,7 +55,7 @@ export class SidebarWidget extends UI.Widget.VBox {
5555 #annotationsView = new AnnotationsView ( ) ;
5656
5757 #perfIssuesTabEnabled = false ;
58- #rnPerfIssuesView = new RNPerfIssuesView ( ) ;
58+ #rnPerfSignalsView = new RNPerfSignalsView ( ) ;
5959
6060 /**
6161 * Track if the user has opened the sidebar before. We do this so that the
@@ -121,25 +121,25 @@ export class SidebarWidget extends UI.Widget.VBox {
121121
122122 setParsedTrace ( parsedTrace : Trace . Handlers . Types . ParsedTrace | null , metadata : Trace . Types . File . MetaData | null ) : void {
123123 this . #insightsView. setParsedTrace ( parsedTrace , metadata ) ;
124- this . #rnPerfIssuesView . setParsedTrace ( parsedTrace ) ;
124+ this . #rnPerfSignalsView . setParsedTrace ( parsedTrace ) ;
125125
126126 // [RN] Show or remove the Perf Issues tab if there are issues present
127127 if ( this . #perfIssuesTabEnabled) {
128- const hasIssues = this . #rnPerfIssuesView . hasIssues ( ) ;
129- const tabExists = this . #tabbedPane. hasTab ( SidebarTabs . PERF_ISSUES ) ;
128+ const hasIssues = this . #rnPerfSignalsView . hasIssues ( ) ;
129+ const tabExists = this . #tabbedPane. hasTab ( SidebarTabs . PERF_SIGNALS ) ;
130130
131131 if ( hasIssues && ! tabExists ) {
132132 this . #tabbedPane. appendTab (
133- SidebarTabs . PERF_ISSUES , 'Performance Signals' , this . #rnPerfIssuesView , undefined , undefined , false , true ) ;
134- this . #tabbedPane. selectTab ( SidebarTabs . PERF_ISSUES ) ;
133+ SidebarTabs . PERF_SIGNALS , 'Performance Signals' , this . #rnPerfSignalsView , undefined , undefined , false , true ) ;
134+ this . #tabbedPane. selectTab ( SidebarTabs . PERF_SIGNALS ) ;
135135 } else if ( ! hasIssues && tabExists ) {
136- this . #tabbedPane. closeTab ( SidebarTabs . PERF_ISSUES ) ;
136+ this . #tabbedPane. closeTab ( SidebarTabs . PERF_SIGNALS ) ;
137137 }
138138 }
139139 }
140140
141141 setSelectTimelineEventCallback ( callback : ( event : Trace . Types . Events . Event ) => void ) : void {
142- this . #rnPerfIssuesView . setSelectTimelineEventCallback ( callback ) ;
142+ this . #rnPerfSignalsView . setSelectTimelineEventCallback ( callback ) ;
143143 }
144144
145145 setInsights ( insights : Trace . Insights . Types . TraceInsightSets | null ) : void {
@@ -212,13 +212,13 @@ class AnnotationsView extends UI.Widget.VBox {
212212 }
213213}
214214
215- /** [RN] Experimental view for Performance Issues . */
216- class RNPerfIssuesView extends UI . Widget . VBox {
217- #component = new SidebarRNPerfIssuesTab ( ) ;
215+ /** [RN] Experimental view for Performance Signals . */
216+ class RNPerfSignalsView extends UI . Widget . VBox {
217+ #component = new SidebarRNPerfSignalsTab ( ) ;
218218
219219 constructor ( ) {
220220 super ( ) ;
221- this . element . classList . add ( 'sidebar-perf-issues ' ) ;
221+ this . element . classList . add ( 'sidebar-perf-signals ' ) ;
222222 this . element . appendChild ( this . #component) ;
223223 }
224224
0 commit comments