Add "Rage" button
Summary: Design doc: https://docs.google.com/document/d/1HLCFl46RfqG0o1mSt8SWrwf_HMfOCRg_oENioc1rkvQ/edit# Add a button to export all possible debug data at once. IN subsequent diffs, I'll add more extensive data collection. Reviewed By: antonk52 Differential Revision: D40467606 fbshipit-source-id: 6a4225945b1feb6c1a8073b5209a62ba0beb6148
This commit is contained in:
committed by
Facebook GitHub Bot
parent
edb7de7311
commit
be72375d18
@@ -18,6 +18,7 @@ import {
|
|||||||
SettingOutlined,
|
SettingOutlined,
|
||||||
MedicineBoxOutlined,
|
MedicineBoxOutlined,
|
||||||
RocketOutlined,
|
RocketOutlined,
|
||||||
|
BugOutlined,
|
||||||
} from '@ant-design/icons';
|
} from '@ant-design/icons';
|
||||||
import {SidebarLeft, SidebarRight} from './SandyIcons';
|
import {SidebarLeft, SidebarRight} from './SandyIcons';
|
||||||
import {useDispatch, useStore} from '../utils/useStore';
|
import {useDispatch, useStore} from '../utils/useStore';
|
||||||
@@ -192,6 +193,7 @@ export const LeftRail = withTrackingScope(function LeftRail({
|
|||||||
<SetupDoctorButton />
|
<SetupDoctorButton />
|
||||||
<RightSidebarToggleButton />
|
<RightSidebarToggleButton />
|
||||||
<LeftSidebarToggleButton />
|
<LeftSidebarToggleButton />
|
||||||
|
<ExportEverythingEverywhereAllAtOnceButton />
|
||||||
<ExtrasMenu />
|
<ExtrasMenu />
|
||||||
{config.showLogin && <LoginButton />}
|
{config.showLogin && <LoginButton />}
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
@@ -430,6 +432,25 @@ function DebugLogsButton({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ExportEverythingEverywhereAllAtOnceButton() {
|
||||||
|
const startLogsExportTracked = useTrackedCallback(
|
||||||
|
'Debug data export',
|
||||||
|
startLogsExport,
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<LeftRailButton
|
||||||
|
icon={<BugOutlined />}
|
||||||
|
title="Export Flipper debug data"
|
||||||
|
onClick={() => {
|
||||||
|
startLogsExportTracked();
|
||||||
|
}}
|
||||||
|
small
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function LaunchEmulatorButton() {
|
function LaunchEmulatorButton() {
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user