diff --git a/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx b/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx index bf7fd8588..b27d7ce3f 100644 --- a/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx +++ b/desktop/flipper-ui-core/src/chrome/ConnectivityLogs.tsx @@ -136,19 +136,43 @@ const Placeholder = styled(Layout.Container)({ }); function Sidebar({selection}: {selection: undefined | ConnectionRecordEntry}) { - return ( - - {selection != null ? ( - - - - ) : ( - - Select an entry to visualize details - - )} - - ); + const content: JSX.Element[] = []; + + if (selection) { + if ('cmd' in selection) { + const cmd = selection as CommandRecordEntry; + content.push( + + {cmd.cmd} + , + + {cmd.description} + , + + {cmd.stdout} + , + + {cmd.stderr} + , + + {cmd.troubleshoot} + , + ); + } + content.push( + + + , + ); + } else { + content.push( + + Select an entry to visualize details + , + ); + } + + return {content}; } function clearMessages() {