Skip to content

Commit 05b89cb

Browse files
committed
expanded wand textarea, updated calcom tools
1 parent 84eea53 commit 05b89cb

File tree

21 files changed

+463
-191
lines changed

21 files changed

+463
-191
lines changed

apps/docs/content/docs/en/tools/calcom.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Create a new booking on Cal.com
4444
| --------- | ---- | -------- | ----------- |
4545
| `eventTypeId` | number | Yes | The ID of the event type to book |
4646
| `start` | string | Yes | Start time in UTC ISO 8601 format \(e.g., 2024-01-15T09:00:00Z\) |
47-
| `attendee` | object | Yes | Attendee information object with name, email, timeZone, and optional phoneNumber |
47+
| `attendee` | object | Yes | Attendee information object with name, email, timeZone, and optional phoneNumber \(constructed from individual attendee fields\) |
4848
| `guests` | array | No | Array of guest email addresses |
4949
| `items` | string | No | Guest email address |
5050
| `lengthInMinutes` | number | No | Duration of the booking in minutes \(overrides event type default\) |
@@ -575,8 +575,12 @@ Delete an event type from Cal.com
575575

576576
| Parameter | Type | Description |
577577
| --------- | ---- | ----------- |
578-
| `deleted` | boolean | Whether the event type was successfully deleted |
579-
| `message` | string | Status message |
578+
| `status` | string | Response status |
579+
| `data` | object | Deleted event type details |
580+
|`id` | number | Event type ID |
581+
|`lengthInMinutes` | number | Duration in minutes |
582+
|`title` | string | Event type title |
583+
|`slug` | string | Event type slug |
580584

581585
### `calcom_create_schedule`
582586

@@ -728,12 +732,7 @@ Delete a schedule from Cal.com
728732

729733
| Parameter | Type | Description |
730734
| --------- | ---- | ----------- |
731-
| `status` | string | Response status |
732-
| `data` | object | Deleted schedule data |
733-
|`id` | number | Unique identifier of the deleted schedule |
734-
|`name` | string | Name of the deleted schedule |
735-
|`timeZone` | string | Timezone of the deleted schedule |
736-
|`isDefault` | boolean | Whether this was the default schedule |
735+
| `status` | string | Response status \(success or error\) |
737736

738737
### `calcom_get_default_schedule`
739738

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const renderLabel = (
233233
</Tooltip.Root>
234234
)}
235235
</Label>
236-
<div className='flex items-center gap-[6px]'>
236+
<div className='flex min-w-0 flex-1 items-center justify-end gap-[6px]'>
237237
{showCopy && (
238238
<Tooltip.Root>
239239
<Tooltip.Trigger asChild>
@@ -266,14 +266,19 @@ const renderLabel = (
266266
Generate
267267
</Button>
268268
) : (
269-
<div className='-my-1 flex items-center gap-[4px]'>
269+
<div className='-my-1 flex min-w-[120px] max-w-[280px] flex-1 items-center gap-[4px]'>
270270
<Input
271271
ref={wandState.searchInputRef}
272272
value={wandState.isStreaming ? 'Generating...' : wandState.searchQuery}
273273
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
274274
wandState.onSearchChange(e.target.value)
275275
}
276-
onBlur={wandState.onSearchBlur}
276+
onBlur={(e: React.FocusEvent<HTMLInputElement>) => {
277+
// Only close if clicking outside the input container (not on the submit button)
278+
const relatedTarget = e.relatedTarget as HTMLElement | null
279+
if (relatedTarget?.closest('button')) return
280+
wandState.onSearchBlur()
281+
}}
277282
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
278283
if (
279284
e.key === 'Enter' &&
@@ -287,7 +292,7 @@ const renderLabel = (
287292
}}
288293
disabled={wandState.isStreaming}
289294
className={cn(
290-
'h-5 max-w-[200px] flex-1 text-[11px]',
295+
'h-5 min-w-[80px] flex-1 text-[11px]',
291296
wandState.isStreaming && 'text-muted-foreground'
292297
)}
293298
placeholder='Generate with AI...'

0 commit comments

Comments
 (0)