Skip to content

Commit eb8eeb8

Browse files
committed
update icons
1 parent cbd7f08 commit eb8eeb8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

apps/docs/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4253,7 +4253,7 @@ export function ZoomIcon(props: SVGProps<SVGSVGElement>) {
42534253
fill='currentColor'
42544254
width='800px'
42554255
height='800px'
4256-
viewBox='-1 8 34 16'
4256+
viewBox='-1 9.5 34 13'
42574257
version='1.1'
42584258
xmlns='http://www.w3.org/2000/svg'
42594259
>

apps/sim/components/icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4253,7 +4253,7 @@ export function ZoomIcon(props: SVGProps<SVGSVGElement>) {
42534253
fill='currentColor'
42544254
width='800px'
42554255
height='800px'
4256-
viewBox='-1 8 34 16'
4256+
viewBox='-1 9.5 34 13'
42574257
version='1.1'
42584258
xmlns='http://www.w3.org/2000/svg'
42594259
>

scripts/generate-docs.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,21 @@ async function writeIntegrationsJson(iconMapping: Record<string, string>): Promi
520520
// Enrich each operation with a description from the tool registry
521521
const operations: OperationInfo[] = rawOps.map(({ label, id }) => {
522522
const toolId = `${baseType}_${id}`
523-
const desc = toolDescMap.get(toolId) || toolDescMap.get(id) || ''
523+
let desc = toolDescMap.get(toolId) || toolDescMap.get(id) || ''
524+
525+
// Fallback: some tool IDs differ from the operation ID (e.g. operation "send"
526+
// maps to tool "slack_message"). Find a tool in this namespace whose description
527+
// starts with the same action verb as the operation label ("Send Message" → "send").
528+
if (!desc) {
529+
const verb = label.split(/\s+/)[0].toLowerCase()
530+
for (const [tId, tDesc] of toolDescMap) {
531+
if (tId.startsWith(`${baseType}_`) && tDesc.toLowerCase().startsWith(verb)) {
532+
desc = tDesc
533+
break
534+
}
535+
}
536+
}
537+
524538
return { name: label, description: desc }
525539
})
526540

0 commit comments

Comments
 (0)