From 25fa0b7c610533afebb87c03c7cd48c3ebbcfb69 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Tue, 13 Jul 2021 03:33:20 -0700 Subject: [PATCH] Make plugin status screen more useful Summary: If no device/client was selected, no plugins would show up in the plugin status list either, which is very confusing. Changed this to always show all loaded plugins, regardless of selected device / app. Reviewed By: nikoant Differential Revision: D29661006 fbshipit-source-id: 720a1697df7ed17b00d5db5a72a8e2b6bb344b1e --- .../chrome/plugin-manager/PluginDebugger.tsx | 80 +++---------------- 1 file changed, 13 insertions(+), 67 deletions(-) diff --git a/desktop/app/src/chrome/plugin-manager/PluginDebugger.tsx b/desktop/app/src/chrome/plugin-manager/PluginDebugger.tsx index 216bea34f..afc6c055f 100644 --- a/desktop/app/src/chrome/plugin-manager/PluginDebugger.tsx +++ b/desktop/app/src/chrome/plugin-manager/PluginDebugger.tsx @@ -210,73 +210,19 @@ class PluginDebugger extends Component { } render() { - let content = null; - - if (!this.props.selectedDevice) { - content = ( - - We can't find any device connected to your computer. Is an - emulator/simulator currently running on your system, or is there a - development device connected via USB? There are some devices/emulators - known to have problems connecting to Flipper. Check out the{' '} - - known incompatibilities - - . - - ); - } else if ( - !this.props.clients.some( - (client: Client) => - client.query.device_id === this.props.selectedDevice, - ) - ) { - // no clients for selected device - content = ( - - - While Flipper was able to connect to your device, it wasn't able to - connect to the app you are running on your device. For this reason, - app-specific plugins will not show up. - - {this.props.clients.length > 0 && ( - // we have clients, but not for this device - - Make sure you selected the correct device from the dropdown button - in the upper left corner. Only plugins for the selected device are - shown in the sidebar. - - )} - - To debug why Flipper couldn't establish a connection to the app, - check out our documentation about{' '} - - connection issues - - . - - - ); - } else { - content = ( - - - The table lists all plugins known to Flipper. Some of them might be - blocked by GKs, others may not show up, because none of the - connected apps are supporting it. - - - - - - ); - } - return content; + return ( + + The table lists all plugins known to Flipper. + + + + + ); } }