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,
|
||||
MedicineBoxOutlined,
|
||||
RocketOutlined,
|
||||
BugOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import {SidebarLeft, SidebarRight} from './SandyIcons';
|
||||
import {useDispatch, useStore} from '../utils/useStore';
|
||||
@@ -192,6 +193,7 @@ export const LeftRail = withTrackingScope(function LeftRail({
|
||||
<SetupDoctorButton />
|
||||
<RightSidebarToggleButton />
|
||||
<LeftSidebarToggleButton />
|
||||
<ExportEverythingEverywhereAllAtOnceButton />
|
||||
<ExtrasMenu />
|
||||
{config.showLogin && <LoginButton />}
|
||||
</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() {
|
||||
const store = useStore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user