Skip to content

Commit b08c7f3

Browse files
refactor(tables): rename wrapper to <Table>, grid to <TableGrid>
Match the naming convention used elsewhere in the workspace (workflow.tsx → <Workflow>, base.tsx → <Base>, logs.tsx → <Logs>). - tables-detail.tsx → table.tsx (exports <Table>) - components/table/ → components/table-grid/ (exports <TableGrid>) - components/table-grid/table.tsx → table-grid.tsx - Drop <ExecutionDetailsSidebar> — was a 3-line passthrough (executionId → useLogByExecutionId → <LogDetails>); inline directly into table.tsx where it's used. - Flatten components/run-status-control/ folder to a single components/run-status-control.tsx file. 25-line single-use component with no internal subdirs — folder was overhead. Matches knowledge's max-badge.tsx precedent. Net: 1 wrapper rename + grid rename + 2 folder collapses, all imports updated. The mothership chat callsite updates from <TablesDetail embedded> to <Table embedded>. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5b5a6e1 commit b08c7f3

24 files changed

Lines changed: 28 additions & 50 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
useUserPermissionsContext,
4343
useWorkspacePermissionsContext,
4444
} from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
45-
import { TablesDetail } from '@/app/workspace/[workspaceId]/tables/[tableId]/tables-detail'
45+
import { Table } from '@/app/workspace/[workspaceId]/tables/[tableId]/table'
4646
import { useUsageLimits } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/hooks'
4747
import { useWorkflowExecution } from '@/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-workflow-execution'
4848
import { useFolders } from '@/hooks/queries/folders'
@@ -148,7 +148,7 @@ export const ResourceContent = memo(function ResourceContent({
148148
switch (resource.type) {
149149
case 'table':
150150
return (
151-
<TablesDetail
151+
<Table
152152
key={resource.id}
153153
workspaceId={workspaceId}
154154
tableId={resource.id}

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/execution-details-sidebar/execution-details-sidebar.tsx

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/execution-details-sidebar/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
export * from './column-config-sidebar'
22
export * from './context-menu'
3-
export * from './execution-details-sidebar'
43
export * from './new-column-dropdown'
54
export * from './row-modal'
65
export * from './run-status-control'
7-
export * from './table'
86
export * from './table-action-bar'
97
export * from './table-filter'
8+
export * from './table-grid'
109
export * from './workflow-sidebar'

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/run-status-control/run-status-control.tsx renamed to apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/run-status-control.tsx

File renamed without changes.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/run-status-control/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/cells/cell-content.tsx renamed to apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/cell-content.tsx

File renamed without changes.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/cells/cell-render.tsx renamed to apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/cell-render.tsx

File renamed without changes.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/cells/expanded-cell-popover.tsx renamed to apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/expanded-cell-popover.tsx

File renamed without changes.

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/cells/index.ts renamed to apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)