diff --git a/docs/MIGRATION_INVENTORY.md b/docs/MIGRATION_INVENTORY.md index aa1e02b0..951bc903 100644 --- a/docs/MIGRATION_INVENTORY.md +++ b/docs/MIGRATION_INVENTORY.md @@ -19,7 +19,7 @@ debt. Regenerate with `python scripts/generate-migration-inventory.py`. | Hand-shaped {'error': ...} bodies in app/api | typed errors + the global handler | 849 | 850 | migrate when touched; new endpoints raise | | Raw subprocess calls outside the runners | app/utils/system.py runners | 23 | 23 | migrate when touched | | Controller-boundary violations (routes doing service work) | service layer extraction | 453 | 453 | migrate when touched (first-wave ratchet) | -| raw api.* calls in pages/ | E1: useServerQuery/useServerMutation | 371 | 371 | migrate when touched | +| raw api.* calls in pages/ | E1: useServerQuery/useServerMutation | 363 | 371 | migrate when touched | | per-page toast.error extractions in pages/ | E1: query-layer error presentation | 185 | 206 | migrate when touched | | hand-rolled form-group blocks | F2: FormField/useForm | 206 | 206 | migrate when touched | | unencoded ?k=${v} query interpolations in services/api | C4: buildQuery/encoding template | 0 | 0 | INVARIANT at 0 | diff --git a/frontend/src/components/EnvironmentVariables.jsx b/frontend/src/components/EnvironmentVariables.jsx index a452e3a4..7303bd35 100644 --- a/frontend/src/components/EnvironmentVariables.jsx +++ b/frontend/src/components/EnvironmentVariables.jsx @@ -15,8 +15,7 @@ import Modal from './Modal'; import EmptyState from './EmptyState'; import { DataTable, DataTableFooter, ListToolbar, SearchField } from '@/components/ds'; import { - useTableChrome, GridViewPicker, GridChips, GridFilterButton, - GridToolsMenu, GridFilterDrawer, + useTableChrome, GridViewPicker, GridChips, GridFilterDrawer, } from '@/components/ds/grid'; import { useTableSort } from '@/hooks/useTableSort'; import { useColumnVisibility } from '@/hooks/useColumnVisibility'; @@ -552,9 +551,9 @@ const EnvironmentVariables = ({ appId }) => { useTopbarChrome). No count on it — the footer reports that, under the rows it is counting. */} { onSearch={setSearch} placeholder={t('app.environmentVariables.searchKeysOrDescriptions', 'Search keys or descriptions…')} /> - chrome.setDrawerOpen(true)} - /> - )} /> diff --git a/frontend/src/components/ProcessTable.jsx b/frontend/src/components/ProcessTable.jsx index c4b699a5..bb2e99ba 100644 --- a/frontend/src/components/ProcessTable.jsx +++ b/frontend/src/components/ProcessTable.jsx @@ -6,8 +6,7 @@ import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { DataTable, DataTableFooter, SearchField } from '@/components/ds'; import { - useTableChrome, GridViewPicker, GridChips, GridFilterButton, - GridToolsMenu, GridFilterDrawer, + useTableChrome, GridViewPicker, GridChips, GridFilterDrawer, } from '@/components/ds/grid'; import { useTableSort } from '@/hooks/useTableSort'; import { useColumnVisibility } from '@/hooks/useColumnVisibility'; @@ -298,9 +297,9 @@ export function ProcessTable({ {/* One row of chrome: the view name is the heading, and search, the host's own controls, the filter button and the "⋮" ride it. */} {actions} - chrome.setDrawerOpen(true)} - /> - )} /> diff --git a/frontend/src/components/databases/BackupsTab.jsx b/frontend/src/components/databases/BackupsTab.jsx index 206c60a4..a1c8f86a 100644 --- a/frontend/src/components/databases/BackupsTab.jsx +++ b/frontend/src/components/databases/BackupsTab.jsx @@ -6,8 +6,7 @@ import { useConfirm } from '../../hooks/useConfirm'; import { formatBytes } from '@/utils/formatBytes'; import { DataTable, DataTableFooter, SearchField } from '@/components/ds'; import { - useTableChrome, GridViewPicker, GridChips, GridFilterButton, - GridToolsMenu, GridFilterDrawer, + useTableChrome, GridViewPicker, GridChips, GridFilterDrawer, } from '@/components/ds/grid'; import { useTableSort } from '@/hooks/useTableSort'; import { useColumnVisibility } from '@/hooks/useColumnVisibility'; @@ -222,10 +221,9 @@ export default function BackupsTab() { return (
} /> - chrome.setDrawerOpen(true)} - /> - )} /> diff --git a/frontend/src/components/databases/ProcessListPanel.jsx b/frontend/src/components/databases/ProcessListPanel.jsx index 16de77db..11a25bc6 100644 --- a/frontend/src/components/databases/ProcessListPanel.jsx +++ b/frontend/src/components/databases/ProcessListPanel.jsx @@ -7,8 +7,7 @@ import { usePolling } from '../../hooks/usePolling'; import EmptyState from '../EmptyState'; import { DataTable, DataTableFooter, SearchField } from '@/components/ds'; import { - useTableChrome, GridViewPicker, GridChips, GridFilterButton, - GridToolsMenu, GridFilterDrawer, + useTableChrome, GridViewPicker, GridChips, GridFilterDrawer, } from '@/components/ds/grid'; import { useTableSort } from '@/hooks/useTableSort'; import { useColumnVisibility } from '@/hooks/useColumnVisibility'; @@ -320,9 +319,9 @@ export default function ProcessListPanel({ conn, engine, active, isAdmin }) { is in the "⋮". No process count here — the footer reports it, under the rows it is counting. */} load() }} label="sessions" - onCreate={chrome.createView} actions={( <>