You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d225379
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(mobile): the inspector's bar is its pane's AppBar
Each inspector pane built its own header. On iOS the Files and Git panes
mounted a one-screen native stack with a hand-written header config, and
Android drew separate headers, so features branched by platform and threaded
a header inset through. The iPhone git sheet had no close button.
Inspector panes now render AppBar like any screen. The inspector collects
the options their AppBar sets, per pane since hidden panes stay mounted, and
draws them: in the native inspector column's own navigation bar on iOS 26,
and in a one-screen native stack in the JS column and the sheet. On Android
the AppBar draws inline as before. In the inspector, AppBar adds a close
button that hides the column or dismisses the sheet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- an inspector pane that stops drawing its bar must not leave it in the out-of-tree inspector bar
53
+
useLayoutEffect(()=>{
54
+
if(!ownsInspectorBar||!setOptions)return;
55
+
setOptions({headerShown: true});
56
+
return()=>setOptions({headerShown: false});
57
+
},[ownsInspectorBar,setOptions]);
47
58
// The Duo's native columns show their own sidebar button while the sidebar is open.
48
59
constshowsSidebarToggle=
49
60
sidebarToggle!==null&&
@@ -62,16 +73,18 @@ export function AppBar(props: AppBarProps) {
0 commit comments