From 64eee587cd972875da9cce3d9734c25538078b3e Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Fri, 17 Oct 2025 14:58:23 -0700 Subject: [PATCH] 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 --- .../components/schedule/components/schedule-modal.tsx | 4 ++++ apps/sim/blocks/blocks/google_drive.ts | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components/schedule-modal.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components/schedule-modal.tsx index e8fe9077ea..33364525e2 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components/schedule-modal.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/schedule/components/schedule-modal.tsx @@ -373,11 +373,15 @@ export function ScheduleModal({ placeholder='15' type='number' min='1' + max='59' className='h-10' autoComplete='off' data-form-type='other' name='minutes-interval' /> +

+ Specify the interval in minutes (1-59) +

)} diff --git a/apps/sim/blocks/blocks/google_drive.ts b/apps/sim/blocks/blocks/google_drive.ts index 7348e91a6c..f8b30c7b6b 100644 --- a/apps/sim/blocks/blocks/google_drive.ts +++ b/apps/sim/blocks/blocks/google_drive.ts @@ -90,17 +90,16 @@ export const GoogleDriveBlock: BlockConfig = { type: 'dropdown', layout: 'full', options: [ - { label: 'Auto-detect from file', id: '' }, + { label: 'Plain Text (text/plain)', id: 'text/plain' }, { label: 'Google Doc', id: 'application/vnd.google-apps.document' }, { label: 'Google Sheet', id: 'application/vnd.google-apps.spreadsheet' }, { label: 'Google Slides', id: 'application/vnd.google-apps.presentation' }, - { label: 'PDF (application/pdf)', id: 'application/pdf' }, - { label: 'Plain Text (text/plain)', id: 'text/plain' }, { label: 'HTML (text/html)', id: 'text/html' }, { label: 'CSV (text/csv)', id: 'text/csv' }, + { label: 'PDF (application/pdf)', id: 'application/pdf' }, ], - placeholder: 'Select a file type (optional)', - condition: { field: 'operation', value: ['create_file', 'upload'] }, + placeholder: 'Select file type', + condition: { field: 'operation', value: 'create_file' }, required: false, }, {