From 921a65bc17ce4a9fb9d65689fe8e8d27ebc843fc Mon Sep 17 00:00:00 2001 From: Ananya Arun Date: Mon, 2 Aug 2021 09:15:57 -0700 Subject: [PATCH] Add troubleshooting button and a GK Summary: - Added a troubleshooting guide button which on clicking will open the expert chat bot system of flipper. ( Will be implemented in future diffs) - This has been added only in the internal version of flipper available to FB. - The public version shall continue to link to the troubleshooting guide for now. - Also a new gatekeeper flipper_self_sufficiency was set up. - This currently gives access to ongoing changes only to a few team members. - In the future access shall be extended to the entire team, followed by the entire org and then finally all internal FB users in the final stages of the project. Reviewed By: passy Differential Revision: D29993355 fbshipit-source-id: afdb76baef6fde2c785c50ad6530ea2f76ce7284 --- .../src/sandy-chrome/appinspect/AppSelector.tsx | 5 +++-- .../appinspect/fb-stubs/TroubleshootingGuide.tsx | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 desktop/app/src/sandy-chrome/appinspect/fb-stubs/TroubleshootingGuide.tsx diff --git a/desktop/app/src/sandy-chrome/appinspect/AppSelector.tsx b/desktop/app/src/sandy-chrome/appinspect/AppSelector.tsx index 368691f7e..bd4f85bd3 100644 --- a/desktop/app/src/sandy-chrome/appinspect/AppSelector.tsx +++ b/desktop/app/src/sandy-chrome/appinspect/AppSelector.tsx @@ -31,6 +31,7 @@ import Client from '../../Client'; import {State} from '../../reducers'; import {brandColors, brandIcons, colors} from '../../ui/components/colors'; import {showEmulatorLauncher} from './LaunchEmulator'; +import TroubleshootingGuide from './fb-stubs/TroubleshootingGuide'; const {Text, Link, Title} = Typography; @@ -109,7 +110,7 @@ export function AppSelector() { ) : ( - + ); } @@ -265,7 +266,7 @@ function ClientTitle({client}: {client: Client}) { ); } -function NoDevices() { +export function NoDevices() { const store = useStore(); const onLaunchEmulator = useTrackedCallback( diff --git a/desktop/app/src/sandy-chrome/appinspect/fb-stubs/TroubleshootingGuide.tsx b/desktop/app/src/sandy-chrome/appinspect/fb-stubs/TroubleshootingGuide.tsx new file mode 100644 index 000000000..0cb44dfee --- /dev/null +++ b/desktop/app/src/sandy-chrome/appinspect/fb-stubs/TroubleshootingGuide.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +import React from 'react'; +import {NoDevices} from '../AppSelector'; + +export default function TroubleshootingGuide() { + return ; +}