Skip to content

Commit d0d79f5

Browse files
committed
fix(ci): keep metadata imports pure and narrow component graphs
1 parent 4e86c51 commit d0d79f5

63 files changed

Lines changed: 332 additions & 400 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/docs/content/docs/integrations/table.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Insert a new row into a table. IMPORTANT: You must use the "data" parameter (not
6161

6262
| Parameter | Type | Required | Description |
6363
| --------- | ---- | -------- | ----------- |
64-
| `tableId` | string | Yes | Table ID |
64+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
6565
| `data` | object | Yes | Row data as JSON object |
6666

6767
#### Output
@@ -80,7 +80,7 @@ Insert multiple rows into a table at once (up to 1000 rows)
8080

8181
| Parameter | Type | Required | Description |
8282
| --------- | ---- | -------- | ----------- |
83-
| `tableId` | string | Yes | Table ID |
83+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
8484
| `rows` | array | Yes | Array of row data objects \(max 1000 rows\) |
8585

8686
#### Output
@@ -100,7 +100,7 @@ Insert or update a row based on unique column constraints. If a row with matchin
100100

101101
| Parameter | Type | Required | Description |
102102
| --------- | ---- | -------- | ----------- |
103-
| `tableId` | string | Yes | Table ID |
103+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
104104
| `data` | object | Yes | Row data to insert or update |
105105
| `conflictTarget` | string | No | Unique column to match on. Required only when the table has more than one unique column. |
106106

@@ -121,7 +121,7 @@ Update an existing row in a table. Supports partial updates - only include the f
121121

122122
| Parameter | Type | Required | Description |
123123
| --------- | ---- | -------- | ----------- |
124-
| `tableId` | string | Yes | Table ID |
124+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
125125
| `rowId` | string | Yes | Row ID to update |
126126
| `data` | object | Yes | Updated row data |
127127

@@ -141,7 +141,7 @@ Update multiple rows that match filter criteria. Data is merged with existing ro
141141

142142
| Parameter | Type | Required | Description |
143143
| --------- | ---- | -------- | ----------- |
144-
| `tableId` | string | Yes | Table ID |
144+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
145145
| `filter` | object | Yes | Filter criteria using operators like $eq, $ne, $gt, $lt, $contains, $ncontains, $startsWith, $endsWith, $in, $nin, $empty, etc. |
146146
| `data` | object | Yes | Fields to update \(merged with existing data\) |
147147
| `limit` | number | No | Maximum number of rows to update \(default: no limit, max: 1000\) |
@@ -163,7 +163,7 @@ Delete a row from a table
163163

164164
| Parameter | Type | Required | Description |
165165
| --------- | ---- | -------- | ----------- |
166-
| `tableId` | string | Yes | Table ID |
166+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
167167
| `rowId` | string | Yes | Row ID to delete |
168168

169169
#### Output
@@ -182,7 +182,7 @@ Delete multiple rows that match filter criteria. Use with caution - supports opt
182182

183183
| Parameter | Type | Required | Description |
184184
| --------- | ---- | -------- | ----------- |
185-
| `tableId` | string | Yes | Table ID |
185+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
186186
| `filter` | object | Yes | Filter criteria using operators like $eq, $ne, $gt, $lt, $contains, $ncontains, $startsWith, $endsWith, $in, $nin, $empty, etc. |
187187
| `limit` | number | No | Maximum number of rows to delete \(default: no limit, max: 1000\) |
188188

@@ -203,7 +203,7 @@ Query rows with a typed predicate filter and cursor pagination. A single filter
203203

204204
| Parameter | Type | Required | Description |
205205
| --------- | ---- | -------- | ----------- |
206-
| `tableId` | string | Yes | Table ID |
206+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
207207
| `filter` | json | No | Predicate condition, e.g. `\{"field":"wins","op":"gte","value":10\}`. Use `all` or `any` for multiple conditions; omit to match all rows. |
208208
| `columns` | array | No | Stable column IDs or table column names to include in each row data object. Omit or pass an empty array to return all columns. A reference that matches no column is ignored. |
209209
| `order` | json | No | Sort spec, e.g. `\[\{"field":"wins","direction":"desc"\}\]`. |
@@ -229,7 +229,7 @@ Get a single row by ID
229229

230230
| Parameter | Type | Required | Description |
231231
| --------- | ---- | -------- | ----------- |
232-
| `tableId` | string | Yes | Table ID |
232+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
233233
| `rowId` | string | Yes | Row ID to retrieve |
234234

235235
#### Output
@@ -248,7 +248,7 @@ Get the schema configuration of a table
248248

249249
| Parameter | Type | Required | Description |
250250
| --------- | ---- | -------- | ----------- |
251-
| `tableId` | string | Yes | Table ID |
251+
| `tableId` | string | Yes | Table ID in the execution workspace. In a workflow, the table must belong to the same workspace as the workflow. |
252252

253253
#### Output
254254

apps/sim/app/workspace/[workspaceId]/chat/[chatId]/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components'
3+
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components/error'
44

55
export default function ChatError({ error, reset }: ErrorBoundaryProps) {
66
return (

apps/sim/app/workspace/[workspaceId]/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components'
3+
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components/error'
44

55
export default function WorkspaceError({ error, reset }: ErrorBoundaryProps) {
66
return (

apps/sim/app/workspace/[workspaceId]/files/[fileId]/loading.tsx

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

33
import { File as FileIcon } from '@sim/emcn/icons'
44
import { noop } from '@sim/utils/helpers'
5-
import {
6-
type BreadcrumbItem,
7-
ResourceChromeFallback,
8-
} from '@/app/workspace/[workspaceId]/components'
95
import { FOLDERED_RESOURCE_HEADERS } from '@/app/workspace/[workspaceId]/components/folders/foldered-resources'
6+
import { ResourceChromeFallback } from '@/app/workspace/[workspaceId]/components/resource/components/resource-chrome-fallback'
7+
import type { BreadcrumbItem } from '@/app/workspace/[workspaceId]/components/resource/components/resource-header'
108

119
const FILES_HEADER = FOLDERED_RESOURCE_HEADERS.file
1210

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from '@/lib/mothership/chat/selection-context'
2626
import type { FileDownloadSource } from '@/lib/uploads/client/download'
2727
import type { WorkspaceFileRecord } from '@/lib/uploads/contexts/workspace'
28-
import { FindBar } from '@/app/workspace/[workspaceId]/components'
28+
import { FindBar } from '@/app/workspace/[workspaceId]/components/find-bar/find-bar'
2929
import { FileSaveConflict } from '@/app/workspace/[workspaceId]/files/components/file-viewer/file-save-conflict'
3030
import { PreviewLoadingFrame } from '@/app/workspace/[workspaceId]/files/components/file-viewer/preview-shared'
3131
import {

apps/sim/app/workspace/[workspaceId]/files/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components'
3+
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components/error'
44

55
export default function FilesError({ error, reset }: ErrorBoundaryProps) {
66
return (

apps/sim/app/workspace/[workspaceId]/files/files.tsx

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,8 @@ import {
5454
SUPPORTED_VIDEO_EXTENSIONS,
5555
} from '@/lib/uploads/utils/validation'
5656
import { SIM_PAGE_CONTENT_TYPE } from '@/lib/workspace-files/page-compile'
57-
import type {
58-
BreadcrumbItem,
59-
FilterTag,
60-
ResourceAction,
61-
ResourceColumn,
62-
ResourceRow,
63-
ResourceTableHandle,
64-
SearchConfig,
65-
SortConfig,
66-
} from '@/app/workspace/[workspaceId]/components'
67-
import {
68-
EMPTY_CELL_PLACEHOLDER,
69-
FILTER_SECTION_LABEL_CLASS,
70-
FindBar,
71-
OwnerAvatar,
72-
ownerCell,
73-
Resource,
74-
resourceListState,
75-
selectionLabel,
76-
timeCell,
77-
useFindShortcut,
78-
useResourceRowSelection,
79-
} from '@/app/workspace/[workspaceId]/components'
57+
import { FindBar } from '@/app/workspace/[workspaceId]/components/find-bar/find-bar'
58+
import { useFindShortcut } from '@/app/workspace/[workspaceId]/components/find-bar/use-find-shortcut'
8059
import type {
8160
MoveOptionNode,
8261
SortableResource,
@@ -101,10 +80,37 @@ import {
10180
useFolderRowDragDrop,
10281
} from '@/app/workspace/[workspaceId]/components/folders'
10382
import { ResourceActionBar } from '@/app/workspace/[workspaceId]/components/resource/components/action-bar'
83+
import {
84+
OwnerAvatar,
85+
ownerCell,
86+
} from '@/app/workspace/[workspaceId]/components/resource/components/owner-cell'
10487
import {
10588
FilesEmptyState,
10689
ResourceNoResults,
10790
} from '@/app/workspace/[workspaceId]/components/resource/components/resource-empty-state'
91+
import type {
92+
BreadcrumbItem,
93+
ResourceAction,
94+
} from '@/app/workspace/[workspaceId]/components/resource/components/resource-header'
95+
import type {
96+
FilterTag,
97+
SearchConfig,
98+
SortConfig,
99+
} from '@/app/workspace/[workspaceId]/components/resource/components/resource-options'
100+
import { FILTER_SECTION_LABEL_CLASS } from '@/app/workspace/[workspaceId]/components/resource/components/resource-options'
101+
import { timeCell } from '@/app/workspace/[workspaceId]/components/resource/components/time-cell'
102+
import { resourceListState } from '@/app/workspace/[workspaceId]/components/resource/is-resource-list-empty'
103+
import type {
104+
ResourceColumn,
105+
ResourceRow,
106+
ResourceTableHandle,
107+
} from '@/app/workspace/[workspaceId]/components/resource/resource'
108+
import {
109+
EMPTY_CELL_PLACEHOLDER,
110+
Resource,
111+
} from '@/app/workspace/[workspaceId]/components/resource/resource'
112+
import { selectionLabel } from '@/app/workspace/[workspaceId]/components/resource/selection-label'
113+
import { useResourceRowSelection } from '@/app/workspace/[workspaceId]/components/resource/use-resource-row-selection'
108114
import { DeleteConfirmModal } from '@/app/workspace/[workspaceId]/files/components/delete-confirm-modal'
109115
import { FileRowContextMenu } from '@/app/workspace/[workspaceId]/files/components/file-row-context-menu'
110116
import type { PreviewMode } from '@/app/workspace/[workspaceId]/files/components/file-viewer'

apps/sim/app/workspace/[workspaceId]/files/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { File as FilesIcon, FolderPlus, Plus, Upload } from '@sim/emcn'
44
import {
55
type ChromeActionSpec,
66
ResourceChromeFallback,
7-
} from '@/app/workspace/[workspaceId]/components'
7+
} from '@/app/workspace/[workspaceId]/components/resource/components/resource-chrome-fallback'
88

99
const COLUMNS = [
1010
{ id: 'name', header: 'Name', widthMultiplier: 1.15 },

apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { useQueryClient } from '@tanstack/react-query'
1717
import { defaultRangeExtractor, type Range, useVirtualizer } from '@tanstack/react-virtual'
1818
import { SMOOTH_CHASE_RATE } from '@/lib/core/utils/smooth-bottom-chase'
1919
import type { WorkspaceFileRecord } from '@/lib/uploads/contexts/workspace'
20-
import { MessageActions } from '@/app/workspace/[workspaceId]/components'
20+
import { MessageActions } from '@/app/workspace/[workspaceId]/components/message-actions'
2121
import { ChatMessageAttachments } from '@/app/workspace/[workspaceId]/home/components/chat-message-attachments'
2222
import { ChatSurfaceProvider } from '@/app/workspace/[workspaceId]/home/components/chat-surface-context'
2323
import {

apps/sim/app/workspace/[workspaceId]/home/error.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components'
3+
import { type ErrorBoundaryProps, ErrorState } from '@/app/workspace/[workspaceId]/components/error'
44

55
export default function HomeError({ error, reset }: ErrorBoundaryProps) {
66
return (

0 commit comments

Comments
 (0)