troubleshoot menu placeholder

Reviewed By: LukeDefeo

Differential Revision: D47470928

fbshipit-source-id: e7d235e60ce336a9f67b6bc8ac155c9cc9cbfd02
This commit is contained in:
Anton Kastritskiy
2023-07-18 03:52:34 -07:00
committed by Facebook GitHub Bot
parent d198f19471
commit 7c93d92956

View File

@@ -35,6 +35,7 @@ import {
ApiOutlined, ApiOutlined,
AppstoreAddOutlined, AppstoreAddOutlined,
BellOutlined, BellOutlined,
BugOutlined,
ExportOutlined, ExportOutlined,
FileExclamationOutlined, FileExclamationOutlined,
LayoutOutlined, LayoutOutlined,
@@ -111,7 +112,7 @@ export const Navbar = withTrackingScope(function Navbar({
<StatusMessage /> <StatusMessage />
<NavbarScreenshotButton /> <NavbarScreenshotButton />
<NavbarScreenRecordButton /> <NavbarScreenRecordButton />
<LaunchEmulatorButton /> <LaunchVirtualDeviceButton />
{getRenderHostInstance().GK('flipper_connection_troubleshoot') && ( {getRenderHostInstance().GK('flipper_connection_troubleshoot') && (
<ConnectionTroubleshootButton <ConnectionTroubleshootButton
toplevelSelection={toplevelSelection} toplevelSelection={toplevelSelection}
@@ -141,6 +142,7 @@ export const Navbar = withTrackingScope(function Navbar({
toplevelSelection={toplevelSelection} toplevelSelection={toplevelSelection}
setToplevelSelection={setToplevelSelection} setToplevelSelection={setToplevelSelection}
/> />
<TroubleshootMenu />
<ExtrasMenu /> <ExtrasMenu />
<SetupDoctorButton /> <SetupDoctorButton />
<ExportEverythingEverywhereAllAtOnceButton /> <ExportEverythingEverywhereAllAtOnceButton />
@@ -364,13 +366,13 @@ function RightSidebarToggleButton() {
); );
} }
function LaunchEmulatorButton() { function LaunchVirtualDeviceButton() {
const store = useStore(); const store = useStore();
return ( return (
<NavbarButton <NavbarButton
icon={RocketOutlined} icon={RocketOutlined}
label="Start [E/Si]mulator" label="Virtual Device"
onClick={() => { onClick={() => {
showEmulatorLauncher(store); showEmulatorLauncher(store);
}} }}
@@ -645,6 +647,27 @@ const submenu = css`
} }
`; `;
function TroubleshootMenu() {
return (
<Menu
mode="vertical"
className={menu}
selectable={false}
style={{backgroundColor: theme.backgroundDefault}}>
<Menu.SubMenu
popupOffset={[-90, 50]}
key="extras"
title={<NavbarButton icon={BugOutlined} label="Troubleshoot" />}
className={submenu}>
<Menu.Item>TODO troubleshooting guide</Menu.Item>
<Menu.Item>TODO troubleshoot</Menu.Item>
<Menu.Item>TODO flipper logs</Menu.Item>
<Menu.Item>TODO setup doctor</Menu.Item>
</Menu.SubMenu>
</Menu>
);
}
function ExtrasMenu() { function ExtrasMenu() {
const store = useStore(); const store = useStore();