From 0c4ec03e699cae25993dc4e24162bbc3fe4e7387 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Mon, 3 Apr 2023 10:35:15 -0700 Subject: [PATCH] Add event payload as event properties for the timeline view Summary: Leverage the properties prop of `TimelineDataDescription`. Whenever an event is selected, the event payload is shown as the event properties. Reviewed By: antonk52 Differential Revision: D44497058 fbshipit-source-id: 09782d583957a0df8c3efd3f5a62af6b321a26e3 --- .../plugins/public/ui-debugger/components/sidebar/Inspector.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx index 2030a461a..f8d064b7f 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx @@ -118,6 +118,7 @@ export const Inspector: React.FC = ({nodes, metadata}) => { display: e.type.slice(e.type.lastIndexOf(':') + 1), color: theme.primaryColor, key: e.timestamp.toString(), + properties: e.payload as any, }; }), current: '',