mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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
This commit is contained in:
+9
-9
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { Command } from 'cmdk'
|
||||
import { Database, HelpCircle, Layout, Settings, Table } from 'lucide-react'
|
||||
import { Database, HelpCircle, Layout, Settings } from 'lucide-react'
|
||||
import { useParams, useRouter } from 'next/navigation'
|
||||
import { createPortal } from 'react-dom'
|
||||
import { Library } from '@/components/emcn'
|
||||
@@ -119,13 +119,14 @@ export function SearchModal({
|
||||
href: `/workspace/${workspaceId}/knowledge`,
|
||||
hidden: permissionConfig.hideKnowledgeBaseTab,
|
||||
},
|
||||
{
|
||||
id: 'tables',
|
||||
name: 'Tables',
|
||||
icon: Table,
|
||||
href: `/workspace/${workspaceId}/tables`,
|
||||
hidden: permissionConfig.hideTablesTab,
|
||||
},
|
||||
// TODO: Uncomment when working on tables
|
||||
// {
|
||||
// id: 'tables',
|
||||
// name: 'Tables',
|
||||
// icon: Table,
|
||||
// href: `/workspace/${workspaceId}/tables`,
|
||||
// hidden: permissionConfig.hideTablesTab,
|
||||
// },
|
||||
{
|
||||
id: 'help',
|
||||
name: 'Help',
|
||||
@@ -145,7 +146,6 @@ export function SearchModal({
|
||||
openSettingsModal,
|
||||
permissionConfig.hideTemplates,
|
||||
permissionConfig.hideKnowledgeBaseTab,
|
||||
permissionConfig.hideTablesTab,
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { createLogger } from '@sim/logger'
|
||||
import { Database, HelpCircle, Layout, Plus, Search, Settings, Table } from 'lucide-react'
|
||||
import { Database, HelpCircle, Layout, Plus, Search, Settings } from 'lucide-react'
|
||||
import Link from 'next/link'
|
||||
import { useParams, usePathname, useRouter } from 'next/navigation'
|
||||
import { Button, Download, FolderPlus, Library, Loader, Tooltip } from '@/components/emcn'
|
||||
@@ -268,13 +268,14 @@ export const Sidebar = memo(function Sidebar() {
|
||||
href: `/workspace/${workspaceId}/knowledge`,
|
||||
hidden: permissionConfig.hideKnowledgeBaseTab,
|
||||
},
|
||||
{
|
||||
id: 'tables',
|
||||
label: 'Tables',
|
||||
icon: Table,
|
||||
href: `/workspace/${workspaceId}/tables`,
|
||||
hidden: permissionConfig.hideTablesTab,
|
||||
},
|
||||
// TODO: Uncomment when working on tables
|
||||
// {
|
||||
// id: 'tables',
|
||||
// label: 'Tables',
|
||||
// icon: Table,
|
||||
// href: `/workspace/${workspaceId}/tables`,
|
||||
// hidden: permissionConfig.hideTablesTab,
|
||||
// },
|
||||
{
|
||||
id: 'help',
|
||||
label: 'Help',
|
||||
@@ -288,12 +289,7 @@ export const Sidebar = memo(function Sidebar() {
|
||||
onClick: () => openSettingsModal(),
|
||||
},
|
||||
].filter((item) => !item.hidden),
|
||||
[
|
||||
workspaceId,
|
||||
permissionConfig.hideTemplates,
|
||||
permissionConfig.hideKnowledgeBaseTab,
|
||||
permissionConfig.hideTablesTab,
|
||||
]
|
||||
[workspaceId, permissionConfig.hideTemplates, permissionConfig.hideKnowledgeBaseTab]
|
||||
)
|
||||
|
||||
const isLoading = workflowsLoading || sessionLoading
|
||||
|
||||
@@ -222,7 +222,8 @@ Return ONLY the description text - no explanations.`,
|
||||
id: 'requestFieldValues',
|
||||
title: 'Request Field Values',
|
||||
type: 'long-input',
|
||||
placeholder: 'JSON object of field values (e.g., {"summary": "Title", "customfield_10010": "value"})',
|
||||
placeholder:
|
||||
'JSON object of field values (e.g., {"summary": "Title", "customfield_10010": "value"})',
|
||||
condition: { field: 'operation', value: 'create_request' },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -139,7 +139,6 @@ import { StarterBlock } from '@/blocks/blocks/starter'
|
||||
import { StripeBlock } from '@/blocks/blocks/stripe'
|
||||
import { SttBlock, SttV2Block } from '@/blocks/blocks/stt'
|
||||
import { SupabaseBlock } from '@/blocks/blocks/supabase'
|
||||
import { TableBlock } from '@/blocks/blocks/table'
|
||||
import { TavilyBlock } from '@/blocks/blocks/tavily'
|
||||
import { TelegramBlock } from '@/blocks/blocks/telegram'
|
||||
import { TextractBlock, TextractV2Block } from '@/blocks/blocks/textract'
|
||||
@@ -331,7 +330,8 @@ export const registry: Record<string, BlockConfig> = {
|
||||
stt: SttBlock,
|
||||
stt_v2: SttV2Block,
|
||||
supabase: SupabaseBlock,
|
||||
table: TableBlock,
|
||||
// TODO: Uncomment when working on tables
|
||||
// table: TableBlock,
|
||||
tavily: TavilyBlock,
|
||||
telegram: TelegramBlock,
|
||||
textract: TextractBlock,
|
||||
|
||||
Reference in New Issue
Block a user