fix(icons): align table block icon and 12-unit icon stroke with the emcn family - #6708
Conversation
…mcn family The table/table_v2 blocks and the table trigger used a local lucide-shaped TableIcon (stroke 2.0, full-bleed 24 viewBox, 3x3 grid) while every other table surface used emcn's Table. Consolidate onto the emcn icon and drop the local copy. Nested tool-call rows in Chat applied no color class, so a non-brand block icon inherited body text instead of --text-icon. redo/undo/zoom-in/zoom-out draw 0.85 stroke on a 12-unit viewBox, rendering 0.992px at a 14px box against the family's 0.904px. 0.775 restores parity.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The local Lucide-style In Chat, nested tool-call rows add
Reviewed by Cursor Bugbot for commit f8bd2c8. Configure here. |
Greptile SummaryThe PR consolidates table-related surfaces on the EMCN
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified in the changed icon imports, styling, generated mappings, or SVG definitions. The removed exports have no remaining local consumers, the shared EMCN icon satisfies existing component contracts, generated-map behavior remains intentional, and the color and stroke changes preserve the relevant rendering semantics.
|
| Filename | Overview |
|---|---|
| apps/sim/components/icons.tsx | Removes the duplicate local table glyph after all consumers migrate to the EMCN icon export. |
| apps/sim/blocks/blocks/table.ts | Changes the table block’s icon reference to the shared EMCN Table component without altering block behavior. |
| apps/sim/blocks/blocks/table_v2.ts | Changes the preview table block’s icon reference to the same shared EMCN component. |
| apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/agent-group/tool-call-item.tsx | Applies the theme-aware icon text token while retaining inline brand-color precedence. |
| apps/sim/lib/integrations/icon-mapping.ts | Regenerates the integration icon map to reference the shared EMCN table icon. |
| apps/docs/components/ui/icon-mapping.ts | Regenerates the documentation icon map to reference the shared EMCN table icon. |
| packages/emcn/src/icons/redo.tsx | Reduces both path stroke widths for visual parity with the icon family. |
| packages/emcn/src/icons/undo.tsx | Reduces both path stroke widths for visual parity with the icon family. |
| packages/emcn/src/icons/zoom-in.tsx | Uniformly reduces all zoom-in glyph stroke widths. |
| packages/emcn/src/icons/zoom-out.tsx | Uniformly reduces all zoom-out glyph stroke widths. |
Reviews (1): Last reviewed commit: "fix(icons): align table block icon and 1..." | Re-trigger Greptile
Summary
table/table_v2blocks and the table trigger used a local lucide-shapedTableIcon(stroke 2.0, full-bleed0 0 24 24, 3x3 grid) while the sidebar, Tables page, resource registry,@-mention menu, and folders all used emcn'sTable(stroke 1.55, inset viewBox, header row + one divider). Most visible in Chat, where an agent group's header icon and its nested tool row rendered two different table glyphs side by side.TableIconfromcomponents/icons.tsxand pointed every consumer at@sim/emcn/iconsTable— blocks, trigger, and 6 landing-page workflow mocks. Regenerated the two auto-generated icon maps.--text-iconand read darker than its own label. Brand icons are unaffected:getBareIconStyle's inlinecolorstill wins for single-fill marks, and multi-color marks hardcode their own fills.redo/undo/zoom-in/zoom-outdrawstrokeWidth 0.85on a 12-unit viewBox, rendering 0.992px at a 14px box against the family's 0.904px (+9.7%). Set to0.775for exact parity — 170/171 stroked icon exports now render at identical weight (blimp, the brand mark, is the intentional exception).Notes
generate-docs'sresolveIconSourcematches the pre-asimport specifier, so an aliasedTable as TableIconin a block silently emits a broken import into the generated icon maps. Blocks import it unaliased, matchingmysql.ts/imap.ts/ssh.ts.Type of Change
Testing
Tested manually.
bun run type-checkclean onapps/simandpackages/emcn;bun run lintclean. Stroke-weight parity verified by re-measuring every icon export after the change.Checklist