Skip to content

Commit 64eee58

Browse files
improvement(gdrive): remove mime type subblock from upload file tool (#1674)
* remove mime type subblock from upload file tool for gdrive * add UI message to limit every x minutes to <60
1 parent 35c5519 commit 64eee58

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

  • apps/sim
    • app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components
    • blocks/blocks

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components/schedule-modal.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,15 @@ export function ScheduleModal({
373373
placeholder='15'
374374
type='number'
375375
min='1'
376+
max='59'
376377
className='h-10'
377378
autoComplete='off'
378379
data-form-type='other'
379380
name='minutes-interval'
380381
/>
382+
<p className='text-muted-foreground text-xs'>
383+
Specify the interval in minutes (1-59)
384+
</p>
381385
</div>
382386
)}
383387

apps/sim/blocks/blocks/google_drive.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,16 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
9090
type: 'dropdown',
9191
layout: 'full',
9292
options: [
93-
{ label: 'Auto-detect from file', id: '' },
93+
{ label: 'Plain Text (text/plain)', id: 'text/plain' },
9494
{ label: 'Google Doc', id: 'application/vnd.google-apps.document' },
9595
{ label: 'Google Sheet', id: 'application/vnd.google-apps.spreadsheet' },
9696
{ label: 'Google Slides', id: 'application/vnd.google-apps.presentation' },
97-
{ label: 'PDF (application/pdf)', id: 'application/pdf' },
98-
{ label: 'Plain Text (text/plain)', id: 'text/plain' },
9997
{ label: 'HTML (text/html)', id: 'text/html' },
10098
{ label: 'CSV (text/csv)', id: 'text/csv' },
99+
{ label: 'PDF (application/pdf)', id: 'application/pdf' },
101100
],
102-
placeholder: 'Select a file type (optional)',
103-
condition: { field: 'operation', value: ['create_file', 'upload'] },
101+
placeholder: 'Select file type',
102+
condition: { field: 'operation', value: 'create_file' },
104103
required: false,
105104
},
106105
{

0 commit comments

Comments
 (0)