From be72375d18a88c49133b2bd5756354069d9ca0e3 Mon Sep 17 00:00:00 2001 From: Andrey Goncharov Date: Tue, 25 Oct 2022 05:31:48 -0700 Subject: [PATCH] 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 --- .../src/sandy-chrome/LeftRail.tsx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx b/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx index 75f1de626..993bc1d90 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx @@ -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({ + {config.showLogin && } @@ -430,6 +432,25 @@ function DebugLogsButton({ ); } +function ExportEverythingEverywhereAllAtOnceButton() { + const startLogsExportTracked = useTrackedCallback( + 'Debug data export', + startLogsExport, + [], + ); + + return ( + } + title="Export Flipper debug data" + onClick={() => { + startLogsExportTracked(); + }} + small + /> + ); +} + function LaunchEmulatorButton() { const store = useStore();