You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(blocks): SubBlockConfig.tooltip field defined but not rendered in sub-block label #4071
SubBlockConfig.tooltip is defined in blocks/types.ts but is never rendered in the renderLabel function of sub-block.tsx. The type was added in commit 8215a81 without the corresponding UI implementation.
Root Cause
In apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx, the renderLabel function reads config.title, config.required, etc., but never checks or renders config.tooltip.
Steps to Reproduce
Add tooltip: 'some help text' to any subBlock definition in a block config
Open the workflow editor and find that block
Observe that no tooltip icon appears next to the field label
Expected Behavior
An Info icon should appear next to the field label. Hovering over it should show the tooltip text.
Fix
Add tooltip rendering in renderLabel after the required asterisk:
The Tooltip component is already imported and the Tooltip.Root/Trigger/Content pattern is already used in the same file (for the invalid JSON warning).
Activity