You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d998f66
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(tables): move the shared dependencies out of the route tree
Step 1 of migrating tables onto the resource axes: pure relocations, no logic.
A canonical unit may not import `@/app/**`, so everything the table shell reaches
for has to either move somewhere both sides can see it, or be replaced later.
- `Resource`/`BreadcrumbItem`/`ColumnOption`/`SortConfig` now come from
`@/components/resource` directly. The workspace barrel was only re-exporting
them, so this is the same module by a shorter path.
- `useLogDetailsResize` moves to `@/hooks/`. Its only dependency is the logs UI
store, which is already global, and it has consumers in two route trees.
- `ImportCsvDialog` and `ImportProgressMenu` move to `components/table-import/`.
Both are mounted by the tables *list* page as well as the detail shell, so
they cannot live inside the unit — same reasoning as `Resource` and
`AnchoredContextMenu` before them.
Cross-route edges out of `tables/[tableId]` drop from 7 targets to 4. The two
remaining `@/app/workspace/[workspaceId]/components` imports are in `error.tsx`
and `loading.tsx`, which stay behind as route files.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/enrichment-details/enrichment-details.tsx
0 commit comments