From e34f3f488304a06c35d35c8d36a23dcdcb9a6a1c Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Thu, 27 Apr 2023 07:28:41 -0700 Subject: [PATCH] Process Bloks Bound tree Summary: 1. Need to unminify the names from something call the minification map 2. Bloks attributes themselves are already minified. However the uidebugger also has a similar concept in its own metadata so the data we get off the device has been minified twice. To fix this we remap the metadata off the device using the minification map. In order to find the correct entry we need to get the style id of the bloks model parent. this is sent as a metadata custom attribute Reviewed By: lblasa Differential Revision: D45079136 fbshipit-source-id: bb448d81918c0b8c9e8ac87c4390b46a8a374d78 --- desktop/plugins/public/ui-debugger/components/Tree.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/plugins/public/ui-debugger/components/Tree.tsx b/desktop/plugins/public/ui-debugger/components/Tree.tsx index 5b9f409d2..a84496ab8 100644 --- a/desktop/plugins/public/ui-debugger/components/Tree.tsx +++ b/desktop/plugins/public/ui-debugger/components/Tree.tsx @@ -392,6 +392,8 @@ function nodeIcon(node: UINode) { return ; } return ; + } else if (node.tags.includes('BloksBoundTree')) { + return ; } }