Commit 840a794
committed
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.1 parent 613e8ea commit 840a794
1 file changed
Lines changed: 13 additions & 0 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
| |||
0 commit comments