From 840a7947f7d15b9f6fe3a38b0b70459510aee410 Mon Sep 17 00:00:00 2001 From: Sanidhya Singh Date: Sat, 27 Jun 2026 11:24:22 +0530 Subject: [PATCH] fix(blocks): render SubBlockConfig.tooltip in sub-block label The tooltip field on SubBlockConfig was defined in blocks/types.ts but never rendered. renderLabel in sub-block.tsx reads title and required but ignored tooltip, so configs that set it (e.g. pi, textract) showed no help text. Render an Info icon with the tooltip text next to the field title, reusing the Tooltip pattern already used in this file for the invalid JSON warning. --- .../editor/components/sub-block/sub-block.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx index 71c94d10337..f47189492e5 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx @@ -7,6 +7,7 @@ import { Check, Clipboard, ExternalLink, + Info, } from 'lucide-react' import { useParams } from 'next/navigation' import { Button, Input, Label, Tooltip } from '@/components/emcn/components' @@ -252,6 +253,18 @@ const renderLabel = (