Skip to content

Commit 50e7f53

Browse files
authored
feat(tailscale): expand and validate API operations (#9385)
* feat(tailscale): expand and validate API operations * fix(tailscale): normalize controls and output schemas * fix(tailscale): preserve operation switch defaults
1 parent 4861296 commit 50e7f53

60 files changed

Lines changed: 5602 additions & 1783 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/content/docs/integrations/tailscale.mdx‎

Lines changed: 730 additions & 205 deletions
Large diffs are not rendered by default.

‎apps/docs/content/docs/integrations/vanta.mdx‎

Lines changed: 582 additions & 0 deletions
Large diffs are not rendered by default.

‎apps/docs/content/docs/integrations/zoho_desk.mdx‎

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/switch/switch.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ interface SwitchProps {
55
blockId: string
66
subBlockId: string
77
title: string
8-
value?: boolean
8+
value?: boolean | string
99
isPreview?: boolean
10-
previewValue?: boolean | null
10+
previewValue?: boolean | string | null
1111
disabled?: boolean
1212
}
1313

@@ -20,7 +20,7 @@ export function Switch({
2020
previewValue,
2121
disabled = false,
2222
}: SwitchProps) {
23-
const [storeValue, setStoreValue] = useSubBlockValue<boolean>(blockId, subBlockId)
23+
const [storeValue, setStoreValue] = useSubBlockValue<boolean | string>(blockId, subBlockId)
2424

2525
const value = isPreview ? previewValue : (storeValue ?? propValue)
2626

@@ -34,7 +34,7 @@ export function Switch({
3434
<div className='flex items-center gap-x-3'>
3535
<UISwitch
3636
id={`${blockId}-${subBlockId}`}
37-
checked={Boolean(value)}
37+
checked={value === true || value === 'true'}
3838
onCheckedChange={handleChange}
3939
disabled={isPreview || disabled}
4040
/>

0 commit comments

Comments
 (0)