Skip to content

Commit 0a0f41b

Browse files
committed
feat(embeddings): use the latent-constellation mark for the block icon
Replaces the scatter-plot-on-axes placeholder with a centre node, four neighbours, and the rays between them — a point and its nearest neighbours in embedding space, which is what the block actually produces. The axes mark read as a generic chart and said nothing specific to embeddings. Nodes are filled so they hold their shape at small sizes. The rays carry less weight than the nodes to keep the hierarchy, but at 1.6/0.9 rather than the 1.4/0.75 they were drawn at, so they do not thin out to loose dots in the 14px block-search row. Kept byte-identical between the app and docs icon sets.
1 parent 041de1f commit 0a0f41b

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

apps/docs/components/icons.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,10 +2426,18 @@ export function EmbeddingsIcon(props: SVGProps<SVGSVGElement>) {
24262426
strokeLinecap='round'
24272427
strokeLinejoin='round'
24282428
>
2429-
<path d='M3 2V20C3 21.66 4.34 23 6 23H24' />
2430-
<circle cx='9.5' cy='17' r='2.2' />
2431-
<circle cx='15.5' cy='9.5' r='2.2' />
2432-
<circle cx='21' cy='15' r='2.2' />
2429+
{/* Rays sit below the nodes in weight, but not so far below that they
2430+
wash out to loose dots at the 14px search-row size. */}
2431+
<path
2432+
d='M13 13L5.5 6.5M13 13L21 7M13 13L6.5 20M13 13L21 19'
2433+
strokeWidth='1.6'
2434+
opacity='0.9'
2435+
/>
2436+
<circle cx='13' cy='13' r='3.1' fill='currentColor' stroke='none' />
2437+
<circle cx='5.5' cy='6.5' r='1.9' fill='currentColor' stroke='none' />
2438+
<circle cx='21' cy='7' r='1.9' fill='currentColor' stroke='none' />
2439+
<circle cx='6.5' cy='20' r='1.9' fill='currentColor' stroke='none' />
2440+
<circle cx='21' cy='19' r='1.9' fill='currentColor' stroke='none' />
24332441
</svg>
24342442
)
24352443
}

apps/sim/components/icons.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,10 +2426,18 @@ export function EmbeddingsIcon(props: SVGProps<SVGSVGElement>) {
24262426
strokeLinecap='round'
24272427
strokeLinejoin='round'
24282428
>
2429-
<path d='M3 2V20C3 21.66 4.34 23 6 23H24' />
2430-
<circle cx='9.5' cy='17' r='2.2' />
2431-
<circle cx='15.5' cy='9.5' r='2.2' />
2432-
<circle cx='21' cy='15' r='2.2' />
2429+
{/* Rays sit below the nodes in weight, but not so far below that they
2430+
wash out to loose dots at the 14px search-row size. */}
2431+
<path
2432+
d='M13 13L5.5 6.5M13 13L21 7M13 13L6.5 20M13 13L21 19'
2433+
strokeWidth='1.6'
2434+
opacity='0.9'
2435+
/>
2436+
<circle cx='13' cy='13' r='3.1' fill='currentColor' stroke='none' />
2437+
<circle cx='5.5' cy='6.5' r='1.9' fill='currentColor' stroke='none' />
2438+
<circle cx='21' cy='7' r='1.9' fill='currentColor' stroke='none' />
2439+
<circle cx='6.5' cy='20' r='1.9' fill='currentColor' stroke='none' />
2440+
<circle cx='21' cy='19' r='1.9' fill='currentColor' stroke='none' />
24332441
</svg>
24342442
)
24352443
}

0 commit comments

Comments
 (0)