mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
fix(selectors): enable search on all picker and selector subBlocks (#4269)
This commit is contained in:
@@ -62,7 +62,6 @@ export const AirtableBlock: BlockConfig<AirtableResponse> = {
|
||||
canonicalParamId: 'baseId',
|
||||
serviceId: 'airtable',
|
||||
selectorKey: 'airtable.bases',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Airtable base',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -86,7 +85,6 @@ export const AirtableBlock: BlockConfig<AirtableResponse> = {
|
||||
canonicalParamId: 'tableId',
|
||||
serviceId: 'airtable',
|
||||
selectorKey: 'airtable.tables',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Airtable table',
|
||||
dependsOn: ['credential', 'baseSelector'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -58,7 +58,6 @@ export const AsanaBlock: BlockConfig<AsanaResponse> = {
|
||||
canonicalParamId: 'workspace',
|
||||
serviceId: 'asana',
|
||||
selectorKey: 'asana.workspaces',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Asana workspace',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -110,7 +109,6 @@ export const AsanaBlock: BlockConfig<AsanaResponse> = {
|
||||
canonicalParamId: 'getTasks_workspace',
|
||||
serviceId: 'asana',
|
||||
selectorKey: 'asana.workspaces',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Asana workspace',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -96,7 +96,6 @@ export const AttioBlock: BlockConfig<AttioResponse> = {
|
||||
canonicalParamId: 'objectType',
|
||||
serviceId: 'attio',
|
||||
selectorKey: 'attio.objects',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select object type',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -570,7 +569,6 @@ Return ONLY the JSON array. No explanations, no markdown, no extra text.
|
||||
canonicalParamId: 'listIdOrSlug',
|
||||
serviceId: 'attio',
|
||||
selectorKey: 'attio.lists',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Attio list',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -74,7 +74,6 @@ export const CalComBlock: BlockConfig<ToolResponse> = {
|
||||
canonicalParamId: 'eventTypeId',
|
||||
serviceId: 'calcom',
|
||||
selectorKey: 'calcom.eventTypes',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select event type',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -289,7 +288,6 @@ Return ONLY the IANA timezone string - no explanations or quotes.`,
|
||||
canonicalParamId: 'eventTypeIdParam',
|
||||
serviceId: 'calcom',
|
||||
selectorKey: 'calcom.eventTypes',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select event type',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -414,7 +412,6 @@ Return ONLY the IANA timezone string - no explanations or quotes.`,
|
||||
canonicalParamId: 'eventTypeScheduleId',
|
||||
serviceId: 'calcom',
|
||||
selectorKey: 'calcom.schedules',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select schedule',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -455,7 +452,6 @@ Return ONLY the IANA timezone string - no explanations or quotes.`,
|
||||
canonicalParamId: 'scheduleId',
|
||||
serviceId: 'calcom',
|
||||
selectorKey: 'calcom.schedules',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select schedule',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -589,7 +589,6 @@ export const ConfluenceV2Block: BlockConfig<ConfluenceResponse> = {
|
||||
canonicalParamId: 'spaceId',
|
||||
serviceId: 'confluence',
|
||||
selectorKey: 'confluence.spaces',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Confluence space',
|
||||
dependsOn: ['credential', 'domain'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -118,7 +118,6 @@ Return ONLY the SQL query - no explanations, no quotes, no extra text.`,
|
||||
canonicalParamId: 'datasetId',
|
||||
serviceId: 'google-bigquery',
|
||||
selectorKey: 'bigquery.datasets',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select BigQuery dataset',
|
||||
dependsOn: ['credential', 'projectId'],
|
||||
mode: 'basic',
|
||||
@@ -143,7 +142,6 @@ Return ONLY the SQL query - no explanations, no quotes, no extra text.`,
|
||||
canonicalParamId: 'tableId',
|
||||
serviceId: 'google-bigquery',
|
||||
selectorKey: 'bigquery.tables',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select BigQuery table',
|
||||
dependsOn: ['credential', 'projectId', 'datasetSelector'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -68,7 +68,6 @@ export const GoogleCalendarBlock: BlockConfig<GoogleCalendarResponse> = {
|
||||
canonicalParamId: 'calendarId',
|
||||
serviceId: 'google-calendar',
|
||||
selectorKey: 'google.calendar',
|
||||
selectorAllowSearch: false,
|
||||
requiredScopes: getScopesForService('google-calendar'),
|
||||
placeholder: 'Select calendar',
|
||||
dependsOn: ['credential'],
|
||||
@@ -334,7 +333,6 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
|
||||
canonicalParamId: 'destinationCalendarId',
|
||||
serviceId: 'google-calendar',
|
||||
selectorKey: 'google.calendar',
|
||||
selectorAllowSearch: false,
|
||||
requiredScopes: getScopesForService('google-calendar'),
|
||||
placeholder: 'Select destination calendar',
|
||||
dependsOn: ['credential'],
|
||||
|
||||
@@ -387,7 +387,6 @@ export const GoogleSheetsV2Block: BlockConfig<GoogleSheetsV2Response> = {
|
||||
canonicalParamId: 'sheetName',
|
||||
serviceId: 'google-sheets',
|
||||
selectorKey: 'google.sheets',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select a sheet',
|
||||
required: true,
|
||||
dependsOn: { all: ['credential'], any: ['spreadsheetId', 'manualSpreadsheetId'] },
|
||||
|
||||
@@ -64,7 +64,6 @@ export const GoogleTasksBlock: BlockConfig<GoogleTasksResponse> = {
|
||||
canonicalParamId: 'taskListId',
|
||||
serviceId: 'google-tasks',
|
||||
selectorKey: 'google.tasks.lists',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select task list',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -95,7 +95,6 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
canonicalParamId: 'serviceDeskId',
|
||||
serviceId: 'jira',
|
||||
selectorKey: 'jsm.serviceDesks',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select service desk',
|
||||
dependsOn: ['credential', 'domain'],
|
||||
mode: 'basic',
|
||||
@@ -169,7 +168,6 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
canonicalParamId: 'requestTypeId',
|
||||
serviceId: 'jira',
|
||||
selectorKey: 'jsm.requestTypes',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select request type',
|
||||
dependsOn: ['credential', 'domain', 'serviceDeskSelector'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -428,7 +428,6 @@ export const MicrosoftExcelV2Block: BlockConfig<MicrosoftExcelV2Response> = {
|
||||
canonicalParamId: 'driveId',
|
||||
serviceId: 'microsoft-excel',
|
||||
selectorKey: 'microsoft.excel.drives',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select a document library',
|
||||
dependsOn: ['credential', 'siteSelector', 'fileSource'],
|
||||
condition: { field: 'fileSource', value: 'sharepoint' },
|
||||
@@ -478,7 +477,6 @@ export const MicrosoftExcelV2Block: BlockConfig<MicrosoftExcelV2Response> = {
|
||||
canonicalParamId: 'sheetName',
|
||||
serviceId: 'microsoft-excel',
|
||||
selectorKey: 'microsoft.excel.sheets',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select a sheet',
|
||||
required: true,
|
||||
dependsOn: {
|
||||
|
||||
@@ -87,7 +87,6 @@ export const MicrosoftPlannerBlock: BlockConfig<MicrosoftPlannerResponse> = {
|
||||
canonicalParamId: 'planId',
|
||||
serviceId: 'microsoft-planner',
|
||||
selectorKey: 'microsoft.planner.plans',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select a plan',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -70,7 +70,6 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
|
||||
canonicalParamId: 'teamId',
|
||||
serviceId: 'microsoft-teams',
|
||||
selectorKey: 'microsoft.teams',
|
||||
selectorAllowSearch: false,
|
||||
requiredScopes: [],
|
||||
placeholder: 'Select a team',
|
||||
dependsOn: ['credential'],
|
||||
@@ -117,7 +116,6 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
|
||||
canonicalParamId: 'chatId',
|
||||
serviceId: 'microsoft-teams',
|
||||
selectorKey: 'microsoft.chats',
|
||||
selectorAllowSearch: false,
|
||||
requiredScopes: [],
|
||||
placeholder: 'Select a chat',
|
||||
dependsOn: ['credential'],
|
||||
@@ -148,7 +146,6 @@ export const MicrosoftTeamsBlock: BlockConfig<MicrosoftTeamsResponse> = {
|
||||
canonicalParamId: 'channelId',
|
||||
serviceId: 'microsoft-teams',
|
||||
selectorKey: 'microsoft.channels',
|
||||
selectorAllowSearch: false,
|
||||
requiredScopes: [],
|
||||
placeholder: 'Select a channel',
|
||||
dependsOn: ['credential', 'teamSelector'],
|
||||
|
||||
@@ -93,7 +93,6 @@ export const NotionBlock: BlockConfig<NotionResponse> = {
|
||||
canonicalParamId: 'databaseId',
|
||||
serviceId: 'notion',
|
||||
selectorKey: 'notion.databases',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Notion database',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -98,7 +98,6 @@ export const PipedriveBlock: BlockConfig<PipedriveResponse> = {
|
||||
canonicalParamId: 'pipeline_id',
|
||||
serviceId: 'pipedrive',
|
||||
selectorKey: 'pipedrive.pipelines',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select pipeline',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -108,7 +108,6 @@ export const SharepointBlock: BlockConfig<SharepointResponse> = {
|
||||
canonicalParamId: 'listId',
|
||||
serviceId: 'sharepoint',
|
||||
selectorKey: 'sharepoint.lists',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select a list',
|
||||
dependsOn: ['credential', 'siteSelector'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -107,7 +107,6 @@ export const TrelloBlock: BlockConfig<TrelloResponse> = {
|
||||
canonicalParamId: 'boardId',
|
||||
serviceId: 'trello',
|
||||
selectorKey: 'trello.boards',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Trello board',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
|
||||
@@ -60,7 +60,6 @@ export const WebflowBlock: BlockConfig<WebflowResponse> = {
|
||||
canonicalParamId: 'siteId',
|
||||
serviceId: 'webflow',
|
||||
selectorKey: 'webflow.sites',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select Webflow site',
|
||||
dependsOn: ['credential'],
|
||||
mode: 'basic',
|
||||
@@ -82,7 +81,6 @@ export const WebflowBlock: BlockConfig<WebflowResponse> = {
|
||||
canonicalParamId: 'collectionId',
|
||||
serviceId: 'webflow',
|
||||
selectorKey: 'webflow.collections',
|
||||
selectorAllowSearch: false,
|
||||
placeholder: 'Select collection',
|
||||
dependsOn: ['credential', 'siteSelector'],
|
||||
mode: 'basic',
|
||||
|
||||
Reference in New Issue
Block a user