From 36f8285bf3ab13b4f04bc8258694c0d8bf02eca9 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sat, 14 Nov 2026 18:36:13 -0500 Subject: [PATCH 1/7] Fold table controls into the view selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every list page placed its filter, tools menu, search and create button differently: four homes for the filter and "⋮", three button styles and five orders in the top bar. The view selector's menu now holds filters and fields, copy link, export, refresh and reset on every table (chrome.pickerProps), and the top bar is always secondary buttons, create, then search (ListActions / useListTopbar). PageLayout pages can publish into their own bar, which puts Docker on the same shell as Servers. Docker's KPI strip is gone, along with the four list fetches it made only to count rows. --- docs/MIGRATION_INVENTORY.md | 2 +- .../src/components/EnvironmentVariables.jsx | 12 +- frontend/src/components/ProcessTable.jsx | 12 +- .../src/components/databases/BackupsTab.jsx | 17 +-- .../components/databases/ProcessListPanel.jsx | 12 +- .../src/components/databases/TableDataTab.jsx | 15 +- frontend/src/components/docker/ComposeTab.jsx | 36 ++--- .../src/components/docker/ContainersTab.jsx | 86 ++++-------- frontend/src/components/docker/ImagesTab.jsx | 52 +++---- .../src/components/docker/NetworksTab.jsx | 47 +++---- frontend/src/components/docker/VolumesTab.jsx | 46 +++---- frontend/src/components/ds/ListActions.jsx | 26 ++++ frontend/src/components/ds/ListToolbar.jsx | 6 +- .../src/components/ds/grid/GridViewPicker.jsx | 16 +-- .../src/components/ds/grid/useTableChrome.js | 44 ++++-- frontend/src/components/ds/index.js | 1 + .../components/layouts/ResourceListPage.jsx | 81 ++++------- .../src/components/security/FirewallTab.jsx | 16 +-- .../src/components/security/IPListsTab.jsx | 16 +-- .../src/components/security/IntegrityTab.jsx | 16 +-- .../src/components/security/SSHKeysTab.jsx | 16 +-- .../serverdetail/CloudflaredTab.jsx | 19 +-- .../src/components/serverdetail/CronTab.jsx | 27 +--- .../components/serverdetail/ServicesTab.jsx | 12 +- .../components/service-detail/EventsTab.jsx | 12 +- .../components/settings/ApiSettingsTab.jsx | 15 +- .../components/settings/InvitationsTab.jsx | 12 +- .../settings/MigrationHistoryTab.jsx | 16 +-- .../src/components/settings/RecycleBinTab.jsx | 16 +-- frontend/src/components/settings/UsersTab.jsx | 12 +- .../workspaces/WorkspaceApplicationsTab.jsx | 15 +- .../workspaces/WorkspaceMembersTab.jsx | 15 +- .../workspaces/WorkspaceServersTab.jsx | 15 +- frontend/src/hooks/useTopbarActions.js | 42 +++++- frontend/src/layouts/PageLayout.jsx | 15 +- frontend/src/pages/Backups.jsx | 21 +-- frontend/src/pages/CronJobs.jsx | 48 +++---- frontend/src/pages/DeliveryLog.jsx | 33 ++--- frontend/src/pages/Deployments.jsx | 87 +++++------- frontend/src/pages/Docker.jsx | 129 +++--------------- frontend/src/pages/Domains.jsx | 69 +++++----- frontend/src/pages/Errors.jsx | 23 ++-- frontend/src/pages/FTPServer.jsx | 32 +---- frontend/src/pages/FleetProxy.jsx | 34 ++--- frontend/src/pages/Incidents.jsx | 22 +-- frontend/src/pages/Jobs.jsx | 50 +++---- frontend/src/pages/Marketplace.jsx | 20 +-- frontend/src/pages/MonitorDetail.jsx | 18 +-- frontend/src/pages/Monitors.jsx | 36 +++-- frontend/src/pages/QueueDetail.jsx | 30 +--- frontend/src/pages/QueueOperations.jsx | 71 ++++------ frontend/src/pages/ServerTemplates.jsx | 27 +--- frontend/src/pages/Telemetry.jsx | 60 ++++---- frontend/src/pages/Templates.jsx | 45 +++--- frontend/src/styles/pages/_docker.scss | 11 +- 55 files changed, 622 insertions(+), 1062 deletions(-) create mode 100644 frontend/src/components/ds/ListActions.jsx 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={( <>