Skip to content

Commit 452e9e7

Browse files
committed
Disable Perf Insights subpanel, collapse sidebar by default
1 parent 538c309 commit 452e9e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

front_end/panels/timeline/TimelinePanel.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
772772
#setActiveInsight(insight: TimelineComponents.Sidebar.ActiveInsight|null): void {
773773
// When an insight is selected, ensure that the 3P checkbox is disabled
774774
// to avoid dimming interference.
775-
if (insight) {
775+
if (insight && !Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.REACT_NATIVE_SPECIFIC_UI)) {
776776
this.#splitWidget.showBoth();
777777
}
778778
this.#sideBar.setActiveInsight(insight);
@@ -2185,6 +2185,10 @@ export class TimelinePanel extends UI.Panel.Panel implements Client, TimelineMod
21852185
// Used in interaction tests & screenshot tests.
21862186
return;
21872187
}
2188+
// [RN] Keep sidebar collapsed by default
2189+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.REACT_NATIVE_SPECIFIC_UI)) {
2190+
return;
2191+
}
21882192
const needToRestore = this.#restoreSidebarVisibilityOnTraceLoad;
21892193
const userHasSeenSidebar = this.#sideBar.userHasOpenedSidebarOnce();
21902194

0 commit comments

Comments
 (0)