Skip to content

Commit e189bc6

Browse files
Bill Leoutsakoswaleedlatif1
authored andcommitted
fix(windchill): use official integration icon
1 parent 355251b commit e189bc6

7 files changed

Lines changed: 67 additions & 15 deletions

File tree

apps/docs/components/icons.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,31 @@ export function DocumentIcon(props: SVGProps<SVGSVGElement>) {
24942494
)
24952495
}
24962496

2497+
export function WindchillIcon(props: SVGProps<SVGSVGElement>) {
2498+
return (
2499+
<svg
2500+
{...props}
2501+
viewBox='87.3 60.2 71.1 82'
2502+
role='img'
2503+
aria-label='Windchill icon'
2504+
xmlns='http://www.w3.org/2000/svg'
2505+
>
2506+
<g fill='#3D4647'>
2507+
<polygon points='137.2,86.6 137.2,68.5 122.8,60.2 107.1,69.2' />
2508+
<polygon points='142.7,106.4 158.4,97.3 158.4,80.7 142.7,71.6' />
2509+
<polygon points='108.5,115.8 108.5,133.9 122.8,142.2 138.5,133.2' />
2510+
<polygon points='128.2,121 143.9,130.1 158.4,121.7 158.4,103.6' />
2511+
<polygon points='117.4,81.4 101.7,72.4 87.3,80.7 87.3,98.8' />
2512+
<polygon points='103,96 87.3,105.1 87.3,121.7 103,130.8' />
2513+
</g>
2514+
<polygon
2515+
fill='#40AA1D'
2516+
points='137.2,109.5 122.8,117.8 108.4,109.5 108.4,92.9 122.8,84.6 137.2,92.9'
2517+
/>
2518+
</svg>
2519+
)
2520+
}
2521+
24972522
export function MintlifyIcon(props: SVGProps<SVGSVGElement>) {
24982523
return (
24992524
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'>

apps/docs/components/ui/icon-mapping.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ import {
245245
WebhookIcon,
246246
WhatsAppIcon,
247247
WikipediaIcon,
248+
WindchillIcon,
248249
WizaIcon,
249250
WordpressIcon,
250251
WorkdayIcon,
@@ -538,7 +539,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
538539
webflow: WebflowIcon,
539540
whatsapp: WhatsAppIcon,
540541
wikipedia: WikipediaIcon,
541-
windchill: DocumentIcon,
542+
windchill: WindchillIcon,
542543
wiza: WizaIcon,
543544
wordpress: WordpressIcon,
544545
workday: WorkdayIcon,

apps/docs/content/docs/en/integrations/windchill.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
77

88
<BlockInfoCard
99
type="windchill"
10-
color="#4B5563"
10+
color="#FFFFFF"
1111
/>
1212

1313
## Usage Instructions

apps/sim/blocks/blocks/windchill.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getErrorMessage } from '@sim/utils/errors'
2-
import { DocumentIcon } from '@/components/icons'
2+
import { WindchillIcon } from '@/components/icons'
33
import type { BlockConfig, BlockMeta } from '@/blocks/types'
44
import { AuthMode, IntegrationType } from '@/blocks/types'
55
import { normalizeFileInput } from '@/blocks/utils'
@@ -97,8 +97,8 @@ export const WindchillBlock: BlockConfig<WindchillResponse> = {
9797
category: 'tools',
9898
integrationType: IntegrationType.Documents,
9999
authMode: AuthMode.ApiKey,
100-
bgColor: '#4B5563',
101-
icon: DocumentIcon,
100+
bgColor: '#FFFFFF',
101+
icon: WindchillIcon,
102102
canvasPresentation: {
103103
defaultTitle: 'Windchill',
104104
operationSubBlockId: 'operation',
@@ -808,7 +808,7 @@ export const WindchillBlockMeta = {
808808
url: 'https://www.ptc.com/en/products/windchill',
809809
templates: [
810810
{
811-
icon: DocumentIcon,
811+
icon: WindchillIcon,
812812
title: 'Windchill document approval intake',
813813
prompt:
814814
'Build a workflow that creates a Windchill document from an approved intake form, uploads its primary content, and sends the resulting document identifier to the requester.',
@@ -817,7 +817,7 @@ export const WindchillBlockMeta = {
817817
tags: ['plm', 'documents', 'automation'],
818818
},
819819
{
820-
icon: DocumentIcon,
820+
icon: WindchillIcon,
821821
title: 'Windchill lifecycle readiness review',
822822
prompt:
823823
'Create a workflow that reads a Windchill document and its valid lifecycle transitions, checks required metadata, and produces a readiness report before release.',
@@ -826,7 +826,7 @@ export const WindchillBlockMeta = {
826826
tags: ['plm', 'quality', 'review'],
827827
},
828828
{
829-
icon: DocumentIcon,
829+
icon: WindchillIcon,
830830
title: 'Windchill structure change summary',
831831
prompt:
832832
'Build a workflow that retrieves a Windchill document structure and generates a concise summary of child-document names, versions, states, and missing metadata.',
@@ -835,7 +835,7 @@ export const WindchillBlockMeta = {
835835
tags: ['plm', 'documents', 'analysis'],
836836
},
837837
{
838-
icon: DocumentIcon,
838+
icon: WindchillIcon,
839839
title: 'Windchill controlled document release',
840840
prompt:
841841
'Create a workflow that checks in a Windchill document, validates an allowed lifecycle transition, and moves it to the approved release state.',
@@ -844,7 +844,7 @@ export const WindchillBlockMeta = {
844844
tags: ['plm', 'release', 'governance'],
845845
},
846846
{
847-
icon: DocumentIcon,
847+
icon: WindchillIcon,
848848
title: 'Windchill attachment package',
849849
prompt:
850850
'Build a workflow that uploads a set of inspection files as Windchill document attachments and returns the accepted file names for an audit record.',
@@ -853,7 +853,7 @@ export const WindchillBlockMeta = {
853853
tags: ['plm', 'files', 'quality'],
854854
},
855855
{
856-
icon: DocumentIcon,
856+
icon: WindchillIcon,
857857
title: 'Windchill revision preparation',
858858
prompt:
859859
'Create a workflow that checks out a Windchill document, updates selected attributes, checks it in with notes, and revises it for the next change cycle.',
@@ -862,7 +862,7 @@ export const WindchillBlockMeta = {
862862
tags: ['plm', 'versioning', 'automation'],
863863
},
864864
{
865-
icon: DocumentIcon,
865+
icon: WindchillIcon,
866866
title: 'Windchill document inventory',
867867
prompt:
868868
'Build a scheduled workflow that pages through Windchill documents, records their numbers, versions, states, and folder locations in a table, and flags stale checked-out documents.',

apps/sim/components/icons.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,6 +2494,31 @@ export function DocumentIcon(props: SVGProps<SVGSVGElement>) {
24942494
)
24952495
}
24962496

2497+
export function WindchillIcon(props: SVGProps<SVGSVGElement>) {
2498+
return (
2499+
<svg
2500+
{...props}
2501+
viewBox='87.3 60.2 71.1 82'
2502+
role='img'
2503+
aria-label='Windchill icon'
2504+
xmlns='http://www.w3.org/2000/svg'
2505+
>
2506+
<g fill='#3D4647'>
2507+
<polygon points='137.2,86.6 137.2,68.5 122.8,60.2 107.1,69.2' />
2508+
<polygon points='142.7,106.4 158.4,97.3 158.4,80.7 142.7,71.6' />
2509+
<polygon points='108.5,115.8 108.5,133.9 122.8,142.2 138.5,133.2' />
2510+
<polygon points='128.2,121 143.9,130.1 158.4,121.7 158.4,103.6' />
2511+
<polygon points='117.4,81.4 101.7,72.4 87.3,80.7 87.3,98.8' />
2512+
<polygon points='103,96 87.3,105.1 87.3,121.7 103,130.8' />
2513+
</g>
2514+
<polygon
2515+
fill='#40AA1D'
2516+
points='137.2,109.5 122.8,117.8 108.4,109.5 108.4,92.9 122.8,84.6 137.2,92.9'
2517+
/>
2518+
</svg>
2519+
)
2520+
}
2521+
24972522
export function MintlifyIcon(props: SVGProps<SVGSVGElement>) {
24982523
return (
24992524
<svg {...props} xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 19' fill='none'>

apps/sim/lib/integrations/icon-mapping.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ import {
242242
WebhookIcon,
243243
WhatsAppIcon,
244244
WikipediaIcon,
245+
WindchillIcon,
245246
WizaIcon,
246247
WordpressIcon,
247248
WorkdayIcon,
@@ -512,7 +513,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
512513
webflow: WebflowIcon,
513514
whatsapp: WhatsAppIcon,
514515
wikipedia: WikipediaIcon,
515-
windchill: DocumentIcon,
516+
windchill: WindchillIcon,
516517
wiza: WizaIcon,
517518
wordpress: WordpressIcon,
518519
workday: WorkdayIcon,

apps/sim/lib/integrations/integrations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21946,8 +21946,8 @@
2194621946
"name": "Windchill",
2194721947
"description": "Manage WT.Document objects and content in PTC Windchill",
2194821948
"longDescription": "Integrate PTC Windchill REST Services 2.7 document management into your workflow using Basic authentication. Read and update WT.Document metadata, perform version and lifecycle actions, and transfer primary content and attachments. Windchill OAuth deployments are not currently supported.",
21949-
"bgColor": "#4B5563",
21950-
"iconName": "DocumentIcon",
21949+
"bgColor": "#FFFFFF",
21950+
"iconName": "WindchillIcon",
2195121951
"docsUrl": "https://docs.sim.ai/integrations/windchill",
2195221952
"operations": [
2195321953
{

0 commit comments

Comments
 (0)