Skip to content

Commit 1253416

Browse files
authored
fix(tables): hide tables from sidebar and block registry (#3270)
* fix(tables): hide tables from sidebar and block registry * fix(trigger): add isolated-vm support to trigger.dev container builds (#3269) Scheduled workflow executions running in trigger.dev containers were failing to spawn isolated-vm workers because the native module wasn't available in the container. This caused loop condition evaluation to silently fail and exit after one iteration. - Add isolated-vm to build.external and additionalPackages in trigger config - Include isolated-vm-worker.cjs via additionalFiles for child process spawning - Add fallback path resolution for worker file in trigger.dev environment * lint
1 parent 55920e9 commit 1253416

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/search-modal.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
44
import { Command } from 'cmdk'
5-
import { Database, HelpCircle, Layout, Settings, Table } from 'lucide-react'
5+
import { Database, HelpCircle, Layout, Settings } from 'lucide-react'
66
import { useParams, useRouter } from 'next/navigation'
77
import { createPortal } from 'react-dom'
88
import { Library } from '@/components/emcn'
@@ -119,13 +119,14 @@ export function SearchModal({
119119
href: `/workspace/${workspaceId}/knowledge`,
120120
hidden: permissionConfig.hideKnowledgeBaseTab,
121121
},
122-
{
123-
id: 'tables',
124-
name: 'Tables',
125-
icon: Table,
126-
href: `/workspace/${workspaceId}/tables`,
127-
hidden: permissionConfig.hideTablesTab,
128-
},
122+
// TODO: Uncomment when working on tables
123+
// {
124+
// id: 'tables',
125+
// name: 'Tables',
126+
// icon: Table,
127+
// href: `/workspace/${workspaceId}/tables`,
128+
// hidden: permissionConfig.hideTablesTab,
129+
// },
129130
{
130131
id: 'help',
131132
name: 'Help',
@@ -145,7 +146,6 @@ export function SearchModal({
145146
openSettingsModal,
146147
permissionConfig.hideTemplates,
147148
permissionConfig.hideKnowledgeBaseTab,
148-
permissionConfig.hideTablesTab,
149149
]
150150
)
151151

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
44
import { createLogger } from '@sim/logger'
5-
import { Database, HelpCircle, Layout, Plus, Search, Settings, Table } from 'lucide-react'
5+
import { Database, HelpCircle, Layout, Plus, Search, Settings } from 'lucide-react'
66
import Link from 'next/link'
77
import { useParams, usePathname, useRouter } from 'next/navigation'
88
import { Button, Download, FolderPlus, Library, Loader, Tooltip } from '@/components/emcn'
@@ -268,13 +268,14 @@ export const Sidebar = memo(function Sidebar() {
268268
href: `/workspace/${workspaceId}/knowledge`,
269269
hidden: permissionConfig.hideKnowledgeBaseTab,
270270
},
271-
{
272-
id: 'tables',
273-
label: 'Tables',
274-
icon: Table,
275-
href: `/workspace/${workspaceId}/tables`,
276-
hidden: permissionConfig.hideTablesTab,
277-
},
271+
// TODO: Uncomment when working on tables
272+
// {
273+
// id: 'tables',
274+
// label: 'Tables',
275+
// icon: Table,
276+
// href: `/workspace/${workspaceId}/tables`,
277+
// hidden: permissionConfig.hideTablesTab,
278+
// },
278279
{
279280
id: 'help',
280281
label: 'Help',
@@ -288,12 +289,7 @@ export const Sidebar = memo(function Sidebar() {
288289
onClick: () => openSettingsModal(),
289290
},
290291
].filter((item) => !item.hidden),
291-
[
292-
workspaceId,
293-
permissionConfig.hideTemplates,
294-
permissionConfig.hideKnowledgeBaseTab,
295-
permissionConfig.hideTablesTab,
296-
]
292+
[workspaceId, permissionConfig.hideTemplates, permissionConfig.hideKnowledgeBaseTab]
297293
)
298294

299295
const isLoading = workflowsLoading || sessionLoading

apps/sim/blocks/blocks/jira_service_management.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ Return ONLY the description text - no explanations.`,
222222
id: 'requestFieldValues',
223223
title: 'Request Field Values',
224224
type: 'long-input',
225-
placeholder: 'JSON object of field values (e.g., {"summary": "Title", "customfield_10010": "value"})',
225+
placeholder:
226+
'JSON object of field values (e.g., {"summary": "Title", "customfield_10010": "value"})',
226227
condition: { field: 'operation', value: 'create_request' },
227228
},
228229
{

apps/sim/blocks/registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ import { StarterBlock } from '@/blocks/blocks/starter'
139139
import { StripeBlock } from '@/blocks/blocks/stripe'
140140
import { SttBlock, SttV2Block } from '@/blocks/blocks/stt'
141141
import { SupabaseBlock } from '@/blocks/blocks/supabase'
142-
import { TableBlock } from '@/blocks/blocks/table'
143142
import { TavilyBlock } from '@/blocks/blocks/tavily'
144143
import { TelegramBlock } from '@/blocks/blocks/telegram'
145144
import { TextractBlock, TextractV2Block } from '@/blocks/blocks/textract'
@@ -331,7 +330,8 @@ export const registry: Record<string, BlockConfig> = {
331330
stt: SttBlock,
332331
stt_v2: SttV2Block,
333332
supabase: SupabaseBlock,
334-
table: TableBlock,
333+
// TODO: Uncomment when working on tables
334+
// table: TableBlock,
335335
tavily: TavilyBlock,
336336
telegram: TelegramBlock,
337337
textract: TextractBlock,

0 commit comments

Comments
 (0)