Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Give every list one table and every page full width

Juan Denis289a1571997d
diff --git a/frontend/package.json b/frontend/package.json
index 8d13defe..c4b2fa20 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -9,7 +9,7 @@
"test": "node --test",
"test:browser": "node scripts/settings-browser.mjs",
"test:settings-ui": "node scripts/settings-ui-browser.mjs",
- "lint": "node scripts/lint.mjs && node scripts/check-font-integrity.mjs && node scripts/check-settings-index.mjs && node scripts/check-theme-tokens.mjs && node scripts/check-frontend-boundaries.mjs && node scripts/check-style-ownership.mjs && node scripts/check-status-one-door.mjs && node scripts/check-shared-fields.mjs && node scripts/check-type-scale.mjs && node scripts/check-geometry.mjs && node scripts/check-status-scss.mjs && node scripts/check-i18n-literals.mjs && node scripts/check-intl-door.mjs && node scripts/extract-i18n.mjs --check && node scripts/check-i18n.mjs && node scripts/check-logical-properties.mjs && node scripts/generate-vendor-shims.mjs --check && node ../scripts/check-html-sinks.mjs",
+ "lint": "node scripts/lint.mjs && node scripts/check-font-integrity.mjs && node scripts/check-settings-index.mjs && node scripts/check-theme-tokens.mjs && node scripts/check-frontend-boundaries.mjs && node scripts/check-style-ownership.mjs && node scripts/check-status-one-door.mjs && node scripts/check-shared-fields.mjs && node scripts/check-tables.mjs && node scripts/check-type-scale.mjs && node scripts/check-geometry.mjs && node scripts/check-status-scss.mjs && node scripts/check-i18n-literals.mjs && node scripts/check-intl-door.mjs && node scripts/extract-i18n.mjs --check && node scripts/check-i18n.mjs && node scripts/check-logical-properties.mjs && node scripts/generate-vendor-shims.mjs --check && node ../scripts/check-html-sinks.mjs",
"lint:baseline": "node scripts/lint.mjs --update",
"test:controls": "node scripts/controls-browser.mjs",
"test:metrics": "node scripts/metrics-browser.mjs",
diff --git a/frontend/scripts/LOGICAL_PROPERTY_CEILING b/frontend/scripts/LOGICAL_PROPERTY_CEILING
index 5e4a5228..f1b1cb3a 100644
--- a/frontend/scripts/LOGICAL_PROPERTY_CEILING
+++ b/frontend/scripts/LOGICAL_PROPERTY_CEILING
@@ -1 +1 @@
-425
+404
diff --git a/frontend/scripts/check-frontend-boundaries.mjs b/frontend/scripts/check-frontend-boundaries.mjs
index 83b73694..28f7785c 100644
--- a/frontend/scripts/check-frontend-boundaries.mjs
+++ b/frontend/scripts/check-frontend-boundaries.mjs
@@ -57,7 +57,7 @@ const LEGACY_COLOR_LITERALS = new Map(Object.entries({
'styles/components/_dashboard-widgets.scss': 6,
'styles/components/_datagrid.scss': 6,
'styles/components/_deploy.scss': 6,
- 'styles/components/_design-system.scss': 2,
+ 'styles/components/_design-system.scss': 1,
'styles/components/_logs-drawer.scss': 1,
'styles/components/_notification-center.scss': 1,
'styles/components/_skeleton.scss': 1,
diff --git a/frontend/scripts/check-tables.mjs b/frontend/scripts/check-tables.mjs
new file mode 100644
index 00000000..2bb750a7
--- /dev/null
+++ b/frontend/scripts/check-tables.mjs
@@ -0,0 +1,107 @@
+#!/usr/bin/env node
+// One table. Every list table in the panel renders through ds/DataTable and
+// looks exactly like `.sk-dtable` inside `.sk-dtable-wrap`
+// (styles/components/_design-system.scss). Fails when a page:
+//
+// - restyles table elements (th/td/tr/thead/tbody, nth-child widths) in its
+// own SCSS instead of sizing columns through the column `width` prop,
+// - renders a raw <table> instead of DataTable,
+// - passes a `tableClassName` re-skin to DataTable.
+//
+// The Databases studio is the one exemption (its grids are an editor, not a
+// list). Counts may only go down; lower a ceiling when a migration lands.
+// Extension copies under src/plugins/ are out of scope (their source repos
+// adopt the SDK DataTable instead).
+
+import { readFileSync, readdirSync, statSync } from 'node:fs';
+import { join, relative, sep } from 'node:path';
+
+const SRC = new URL('../src', import.meta.url).pathname.replace(/^\/([A-Za-z]:)/, '$1');
+
+// Files that own table markup or styling.
+const OWNERS = new Set([
+ 'components/ui/table.jsx',
+ 'components/ds/DataTable.jsx',
+ 'components/ds/DataTableFooter.jsx',
+ 'styles/components/_design-system.scss',
+ 'styles/components/_ui.scss',
+ 'styles/components/_datagrid.scss',
+ 'styles/components/_tables.scss',
+ // Living documentation of the primitives.
+ 'pages/StyleGuide.jsx',
+ // Dashboard table widget: a widget can be three rows tall, so it keeps
+ // compact rows + a sticky head; its styling otherwise follows .sk-dtable.
+ 'components/dashboard/widgets/renderers.jsx',
+ 'styles/components/_dashboard-widgets.scss',
+]);
+// The Databases studio's own stylesheets (its tuner + insights grids).
+const EXEMPT = /^(components\/databases\/|styles\/pages\/_(databases|db-tuner)\.scss$|plugins\/)/;
+
+// Remaining legacy sites: the DNS drawer's fixed-layout table (`.ddp__table`
+// in _domains.scss + its tableClassName) and the now-unused `.sk-dlog__table`
+// rules in _notification-center.scss.
+const CEILINGS = {
+ scss: 1,
+ rawTable: 0,
+ tableClassName: 1,
+};
+
+function* walk(dir) {
+ for (const name of readdirSync(dir)) {
+ const p = join(dir, name);
+ if (statSync(p).isDirectory()) {
+ if (name === 'node_modules' || name === '__tests__') continue;
+ yield* walk(p);
+ } else if (/\.(jsx?|scss)$/.test(name)) {
+ yield p;
+ }
+ }
+}
+
+function stripComments(src) {
+ return src.replace(/\/\*[\s\S]*?\*\//g, '').replace(/(^|[^:])\/\/.*$/gm, '$1');
+}
+
+// A selector line (ends in `{` or `,`, or opens a one-line rule
+// `sel { … }`) that targets a table element.
+const TABLE_SELECTOR = /(^|[\s>+~,(&])(th|td|tr|thead|tbody|table)(?![\w-])[^{;]*(\{|,\s*$)/;
+
+const found = { scss: [], rawTable: [], tableClassName: [] };
+for (const file of walk(SRC)) {
+ const rel = relative(SRC, file).split(sep).join('/');
+ if (OWNERS.has(rel) || EXEMPT.test(rel)) continue;
+ const lines = stripComments(readFileSync(file, 'utf8')).split('\n');
+ lines.forEach((line, i) => {
+ const where = `${rel}:${i + 1}`;
+ if (rel.endsWith('.scss')) {
+ if (TABLE_SELECTOR.test(line)) found.scss.push(`${where} ${line.trim()}`);
+ } else {
+ if (/<table\b/.test(line)) found.rawTable.push(where);
+ if (/\btableClassName=/.test(line)) found.tableClassName.push(where);
+ }
+ });
+}
+
+const LABEL = {
+ scss: 'page SCSS styling table elements (size columns via the column `width` prop)',
+ rawTable: 'raw <table> (use DataTable)',
+ tableClassName: 'tableClassName re-skins (DataTable already is the look)',
+};
+
+const report = process.argv.includes('--report');
+let failed = false;
+for (const key of Object.keys(CEILINGS)) {
+ const n = found[key].length;
+ if (report || n > CEILINGS[key]) {
+ console.log(`${n > CEILINGS[key] ? '✗' : '·'} ${LABEL[key]}: ${n} (ceiling ${CEILINGS[key]})`);
+ for (const f of found[key]) console.log(` ${f}`);
+ }
+ if (n > CEILINGS[key]) failed = true;
+}
+
+if (failed) {
+ console.error('\nOne table: render lists through DataTable and leave its look to .sk-dtable.');
+ process.exit(1);
+}
+const total = Object.values(found).reduce((a, b) => a + b.length, 0);
+console.log(`✓ tables: one look — ${total} legacy site(s) remain ratcheted (scss ${found.scss.length}/${CEILINGS.scss}, raw ${found.rawTable.length}/${CEILINGS.rawTable}, tableClassName ${found.tableClassName.length}/${CEILINGS.tableClassName}).`);
diff --git a/frontend/src/components/EnvironmentVariables.jsx b/frontend/src/components/EnvironmentVariables.jsx
index 2edcf9e5..148f9bce 100644
--- a/frontend/src/components/EnvironmentVariables.jsx
+++ b/frontend/src/components/EnvironmentVariables.jsx
@@ -612,7 +612,6 @@ const EnvironmentVariables = ({ appId }) => {
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- tableClassName="data-table"
emptyTitle="No variables match your search."
emptyMessage=""
footer={(
@@ -750,7 +749,7 @@ const EnvironmentVariables = ({ appId }) => {
sortable: true,
hideable: false,
sortValue: (h) => h.key || '',
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-mono',
render: (h) => h.key,
},
{
@@ -775,7 +774,6 @@ const EnvironmentVariables = ({ appId }) => {
data={history.map((h, idx) => ({ ...h, __idx: idx }))}
keyField="__idx"
storageKey="serverkit-table-env-history"
- tableClassName="table"
footer={(
<DataTableFooter
shown={history.length}
diff --git a/frontend/src/components/ProcessTable.jsx b/frontend/src/components/ProcessTable.jsx
index 94dd1c53..f60ae46d 100644
--- a/frontend/src/components/ProcessTable.jsx
+++ b/frontend/src/components/ProcessTable.jsx
@@ -275,9 +275,8 @@ export function ProcessTable({
onSortsChange={setSorts}
{...chrome.tableProps}
onRowClick={(p) => onSelect?.(p)}
- rowClassName={(p) => (selectedPid === p.pid ? 'selected' : '')}
- className="processes-table-wrapper"
- tableClassName="table processes-table"
+ rowClassName={(p) => (selectedPid === p.pid ? 'is-selected' : '')}
+ className="processes-table"
emptyTitle="No processes match this view."
emptyMessage=""
footer={(
diff --git a/frontend/src/components/apps/AppWafPanel.jsx b/frontend/src/components/apps/AppWafPanel.jsx
index 600d7bac..7fb001ed 100644
--- a/frontend/src/components/apps/AppWafPanel.jsx
+++ b/frontend/src/components/apps/AppWafPanel.jsx
@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react';
import { ShieldCheck, ListChecks, X, RefreshCw } from 'lucide-react';
import api from '../../services/api';
import { useToast } from '../../contexts/useToast.js';
-import { Pill, SegControl } from '../ds';
+import { DataTable, Pill, SegControl } from '../ds';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -46,6 +46,47 @@ function severityKind(severity) {
return SEVERITY_PILL[String(severity).toLowerCase()] || 'gray';
}
+// Recent WAF events. Read-only log rows: no sorting, no column menu.
+const WAF_EVENT_COLUMNS = [
+ {
+ key: 'rule_id',
+ headerKey: 'app.appWafPanel.ruleId', header: 'Rule ID',
+ cellClassName: 'sk-cell-mono',
+ render: (ev) => ev.rule_id ?? '—',
+ },
+ {
+ key: 'severity',
+ headerKey: 'common.labels.severity', header: 'Severity',
+ render: (ev) => (ev.severity
+ ? <Pill kind={severityKind(ev.severity)}>{ev.severity}</Pill>
+ : '—'),
+ },
+ {
+ key: 'message',
+ headerKey: 'app.appWafPanel.message', header: 'Message',
+ cellClassName: 'waf-panel__msg',
+ render: (ev) => ev.message || '—',
+ },
+ {
+ key: 'uri',
+ header: 'URI',
+ cellClassName: 'sk-cell-mono waf-panel__uri',
+ render: (ev) => ev.uri || '—',
+ },
+ {
+ key: 'client',
+ headerKey: 'app.appWafPanel.client', header: 'Client',
+ cellClassName: 'sk-cell-mono',
+ render: (ev) => ev.client_ip || ev.client || '—',
+ },
+ {
+ key: 'time',
+ headerKey: 'common.labels.time', header: 'Time',
+ cellClassName: 'sk-cell-dim waf-panel__time',
+ render: (ev) => (ev.timestamp ? new Date(ev.timestamp).toLocaleString() : '—'),
+ },
+];
+
const DEFAULT_POLICY = {
mode: 'off',
paranoia_level: 1,
@@ -355,46 +396,21 @@ const AppWafPanel = ({ app, onChanged }) => {
</Button>
</span>
</div>
- <div className="app-panel-body">
- {events.length > 0 ? (
- <div className="waf-panel__table-wrap">
- <table className="waf-panel__table">
- <thead>
- <tr>
- <th>{t('app.appWafPanel.ruleId', 'Rule ID')}</th>
- <th>{t('common.labels.severity', 'Severity')}</th>
- <th>{t('app.appWafPanel.message', 'Message')}</th>
- <th>URI</th>
- <th>{t('app.appWafPanel.client', 'Client')}</th>
- <th>{t('common.labels.time', 'Time')}</th>
- </tr>
- </thead>
- <tbody>
- {events.map((ev, i) => (
- <tr key={ev.id ?? `${ev.rule_id ?? 'rule'}-${i}`}>
- <td className="mono">{ev.rule_id ?? '—'}</td>
- <td>
- {ev.severity ? (
- <Pill kind={severityKind(ev.severity)}>{ev.severity}</Pill>
- ) : '—'}
- </td>
- <td className="waf-panel__msg">{ev.message || '—'}</td>
- <td className="mono waf-panel__uri">{ev.uri || '—'}</td>
- <td className="mono">{ev.client_ip || ev.client || '—'}</td>
- <td className="waf-panel__time">
- {ev.timestamp ? new Date(ev.timestamp).toLocaleString() : '—'}
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
- ) : (
+ {events.length > 0 ? (
+ <DataTable
+ columns={WAF_EVENT_COLUMNS}
+ data={events.map((ev, i) => ({ ...ev, __idx: i }))}
+ keyField={(ev) => ev.id ?? `${ev.rule_id ?? 'rule'}-${ev.__idx}`}
+ sortable={false}
+ columnMenu={false}
+ />
+ ) : (
+ <div className="app-panel-body">
<p className="app-panel-hint">
{eventsLoading ? t('app.appWafPanel.loadingEvents', 'Loading events…') : t('app.appWafPanel.noWafEventsRecorded', 'No WAF events recorded.')}
</p>
- )}
- </div>
+ </div>
+ )}
</div>
</div>
);
diff --git a/frontend/src/components/apps/HtaccessConverter.jsx b/frontend/src/components/apps/HtaccessConverter.jsx
index 5a0d7ed5..28cfff9c 100644
--- a/frontend/src/components/apps/HtaccessConverter.jsx
+++ b/frontend/src/components/apps/HtaccessConverter.jsx
@@ -4,6 +4,7 @@ import Modal from '@/components/Modal';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
import { CopyButton } from '@/components/CopyButton';
+import { DataTable } from '../ds';
import api from '../../services/api';
import { useToast } from '../../contexts/useToast.js';
import { useTranslation } from 'react-i18next';
@@ -18,6 +19,27 @@ import { toastError } from '@/utils/errorMessage';
//
// `onInsert(nginxText)` is optional; without it the modal still offers
// copy-to-clipboard. `trigger` overrides the default launcher button.
+// Directives the converter could not translate. A short read-only report:
+// no sorting, no column menu.
+const UNSUPPORTED_COLUMNS = [
+ {
+ key: 'line',
+ headerKey: 'app.htaccessConverter.line', header: 'Line',
+ cellClassName: 'sk-cell-dim htaccess-converter__line',
+ render: (item) => item.line,
+ },
+ {
+ key: 'directive',
+ headerKey: 'app.htaccessConverter.directive', header: 'Directive',
+ render: (item) => <code className="sk-cell-mono htaccess-converter__directive">{item.directive}</code>,
+ },
+ {
+ key: 'reason',
+ headerKey: 'app.htaccessConverter.reason', header: 'Reason',
+ render: (item) => item.reason,
+ },
+];
+
export default function HtaccessConverter({ onInsert, trigger = null }) {
const { t } = useTranslation();
const toast = useToast();
@@ -145,26 +167,15 @@ export default function HtaccessConverter({ onInsert, trigger = null }) {
<AlertTriangle size={15} />
<span>{t('app.htaccessConverter.notTranslated', 'Not translated (')}{unsupported.length})</span>
</div>
- <div className="htaccess-converter__table-wrap">
- <table className="htaccess-converter__table">
- <thead>
- <tr>
- <th>{t('app.htaccessConverter.line', 'Line')}</th>
- <th>{t('app.htaccessConverter.directive', 'Directive')}</th>
- <th>{t('app.htaccessConverter.reason', 'Reason')}</th>
- </tr>
- </thead>
- <tbody>
- {unsupported.map((item) => (
- <tr key={`${item.line}-${item.directive}`}>
- <td>{item.line}</td>
- <td><code>{item.directive}</code></td>
- <td>{item.reason}</td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <DataTable
+ columns={UNSUPPORTED_COLUMNS}
+ data={unsupported}
+ keyField={(item) => `${item.line}-${item.directive}`}
+ sortable={false}
+ columnMenu={false}
+ // The warn pane is the frame; the table runs flush in it.
+ className="sk-dtable-wrap--flush sk-dtable-wrap--sticky htaccess-converter__table-wrap"
+ />
</div>
)}
</div>
diff --git a/frontend/src/components/backups/BackupHistoryList.jsx b/frontend/src/components/backups/BackupHistoryList.jsx
index 02649853..ad885575 100644
--- a/frontend/src/components/backups/BackupHistoryList.jsx
+++ b/frontend/src/components/backups/BackupHistoryList.jsx
@@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next';
import { t } from '../../i18n/t';
// Card 3 of the backup "Protection" panel: a data-table of backup runs.
-// Pairs with the .sk-dtable styles plus a .backup-history-list-scoped layer.
+// The table is .sk-dtable; .backup-history-list__* styles cell content only.
function storageIcon(run) {
const label = storageLabel(run);
if (label === 'both') {
@@ -225,8 +225,6 @@ export default function BackupHistoryList({
keyField="id"
storageKey="serverkit-table-backup-history"
onRowClick={onRowClick}
- rowClassName="backup-history-list__row"
- tableClassName="backup-history-list"
footer={(
<DataTableFooter
shown={runs.length}
diff --git a/frontend/src/components/backups/BackupsOverview.jsx b/frontend/src/components/backups/BackupsOverview.jsx
index 2f80b7ee..a55b1f66 100644
--- a/frontend/src/components/backups/BackupsOverview.jsx
+++ b/frontend/src/components/backups/BackupsOverview.jsx
@@ -437,7 +437,6 @@ export default function BackupsOverview({
data={latest}
keyField="id"
storageKey="serverkit-table-backup-latest"
- tableClassName="bk-latest"
footer={(
<DataTableFooter
shown={latest.length}
diff --git a/frontend/src/components/backups/SchedulesTable.jsx b/frontend/src/components/backups/SchedulesTable.jsx
index eab40b8f..ee053a31 100644
--- a/frontend/src/components/backups/SchedulesTable.jsx
+++ b/frontend/src/components/backups/SchedulesTable.jsx
@@ -125,6 +125,7 @@ export default function SchedulesTable({
header: 'On',
sortable: true,
sortValue: (s) => (s.enabled ? 1 : 0),
+ width: '1%',
className: 'bk-col-on',
cellClassName: 'bk-col-on',
render: (schedule) => (
@@ -139,6 +140,7 @@ export default function SchedulesTable({
},
{
key: 'actions',
+ width: '1%',
header: '',
sortable: false,
hideable: false,
@@ -171,23 +173,21 @@ export default function SchedulesTable({
return (
<>
- <div className="bk-card">
- <DataTable
- columns={columns}
- data={schedules}
- keyField="id"
- storageKey="serverkit-table-backup-schedules"
- rowClassName={(schedule) => (schedule.enabled ? undefined : 'is-off')}
- tableClassName="bk-table bk-table--schedules"
- footer={(
- <DataTableFooter
- shown={schedules.length}
- total={schedules.length}
- noun="schedule"
- />
- )}
- />
- </div>
+ <DataTable
+ columns={columns}
+ data={schedules}
+ keyField="id"
+ storageKey="serverkit-table-backup-schedules"
+ rowClassName={(schedule) => (schedule.enabled ? undefined : 'is-off')}
+ className="bk-table bk-table--schedules"
+ footer={(
+ <DataTableFooter
+ shown={schedules.length}
+ total={schedules.length}
+ noun="schedule"
+ />
+ )}
+ />
<p className="bk-hint bk-hint--foot">
<ShieldCheck size={13} />
{t('app.schedulesTable.snapshotsOlderThan', 'Backups older than')} {retentionDays} {t('app.schedulesTable.daysArePrunedAutomaticallyPerResource', 'days are pruned automatically. Per-resource policies (with their own retention) are set on each service or database.')}
diff --git a/frontend/src/components/docker/ComposeTab.jsx b/frontend/src/components/docker/ComposeTab.jsx
index a58d5b96..3ffeadc5 100644
--- a/frontend/src/components/docker/ComposeTab.jsx
+++ b/frontend/src/components/docker/ComposeTab.jsx
@@ -413,8 +413,7 @@ const ComposeTab = ({ onStatsChange }) => {
keyField={(project) => projectName(project)}
sorts={sorts}
onSortsChange={setSorts}
- className="dx-table-wrap"
- tableClassName="dx-manager-table dx-plain-table"
+ className="dx-table-wrap sk-dtable-wrap--sticky"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/components/docker/ContainersTab.jsx b/frontend/src/components/docker/ContainersTab.jsx
index 0ba51e9c..123d9e68 100644
--- a/frontend/src/components/docker/ContainersTab.jsx
+++ b/frontend/src/components/docker/ContainersTab.jsx
@@ -500,7 +500,7 @@ const ContainersTab = ({ onStatsChange }) => {
// DataTable columns. Cell markup and classNames are identical to the
// hand-rolled table they replace, so _docker.scss keeps applying
- // (.dx-manager-table, .dx-name-stack, .dx-status-pill, .dx-row-actions...).
+ // (.dx-name-stack, .dx-status-pill, .dx-row-actions...).
//
// Two accessors per column on purpose: `value` is what the column menu, the
// filter rules and the export read (ds/grid/fields.js), `sortValue` is what
@@ -846,8 +846,7 @@ const ContainersTab = ({ onStatsChange }) => {
rowClassName={(container) => (
`${isContainerRunning(container) ? 'is-running' : 'is-stopped'} ${getContainerId(selectedContainer) === getContainerId(container) ? 'is-selected' : ''}`
)}
- className="dx-table-wrap"
- tableClassName="dx-manager-table"
+ className="dx-table-wrap sk-dtable-wrap--sticky"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/components/docker/ImagesTab.jsx b/frontend/src/components/docker/ImagesTab.jsx
index c1314ef1..adaed9dd 100644
--- a/frontend/src/components/docker/ImagesTab.jsx
+++ b/frontend/src/components/docker/ImagesTab.jsx
@@ -408,8 +408,7 @@ const ImagesTab = ({ onStatsChange }) => {
onSortsChange={setSorts}
groupBy={groupBy}
onGroupByChange={setGroupBy}
- className="dx-table-wrap"
- tableClassName="dx-manager-table dx-plain-table"
+ className="dx-table-wrap sk-dtable-wrap--sticky"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/components/docker/NetworksTab.jsx b/frontend/src/components/docker/NetworksTab.jsx
index df18cc11..1069fe74 100644
--- a/frontend/src/components/docker/NetworksTab.jsx
+++ b/frontend/src/components/docker/NetworksTab.jsx
@@ -333,8 +333,7 @@ const NetworksTab = ({ onStatsChange }) => {
onSortsChange={setSorts}
groupBy={groupBy}
onGroupByChange={setGroupBy}
- className="dx-table-wrap"
- tableClassName="dx-manager-table dx-plain-table"
+ className="dx-table-wrap sk-dtable-wrap--sticky"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/components/docker/VolumesTab.jsx b/frontend/src/components/docker/VolumesTab.jsx
index 16478b47..73b88ef8 100644
--- a/frontend/src/components/docker/VolumesTab.jsx
+++ b/frontend/src/components/docker/VolumesTab.jsx
@@ -329,8 +329,7 @@ const VolumesTab = ({ onStatsChange }) => {
onSortsChange={setSorts}
groupBy={groupBy}
onGroupByChange={setGroupBy}
- className="dx-table-wrap"
- tableClassName="dx-manager-table dx-plain-table"
+ className="dx-table-wrap sk-dtable-wrap--sticky"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/components/domains/CutoverDrawer.jsx b/frontend/src/components/domains/CutoverDrawer.jsx
index c9e574bc..21c0d8f4 100644
--- a/frontend/src/components/domains/CutoverDrawer.jsx
+++ b/frontend/src/components/domains/CutoverDrawer.jsx
@@ -3,7 +3,7 @@ import {
ArrowRightLeft, ArrowLeft, ArrowRight, Camera, CheckCircle2, RotateCcw,
AlertTriangle, Globe, RadioTower,
} from 'lucide-react';
-import { Drawer, Pill } from '@/components/ds';
+import { DataTable, Drawer, Pill } from '@/components/ds';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -28,6 +28,60 @@ import { useTranslation } from 'react-i18next';
const HEAD_ICON_SIZE = 18;
const DRAWER_WIDTH = 720;
+// Read-only step reports (the planned record changes, then per-resolver
+// propagation): no sorting, no column menu.
+const PLAN_COLUMNS = [
+ {
+ key: 'record_type',
+ headerKey: 'common.labels.type', header: 'Type',
+ cellClassName: 'sk-cell-dim',
+ render: (op) => op.record_type,
+ },
+ {
+ key: 'name',
+ headerKey: 'common.labels.name', header: 'Name',
+ cellClassName: 'sk-cell-mono',
+ render: (op) => op.name,
+ },
+ {
+ key: 'action',
+ headerKey: 'common.labels.action', header: 'Action',
+ render: (op) => <Pill kind={op.action === 'create' ? 'cyan' : 'amber'}>{op.action}</Pill>,
+ },
+ {
+ key: 'old_content',
+ headerKey: 'common.labels.current', header: 'Current',
+ cellClassName: 'sk-cell-mono',
+ render: (op) => op.old_content || '—',
+ },
+ {
+ key: 'new_content',
+ headerKey: 'app.cutoverDrawer.new', header: 'New',
+ cellClassName: 'sk-cell-mono',
+ render: (op) => op.new_content,
+ },
+];
+
+const RESOLVER_COLUMNS = [
+ {
+ key: 'nameserver',
+ headerKey: 'app.cutoverDrawer.resolver', header: 'Resolver',
+ cellClassName: 'sk-cell-mono',
+ render: (r) => r.nameserver,
+ },
+ {
+ key: 'result',
+ headerKey: 'app.cutoverDrawer.answer', header: 'Answer',
+ cellClassName: 'sk-cell-mono',
+ render: (r) => (r.result || []).join(', ') || '—',
+ },
+ {
+ key: 'status',
+ headerKey: 'common.labels.status', header: 'Status',
+ render: (r) => <Pill kind={r.propagated ? 'green' : 'gray'}>{r.propagated ? 'live' : 'stale'}</Pill>,
+ },
+];
+
// Record types a cutover can repoint. A/AAAA/CNAME cover the "point at the new
// box" case; the operator keeps everything else untouched.
const RECORD_TYPE_CHOICES = ['A', 'AAAA', 'CNAME'];
@@ -307,26 +361,14 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia
<section className="cutover__section">
<h3><Globe size={15} aria-hidden="true" /> {t('app.cutoverDrawer.plannedChanges', 'Planned changes')}</h3>
{plan?.ops?.length ? (
- <div className="cutover__table-wrap">
- <table className="cutover__table">
- <thead>
- <tr><th>{t('common.labels.type', 'Type')}</th><th>{t('common.labels.name', 'Name')}</th><th>{t('common.labels.action', 'Action')}</th><th>{t('common.labels.current', 'Current')}</th><th>{t('app.cutoverDrawer.new', 'New')}</th></tr>
- </thead>
- <tbody>
- {plan.ops.map((op, i) => (
- <tr key={`${op.record_type}-${op.name}-${i}`}>
- <td>{op.record_type}</td>
- <td>{op.name}</td>
- <td>
- <Pill kind={op.action === 'create' ? 'cyan' : 'amber'}>{op.action}</Pill>
- </td>
- <td><code>{op.old_content || '—'}</code></td>
- <td><code>{op.new_content}</code></td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <DataTable
+ columns={PLAN_COLUMNS}
+ data={plan.ops.map((op, i) => ({ ...op, __idx: i }))}
+ keyField={(op) => `${op.record_type}-${op.name}-${op.__idx}`}
+ sortable={false}
+ columnMenu={false}
+ className="cutover__table-wrap"
+ />
) : (
<p className="cutover__muted">{t('app.cutoverDrawer.noChangesToApplyForThe', 'No changes to apply for the selected record types.')}</p>
)}
@@ -379,26 +421,14 @@ const CutoverDrawer = ({ open, onClose, domain, providerZoneId, provider, initia
)}
{verifyResult?.resolvers?.length > 0 && (
- <div className="cutover__table-wrap">
- <table className="cutover__table">
- <thead>
- <tr><th>{t('app.cutoverDrawer.resolver', 'Resolver')}</th><th>{t('app.cutoverDrawer.answer', 'Answer')}</th><th>{t('common.labels.status', 'Status')}</th></tr>
- </thead>
- <tbody>
- {verifyResult.resolvers.map((r, i) => (
- <tr key={`${r.nameserver}-${i}`}>
- <td>{r.nameserver}</td>
- <td><code>{(r.result || []).join(', ') || '—'}</code></td>
- <td>
- <Pill kind={r.propagated ? 'green' : 'gray'}>
- {r.propagated ? 'live' : 'stale'}
- </Pill>
- </td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <DataTable
+ columns={RESOLVER_COLUMNS}
+ data={verifyResult.resolvers.map((r, i) => ({ ...r, __idx: i }))}
+ keyField={(r) => `${r.nameserver}-${r.__idx}`}
+ sortable={false}
+ columnMenu={false}
+ className="cutover__table-wrap"
+ />
)}
<Button variant="outline" size="sm" onClick={checkPropagation} disabled={busy}>
diff --git a/frontend/src/components/ds/ServiceTile.jsx b/frontend/src/components/ds/ServiceTile.jsx
index 4ccba3fa..5b873958 100644
--- a/frontend/src/components/ds/ServiceTile.jsx
+++ b/frontend/src/components/ds/ServiceTile.jsx
@@ -1,8 +1,9 @@
import { cn } from '@/lib/utils';
-import { svcGrad, initials } from './utils';
+import { initials } from './utils';
-// Gradient initial avatar. Defaults to a deterministic gradient + first letter
-// derived from `name`; pass `gradient` and/or `label` to override.
+// Initial avatar: a neutral square with the first letter of `name`. Pass
+// `gradient` only for a real brand colour; a per-name rainbow down a list is
+// decoration, not identity. `label` overrides the letter.
export function ServiceTile({ name = '', size = 38, label, gradient, className, style, ...props }) {
return (
<span
@@ -11,7 +12,7 @@ export function ServiceTile({ name = '', size = 38, label, gradient, className,
width: size,
height: size,
fontSize: Math.round(size * 0.4),
- background: gradient || svcGrad(name),
+ ...(gradient ? { background: gradient, color: '#fff' } : null),
...style,
}}
{...props}
diff --git a/frontend/src/components/serverdetail/CloudflaredTab.jsx b/frontend/src/components/serverdetail/CloudflaredTab.jsx
index bae50057..34ab6ae1 100644
--- a/frontend/src/components/serverdetail/CloudflaredTab.jsx
+++ b/frontend/src/components/serverdetail/CloudflaredTab.jsx
@@ -283,7 +283,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {
// UUID: pasting one out of a cloudflared log should find its row.
type: 'text',
value: (t) => t.id || '',
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-mono',
render: (t) => `${(t.id || '').substring(0, 8)}…`,
},
{
@@ -330,7 +330,7 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {
const time = Date.parse(t.created_at);
return Number.isNaN(time) ? null : time;
},
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-dim',
render: (t) => (t.created_at ? new Date(t.created_at).toLocaleString() : '—'),
},
{
@@ -483,7 +483,8 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- tableClassName="data-table"
+ // .cloudflared-tab is the frame; the table runs flush in it.
+ className="sk-dtable-wrap--flush"
emptyTitle="No tunnels match this view."
emptyMessage=""
footer={(
diff --git a/frontend/src/components/serverdetail/CronTab.jsx b/frontend/src/components/serverdetail/CronTab.jsx
index 41394db8..b6f7ba27 100644
--- a/frontend/src/components/serverdetail/CronTab.jsx
+++ b/frontend/src/components/serverdetail/CronTab.jsx
@@ -191,9 +191,8 @@ const CronTab = ({ serverId, serverStatus }) => {
}
}
- // Jobs table columns. Cell markup and classNames are identical to the
- // hand-rolled table they replace so the .cron-tab / .data-table SCSS
- // keeps applying (.cron-tab__name, .cron-tab__command, .mono).
+ // Jobs table columns. The table's look is .sk-dtable's; only cell content
+ // carries page classes (.cron-tab__name, .cron-tab__command).
//
// Declared above the offline/loading guards: the chrome below is a hook, so
// it cannot sit behind an early return.
@@ -210,7 +209,7 @@ const CronTab = ({ serverId, serverStatus }) => {
sortValue: (job) => job.schedule || '',
render: (job) => (
<>
- <span className="mono" title={job.schedule}>{job.schedule}</span>
+ <span className="sk-cell-mono" title={job.schedule}>{job.schedule}</span>
{job.description && job.description !== job.schedule && (
<div className="cron-tab__description">{job.description}</div>
)}
@@ -371,7 +370,8 @@ const CronTab = ({ serverId, serverStatus }) => {
onSortsChange={setSorts}
{...chrome.tableProps}
rowClassName={(job) => (!job.enabled ? 'row-disabled' : '')}
- tableClassName="data-table"
+ // .cron-tab is the frame; the table runs flush in it.
+ className="sk-dtable-wrap--flush"
emptyTitle="No jobs match this view."
emptyMessage=""
footer={(
diff --git a/frontend/src/components/serverdetail/ServerDockerTab.jsx b/frontend/src/components/serverdetail/ServerDockerTab.jsx
index b69c58d8..6091c6b3 100644
--- a/frontend/src/components/serverdetail/ServerDockerTab.jsx
+++ b/frontend/src/components/serverdetail/ServerDockerTab.jsx
@@ -76,7 +76,7 @@ const IMAGE_COLUMNS = [
{
key: 'id',
headerKey: 'app.serverDockerTab.imageId', header: 'Image ID',
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-mono',
render: (image) => image.id?.substring(0, 12),
},
{
@@ -327,7 +327,8 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {
data={containers}
keyField="id"
storageKey="serverkit-table-sd-docker-containers"
- tableClassName="data-table"
+ // .docker-tab is the frame; the table runs flush in it.
+ className="data-table sk-dtable-wrap--flush"
footer={(
<DataTableFooter
shown={containers.length}
@@ -350,7 +351,7 @@ const ServerDockerTab = ({ serverId, serverStatus, server }) => {
data={images}
keyField="id"
storageKey="serverkit-table-sd-docker-images"
- tableClassName="data-table"
+ className="sk-dtable-wrap--flush"
footer={(
<DataTableFooter
shown={images.length}
diff --git a/frontend/src/components/serverdetail/ServicesTab.jsx b/frontend/src/components/serverdetail/ServicesTab.jsx
index ff7c0365..237fe259 100644
--- a/frontend/src/components/serverdetail/ServicesTab.jsx
+++ b/frontend/src/components/serverdetail/ServicesTab.jsx
@@ -286,9 +286,9 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {
downloadBlob(logText, `${logsFor.unit}-${Date.now()}.log`);
}
- // Units table columns. Cell markup and classNames are identical to the
- // hand-rolled table they replace so the .server-services__* SCSS keeps
- // applying (.server-services__desc, .server-services__row-actions, .mono).
+ // Units table columns. The table's look is .sk-dtable's; the only page
+ // classes left are on cell content (.server-services__desc,
+ // .server-services__row-actions).
//
// The two hosts do not answer with the same fields: an agent unit carries a
// description and no PID, the panel host's daemon probe carries a PID and no
@@ -308,7 +308,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {
type: 'text',
value: (u) => u.unit || '',
sortValue: (u) => u.unit || '',
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-mono',
render: (u) => u.unit,
},
{
@@ -339,7 +339,7 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {
type: 'num',
value: (u) => u.pid ?? null,
sortValue: (u) => u.pid ?? null,
- cellClassName: 'mono',
+ cellClassName: 'sk-cell-mono',
render: (u) => u.pid ?? '—',
}] : [{
key: 'description',
@@ -468,7 +468,6 @@ const ServicesTab = ({ serverId = null, serverStatus = 'online' }) => {
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- tableClassName="server-services__table"
emptyTitle="No units match this view."
emptyMessage=""
footer={(
diff --git a/frontend/src/components/serverdetail/SurveyTab.jsx b/frontend/src/components/serverdetail/SurveyTab.jsx
index 7df0f561..05c4cef5 100644
--- a/frontend/src/components/serverdetail/SurveyTab.jsx
+++ b/frontend/src/components/serverdetail/SurveyTab.jsx
@@ -402,8 +402,7 @@ function ServiceGrid({ services }) {
}
// Read-only web-server vhosts, with a "managed by" column that flags sites owned
-// by another control panel. Cell markup and classNames are identical to the
-// hand-rolled table this replaces so the .survey-tab__table SCSS keeps applying.
+// by another control panel.
const SITE_COLUMNS = [
{
key: 'domain',
@@ -462,8 +461,6 @@ function SitesTable({ sites }) {
data={list}
keyField={(s) => s.domain || `${s.stack}|${s.doc_root}|${s.upstream}`}
storageKey="serverkit-table-sd-survey-sites"
- className="survey-tab__table-wrap"
- tableClassName="survey-tab__table"
footer={(
<DataTableFooter
shown={list.length}
diff --git a/frontend/src/components/service-detail/EventsTab.jsx b/frontend/src/components/service-detail/EventsTab.jsx
index d4599817..f55a5f7e 100644
--- a/frontend/src/components/service-detail/EventsTab.jsx
+++ b/frontend/src/components/service-detail/EventsTab.jsx
@@ -364,7 +364,6 @@ const EventsTab = ({ appId }) => {
// made only deploy entries expandable.
onRowClick={(event) => { if (event.kind === 'deploy') setDeployDetail(event); }}
rowClassName={(event) => (event.kind === 'deploy' ? '' : 'is-static')}
- tableClassName="data-table"
emptyTitle="No activity matches your search."
emptyMessage=""
footer={(
diff --git a/frontend/src/components/settings/ApiSettingsTab.jsx b/frontend/src/components/settings/ApiSettingsTab.jsx
index f1abed84..f95f7137 100644
--- a/frontend/src/components/settings/ApiSettingsTab.jsx
+++ b/frontend/src/components/settings/ApiSettingsTab.jsx
@@ -327,17 +327,15 @@ const ApiKeysSection = () => {
description={t('app.apiSettingsTab.createOneToGetStarted', 'Create a key to access the API.')}
/>
) : (
- <div className="api-settings__table-wrap">
- <DataTable
- columns={chrome.columns}
- data={keys}
- keyField="id"
- sorts={sorts}
- onSortsChange={setSorts}
- {...chrome.tableProps}
- tableClassName="api-settings__table"
- />
- </div>
+ <DataTable
+ columns={chrome.columns}
+ data={keys}
+ keyField="id"
+ sorts={sorts}
+ onSortsChange={setSorts}
+ {...chrome.tableProps}
+ className="api-settings__table"
+ />
)}
{(showModal || createdKey) && (
@@ -633,7 +631,7 @@ const WebhookSection = () => {
data={deliveries[sub.id].slice(0, 10)}
keyField="id"
storageKey="serverkit-table-settings-webhook-deliveries"
- tableClassName="api-settings__table api-settings__table--compact"
+ className="api-settings__table"
/>
)}
</div>
@@ -810,7 +808,7 @@ const AnalyticsSection = () => {
data={endpoints.slice(0, 10)}
keyField={(ep) => `${ep.method} ${ep.endpoint}`}
storageKey="serverkit-table-settings-api-endpoints"
- tableClassName="api-settings__table api-settings__table--compact"
+ className="api-settings__table"
footer={(
<DataTableFooter
shown={Math.min(endpoints.length, 10)}
diff --git a/frontend/src/components/settings/InvitationsTab.jsx b/frontend/src/components/settings/InvitationsTab.jsx
index aba53786..79b03ec3 100644
--- a/frontend/src/components/settings/InvitationsTab.jsx
+++ b/frontend/src/components/settings/InvitationsTab.jsx
@@ -333,17 +333,15 @@ const InvitationsTab = () => {
) : invitations.length === 0 && !error ? (
<EmptyState title={t('app.invitationsTab.noInvitationsYet', 'No invitations yet')} />
) : (
- <div className="users-table-container">
- <DataTable
- columns={chrome.columns}
- data={invitations}
- keyField="id"
- sorts={sorts}
- onSortsChange={setSorts}
- {...chrome.tableProps}
- tableClassName="users-table"
- />
- </div>
+ <DataTable
+ columns={chrome.columns}
+ data={invitations}
+ keyField="id"
+ sorts={sorts}
+ onSortsChange={setSorts}
+ {...chrome.tableProps}
+ className="users-table-container users-table"
+ />
)}
{showInviteModal && (
diff --git a/frontend/src/components/settings/MigrationHistoryTab.jsx b/frontend/src/components/settings/MigrationHistoryTab.jsx
index 8dc7fe96..963fc974 100644
--- a/frontend/src/components/settings/MigrationHistoryTab.jsx
+++ b/frontend/src/components/settings/MigrationHistoryTab.jsx
@@ -341,7 +341,6 @@ const MigrationHistoryTab = () => {
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- tableClassName="data-table"
/>
</div>
</>
diff --git a/frontend/src/components/settings/UsersTab.jsx b/frontend/src/components/settings/UsersTab.jsx
index 50708940..d9939a8a 100644
--- a/frontend/src/components/settings/UsersTab.jsx
+++ b/frontend/src/components/settings/UsersTab.jsx
@@ -454,7 +454,7 @@ const UsersTab = () => {
{error && <div className="error-message" role="alert">{error}</div>}
- <div {...register('users-management', 'users-table-container')}>
+ <div {...register('users-management')}>
<DataTable
columns={chrome.columns}
data={users}
@@ -465,7 +465,7 @@ const UsersTab = () => {
groupBy={groupBy}
onGroupByChange={setGroupBy}
rowClassName={(user) => (!user.is_active ? 'inactive' : '')}
- tableClassName="users-table"
+ className="users-table-container users-table"
/>
</div>
diff --git a/frontend/src/components/settings/WebhooksTab.jsx b/frontend/src/components/settings/WebhooksTab.jsx
index 8a69bac0..0d57818c 100644
--- a/frontend/src/components/settings/WebhooksTab.jsx
+++ b/frontend/src/components/settings/WebhooksTab.jsx
@@ -7,7 +7,7 @@ import { Label } from '@/components/ui/label';
import { Textarea } from '@/components/ui/textarea';
import { Badge } from '@/components/ui/badge';
import Modal from '@/components/Modal';
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table';
+import { DataTable } from '@/components/ds';
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
import { useToast } from '../../contexts/useToast.js';
import { useConfirm } from '../../hooks/useConfirm';
@@ -154,6 +154,91 @@ export default function WebhooksTab() {
);
}
+ // Both lists sit inside a card, so their tables run flush in it.
+ const endpointColumns = [
+ {
+ key: 'name',
+ headerKey: 'common.labels.name', header: 'Name',
+ cellClassName: 'settings-webhook-name',
+ render: (ep) => ep.name,
+ },
+ {
+ key: 'slug',
+ headerKey: 'app.webhooksTab.slug', header: 'Slug',
+ cellClassName: 'sk-cell-mono',
+ render: (ep) => ep.slug,
+ },
+ {
+ key: 'forward_url',
+ headerKey: 'app.webhooksTab.forwardUrl', header: 'Forward URL',
+ cellClassName: 'sk-cell-mono',
+ render: (ep) => ep.forward_url || '—',
+ },
+ {
+ key: 'status',
+ headerKey: 'common.labels.status', header: 'Status',
+ render: (ep) => (
+ <Badge variant={ep.is_active ? 'default' : 'secondary'}>
+ {ep.is_active ? t('app.webhooksTab.active', 'Active') : t('app.webhooksTab.inactive', 'Inactive')}
+ </Badge>
+ ),
+ },
+ {
+ key: 'actions',
+ headerKey: 'common.labels.actions', header: 'Actions',
+ cellClassName: 'settings-webhook-actions',
+ render: (ep) => (
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild onClick={(e) => e.stopPropagation()}>
+ <Button variant="ghost" size="icon"><MoreVertical size={14} /></Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem onClick={() => openEndpoint(ep.id)}>{t('app.webhooksTab.viewDeliveries', 'View deliveries')}</DropdownMenuItem>
+ <DropdownMenuItem onClick={() => regenerateSecret(ep.id)}><RefreshCw size={12} className="settings-webhook-action-icon" /> {t('app.webhooksTab.regenerateSecret', 'Regenerate secret')}</DropdownMenuItem>
+ <DropdownMenuItem onClick={() => deleteEndpoint(ep.id)}>{t('common.actions.delete', 'Delete')}</DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ ),
+ },
+ ];
+
+ const deliveryColumns = [
+ {
+ key: 'event_id',
+ headerKey: 'app.webhooksTab.eventId', header: 'Event ID',
+ cellClassName: 'sk-cell-mono settings-webhook-event-id',
+ render: (d) => d.event_id,
+ },
+ {
+ key: 'status',
+ headerKey: 'common.labels.status', header: 'Status',
+ render: (d) => <WebhookStatusBadge status={d.status} />,
+ },
+ {
+ key: 'signature_valid',
+ headerKey: 'app.webhooksTab.signature', header: 'Signature',
+ render: (d) => (d.signature_valid === true
+ ? t('app.webhooksTab.valid', 'Valid')
+ : d.signature_valid === false ? t('app.webhooksTab.invalid', 'Invalid') : '—'),
+ },
+ {
+ key: 'received_at',
+ headerKey: 'app.webhooksTab.received', header: 'Received',
+ cellClassName: 'sk-cell-dim',
+ render: (d) => formatDate(d.received_at),
+ },
+ {
+ key: 'actions',
+ headerKey: 'common.labels.actions', header: 'Actions',
+ cellClassName: 'settings-webhook-actions',
+ render: (d) => (
+ <Button variant="ghost" size="icon" onClick={() => replayDelivery(d.id)} title={t('app.webhooksTab.replay', 'Replay')}>
+ <ArrowRightLeft size={14} />
+ </Button>
+ ),
+ },
+ ];
+
return (
<div className="settings-webhooks">
{!selectedEndpoint ? (
@@ -174,39 +259,15 @@ export default function WebhooksTab() {
{endpoints.length === 0 ? (
<EmptyState title={t('app.webhooksTab.noWebhookEndpoints', 'No webhook endpoints')} description={t('app.webhooksTab.createAnEndpointToReceiveWebhooks', 'Create an endpoint to receive webhooks.')} />
) : (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>{t('common.labels.name', 'Name')}</TableHead>
- <TableHead>{t('app.webhooksTab.slug', 'Slug')}</TableHead>
- <TableHead>{t('app.webhooksTab.forwardUrl', 'Forward URL')}</TableHead>
- <TableHead>{t('common.labels.status', 'Status')}</TableHead>
- <TableHead>{t('common.labels.actions', 'Actions')}</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {endpoints.map(ep => (
- <TableRow key={ep.id} className="settings-webhook-row" onClick={() => openEndpoint(ep.id)}>
- <TableCell className="settings-webhook-name">{ep.name}</TableCell>
- <TableCell>{ep.slug}</TableCell>
- <TableCell>{ep.forward_url || '—'}</TableCell>
- <TableCell><Badge variant={ep.is_active ? 'default' : 'secondary'}>{ep.is_active ? t('app.webhooksTab.active', 'Active') : t('app.webhooksTab.inactive', 'Inactive')}</Badge></TableCell>
- <TableCell className="settings-webhook-actions">
- <DropdownMenu>
- <DropdownMenuTrigger asChild onClick={(e) => e.stopPropagation()}>
- <Button variant="ghost" size="icon"><MoreVertical size={14} /></Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end">
- <DropdownMenuItem onClick={() => openEndpoint(ep.id)}>{t('app.webhooksTab.viewDeliveries', 'View deliveries')}</DropdownMenuItem>
- <DropdownMenuItem onClick={() => regenerateSecret(ep.id)}><RefreshCw size={12} className="settings-webhook-action-icon" /> {t('app.webhooksTab.regenerateSecret', 'Regenerate secret')}</DropdownMenuItem>
- <DropdownMenuItem onClick={() => deleteEndpoint(ep.id)}>{t('common.actions.delete', 'Delete')}</DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
+ <DataTable
+ columns={endpointColumns}
+ data={endpoints}
+ keyField="id"
+ sortable={false}
+ columnMenu={false}
+ onRowClick={(ep) => openEndpoint(ep.id)}
+ className="sk-dtable-wrap--flush"
+ />
)}
</CardContent>
</Card>
@@ -230,32 +291,14 @@ export default function WebhooksTab() {
{deliveries.length === 0 ? (
<EmptyState title={t('app.webhooksTab.noDeliveriesYet', 'No deliveries yet')} description={t('app.webhooksTab.sendATestPayloadToSee', 'Send a test payload to see it here.')} />
) : (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>{t('app.webhooksTab.eventId', 'Event ID')}</TableHead>
- <TableHead>{t('common.labels.status', 'Status')}</TableHead>
- <TableHead>{t('app.webhooksTab.signature', 'Signature')}</TableHead>
- <TableHead>{t('app.webhooksTab.received', 'Received')}</TableHead>
- <TableHead>{t('common.labels.actions', 'Actions')}</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {deliveries.map(d => (
- <TableRow key={d.id}>
- <TableCell className="settings-webhook-event-id">{d.event_id}</TableCell>
- <TableCell><WebhookStatusBadge status={d.status} /></TableCell>
- <TableCell>{d.signature_valid === true ? t('app.webhooksTab.valid', 'Valid') : d.signature_valid === false ? t('app.webhooksTab.invalid', 'Invalid') : '—'}</TableCell>
- <TableCell>{formatDate(d.received_at)}</TableCell>
- <TableCell className="settings-webhook-actions">
- <Button variant="ghost" size="icon" onClick={() => replayDelivery(d.id)} title={t('app.webhooksTab.replay', 'Replay')}>
- <ArrowRightLeft size={14} />
- </Button>
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
+ <DataTable
+ columns={deliveryColumns}
+ data={deliveries}
+ keyField="id"
+ sortable={false}
+ columnMenu={false}
+ className="sk-dtable-wrap--flush"
+ />
)}
</CardContent>
</Card>
diff --git a/frontend/src/components/settings/connections/DnsActivity.jsx b/frontend/src/components/settings/connections/DnsActivity.jsx
index d6b0a9b3..fb1acbce 100644
--- a/frontend/src/components/settings/connections/DnsActivity.jsx
+++ b/frontend/src/components/settings/connections/DnsActivity.jsx
@@ -8,6 +8,7 @@ import { Activity } from 'lucide-react';
import api from '../../../services/api';
import { timeAgo } from '../../../utils/time';
import { useTranslation } from 'react-i18next';
+import { DataTable } from '@/components/ds';
// result → Badge-like pill tone. ok=green, error=red, conflict=amber, skipped=muted.
const RESULT_TONE = {
@@ -17,6 +18,41 @@ const RESULT_TONE = {
skipped: 'neutral',
};
+// The provider change log: newest first as the API returns it, read-only.
+const ACTIVITY_COLUMNS = [
+ {
+ key: 'created_at',
+ headerKey: 'common.labels.time', header: 'Time',
+ cellClassName: 'sk-cell-dim dns-activity__time',
+ render: (c) => <span title={c.created_at}>{timeAgo(c.created_at)}</span>,
+ },
+ {
+ key: 'action',
+ headerKey: 'common.labels.action', header: 'Action',
+ render: (c) => (
+ <span className={`dns-activity__action dns-activity__action--${c.action}`}>{c.action}</span>
+ ),
+ },
+ {
+ key: 'record',
+ headerKey: 'app.dnsActivity.record', header: 'Record',
+ render: (c) => (
+ <div className="dns-activity__record">
+ <span className={`dns-rtype dns-rtype--${(c.record_type || '').toLowerCase()}`}>{c.record_type}</span>
+ <span className="dns-activity__name">{c.name}</span>
+ {c.error && <span className="dns-activity__error">{c.error}</span>}
+ </div>
+ ),
+ },
+ {
+ key: 'result',
+ headerKey: 'app.dnsActivity.result', header: 'Result',
+ render: (c) => (
+ <span className={`conn-pill conn-pill--${RESULT_TONE[c.result] || 'neutral'}`}>{c.result}</span>
+ ),
+ },
+];
+
export default function DnsActivity({ configId, limit = 25 }) {
const { t } = useTranslation();
const [changes, setChanges] = useState([]);
@@ -57,35 +93,15 @@ export default function DnsActivity({ configId, limit = 25 }) {
return (
<div className="dns-activity">
- <table className="dns-activity__table">
- <thead>
- <tr>
- <th>{t('common.labels.time', 'Time')}</th>
- <th>{t('common.labels.action', 'Action')}</th>
- <th>{t('app.dnsActivity.record', 'Record')}</th>
- <th>{t('app.dnsActivity.result', 'Result')}</th>
- </tr>
- </thead>
- <tbody>
- {changes.map((c) => {
- const tone = RESULT_TONE[c.result] || 'neutral';
- return (
- <tr key={c.id}>
- <td className="dns-activity__time" title={c.created_at}>{timeAgo(c.created_at)}</td>
- <td className={`dns-activity__action dns-activity__action--${c.action}`}>{c.action}</td>
- <td className="dns-activity__record">
- <span className={`dns-rtype dns-rtype--${(c.record_type || '').toLowerCase()}`}>{c.record_type}</span>
- <span className="dns-activity__name">{c.name}</span>
- {c.error && <span className="dns-activity__error">{c.error}</span>}
- </td>
- <td>
- <span className={`conn-pill conn-pill--${tone}`}>{c.result}</span>
- </td>
- </tr>
- );
- })}
- </tbody>
- </table>
+ <DataTable
+ columns={ACTIVITY_COLUMNS}
+ data={changes}
+ keyField="id"
+ sortable={false}
+ columnMenu={false}
+ // The connection row is the frame; the change log scrolls in it.
+ className="sk-dtable-wrap--flush sk-dtable-wrap--sticky dns-activity__table-wrap"
+ />
</div>
);
}
diff --git a/frontend/src/components/shared/EnvironmentVariablesPanel.jsx b/frontend/src/components/shared/EnvironmentVariablesPanel.jsx
index fd7b7b24..8d425961 100644
--- a/frontend/src/components/shared/EnvironmentVariablesPanel.jsx
+++ b/frontend/src/components/shared/EnvironmentVariablesPanel.jsx
@@ -3,6 +3,7 @@ import api from '../../services/api';
import { useToast } from '../../contexts/useToast.js';
import { useTranslation } from 'react-i18next';
import { toastError } from '@/utils/errorMessage';
+import { DataTable } from '@/components/ds';
/**
* Read-mostly facade showing the *resolved* shared variables for a resource —
@@ -121,6 +122,49 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {
return <div className="shared-vars-panel shared-vars-panel--loading">{t('app.environmentVariablesPanel.loadingSharedVariables', 'Loading shared variables…')}</div>;
}
+ const columns = [
+ {
+ key: 'key',
+ headerKey: 'common.labels.key', header: 'Key',
+ cellClassName: 'shared-vars-table__key',
+ render: (v) => (
+ <>
+ {v.key}
+ {localKeys && localKeys.has(v.key) && (
+ <span
+ className="conflict-badge"
+ title={t('app.environmentVariablesPanel.thisKeyIsAlsoSetOn', "This key is also set on the service's Environment variables tab. The local value is what the container uses; the shared value is overridden.")}
+ >
+ {t('app.environmentVariablesPanel.setLocallyLocalValueApplies', 'Set locally (local value applies)')}
+ </span>
+ )}
+ </>
+ ),
+ },
+ {
+ key: 'value',
+ headerKey: 'common.labels.value', header: 'Value',
+ cellClassName: 'shared-vars-table__value',
+ },
+ {
+ key: 'source',
+ headerKey: 'common.labels.source', header: 'Source',
+ cellClassName: 'shared-vars-table__group',
+ render: (v) => (
+ <>
+ {v.source_scope && SCOPE_ORDER.includes(v.source_scope) && (
+ <span className={`scope-badge scope-badge--${v.source_scope}`}>
+ {SCOPE_LABELS[v.source_scope]}
+ </span>
+ )}
+ <span className="shared-vars-table__group-name">
+ {v.group_name || '—'}
+ </span>
+ </>
+ ),
+ },
+ ];
+
const showProvenance = hierarchical && variables.some((v) => v.source_scope);
return (
@@ -177,50 +221,18 @@ const EnvironmentVariablesPanel = ({ resourceType, resourceId }) => {
: t('app.environmentVariablesPanel.noSharedGroupsYet', 'No shared variable groups attached to this resource yet.')}
</div>
) : (
- <table className="shared-vars-table">
- <thead>
- <tr>
- <th>{t('common.labels.key', 'Key')}</th>
- <th>{t('common.labels.value', 'Value')}</th>
- <th>{t('common.labels.source', 'Source')}</th>
- </tr>
- </thead>
- <tbody>
- {filtered.map((v) => {
- const scope = v.source_scope;
- const conflict = !!(localKeys && localKeys.has(v.key));
- return (
- <tr
- key={v.key}
- className={`${v.is_secret ? 'is-secret' : ''} ${conflict ? 'has-conflict' : ''}`.trim()}
- >
- <td className="shared-vars-table__key">
- {v.key}
- {conflict && (
- <span
- className="conflict-badge"
- title={t('app.environmentVariablesPanel.thisKeyIsAlsoSetOn', "This key is also set on the service's Environment variables tab. The local value is what the container uses; the shared value is overridden.")}
- >
- {t('app.environmentVariablesPanel.setLocallyLocalValueApplies', 'Set locally (local value applies)')}
- </span>
- )}
- </td>
- <td className="shared-vars-table__value">{v.value}</td>
- <td className="shared-vars-table__group">
- {scope && SCOPE_ORDER.includes(scope) && (
- <span className={`scope-badge scope-badge--${scope}`}>
- {SCOPE_LABELS[scope]}
- </span>
- )}
- <span className="shared-vars-table__group-name">
- {v.group_name || '—'}
- </span>
- </td>
- </tr>
- );
- })}
- </tbody>
- </table>
+ <DataTable
+ className="shared-vars-table"
+ columns={columns}
+ data={filtered}
+ keyField="key"
+ sortable={false}
+ columnMenu={false}
+ rowClassName={(v) => [
+ v.is_secret ? 'is-secret' : null,
+ localKeys && localKeys.has(v.key) ? 'has-conflict' : null,
+ ].filter(Boolean).join(' ') || undefined}
+ />
)}
</div>
);
diff --git a/frontend/src/components/workspaces/WorkspaceApplicationsTab.jsx b/frontend/src/components/workspaces/WorkspaceApplicationsTab.jsx
index 3c6b9158..ab157581 100644
--- a/frontend/src/components/workspaces/WorkspaceApplicationsTab.jsx
+++ b/frontend/src/components/workspaces/WorkspaceApplicationsTab.jsx
@@ -152,7 +152,6 @@ const WorkspaceApplicationsTab = ({ kind, wsId, rows, appsOut, onMoveApp, onShar
onSortsChange={setSorts}
{...chrome.tableProps}
onRowClick={(a) => navigate(`/services/${a.id}`)}
- className="ws-detail__tablecard"
emptyState={loadError ? (
<ErrorState
title={kind === 'sites'
diff --git a/frontend/src/components/workspaces/WorkspaceMembersTab.jsx b/frontend/src/components/workspaces/WorkspaceMembersTab.jsx
index 1f2bf87b..1923f2ad 100644
--- a/frontend/src/components/workspaces/WorkspaceMembersTab.jsx
+++ b/frontend/src/components/workspaces/WorkspaceMembersTab.jsx
@@ -149,7 +149,6 @@ const WorkspaceMembersTab = ({ members, allUsers, onAddMember, onRemoveMember, l
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- className="ws-detail__tablecard"
emptyState={loadError ? (
<ErrorState
title={t('app.workspaceMembersTab.couldntLoadMembers', "Couldn't load members.")}
diff --git a/frontend/src/components/workspaces/WorkspaceServersTab.jsx b/frontend/src/components/workspaces/WorkspaceServersTab.jsx
index cd8c33bb..a1826c4d 100644
--- a/frontend/src/components/workspaces/WorkspaceServersTab.jsx
+++ b/frontend/src/components/workspaces/WorkspaceServersTab.jsx
@@ -149,7 +149,6 @@ const WorkspaceServersTab = ({ wsId, srvIn, srvOut, onMoveServer, loadError, onR
onSortsChange={setSorts}
{...chrome.tableProps}
onRowClick={(s) => navigate(`/servers/${s.id}`)}
- className="ws-detail__tablecard"
emptyState={loadError ? (
<ErrorState
title={t('app.workspaceServersTab.couldntLoadServers', "Couldn't load servers.")}
diff --git a/frontend/src/pages/Backups.jsx b/frontend/src/pages/Backups.jsx
index 3caea03e..b2c54dd9 100644
--- a/frontend/src/pages/Backups.jsx
+++ b/frontend/src/pages/Backups.jsx
@@ -592,6 +592,7 @@ const Backups = () => {
},
{
key: 'actions',
+ width: '1%',
header: '',
sortable: false,
hideable: false,
@@ -779,24 +780,22 @@ const Backups = () => {
title={t('app.backups.noSnapshotsMatch', 'No backups match "{{value}}".', { value: search.trim() })}
/>
) : (
- <div className="bk-card">
- <DataTable
- {...chrome.tableProps}
- columns={chrome.columns}
- data={searchedBackups}
- keyField="path"
- sorts={sorts}
- onSortsChange={setSorts}
- tableClassName="bk-table"
- footer={(
- <DataTableFooter
- shown={chrome.shownCount}
- total={backups.length}
- noun="snapshot"
- />
- )}
- />
- </div>
+ <DataTable
+ {...chrome.tableProps}
+ columns={chrome.columns}
+ data={searchedBackups}
+ keyField="path"
+ sorts={sorts}
+ onSortsChange={setSorts}
+ className="bk-table"
+ footer={(
+ <DataTableFooter
+ shown={chrome.shownCount}
+ total={backups.length}
+ noun="snapshot"
+ />
+ )}
+ />
)}
<GridFilterDrawer {...chrome.drawerProps} />
diff --git a/frontend/src/pages/CronJobs.jsx b/frontend/src/pages/CronJobs.jsx
index ed16ecc7..1f1ee3fc 100644
--- a/frontend/src/pages/CronJobs.jsx
+++ b/frontend/src/pages/CronJobs.jsx
@@ -319,6 +319,7 @@ const CronJobs = () => {
},
{
key: 'schedule',
+ width: '200px',
headerKey: 'common.labels.schedule', header: 'Schedule',
sortable: true,
sortValue: (job) => describeSchedule(job),
@@ -335,6 +336,7 @@ const CronJobs = () => {
},
{
key: 'last_run',
+ width: '120px',
headerKey: 'app.cronJobs.lastRun', header: 'Last run',
sortable: true,
sortValue: (job) => timeValue(job.last_run),
@@ -343,6 +345,7 @@ const CronJobs = () => {
},
{
key: 'next_run',
+ width: '120px',
headerKey: 'app.cronJobs.nextRun', header: 'Next run',
cellClassName: 'cron-cell-mono',
render: (job) => (
@@ -351,6 +354,7 @@ const CronJobs = () => {
},
{
key: 'status',
+ width: '120px',
headerKey: 'common.labels.status', header: 'Status',
sortable: true,
type: 'enum',
@@ -366,6 +370,7 @@ const CronJobs = () => {
},
{
key: 'enabled',
+ width: '56px',
header: 'On',
hideable: false,
render: (job) => (
@@ -384,6 +389,7 @@ const CronJobs = () => {
},
{
key: 'run',
+ width: '1%',
header: '',
hideable: false,
cellClassName: 'cron-cell-actions',
@@ -494,26 +500,24 @@ const CronJobs = () => {
{q ? t('app.cronJobs.noJobsMatchSearch', 'No jobs match “{{search}}”.', { search: search.trim() }) : t('app.cronJobs.noJobsMatchFilter', 'No jobs match this filter.')}
</div>
) : (
- <div className="cron-card">
- <DataTable
- tableClassName="sk-dtable cron-table"
- data={shown}
- keyField="id"
- columns={chrome.columns}
- sorts={sorts}
- onSortsChange={setSorts}
- {...chrome.tableProps}
- onRowClick={setDrawerJob}
- rowClassName={(job) => (job.enabled ? undefined : 'is-disabled')}
- footer={(
- <DataTableFooter
- shown={chrome.shownCount}
- total={jobs.length}
- noun="job"
- />
- )}
- />
- </div>
+ <DataTable
+ className="cron-table"
+ data={shown}
+ keyField="id"
+ columns={chrome.columns}
+ sorts={sorts}
+ onSortsChange={setSorts}
+ {...chrome.tableProps}
+ onRowClick={setDrawerJob}
+ rowClassName={(job) => (job.enabled ? undefined : 'is-disabled')}
+ footer={(
+ <DataTableFooter
+ shown={chrome.shownCount}
+ total={jobs.length}
+ noun="job"
+ />
+ )}
+ />
)}
<div className="cron-tznote">
@@ -731,7 +735,6 @@ function CronDrawer({ job, isAdmin, running, onClose, onRefresh, onRun, onEdit,
<div className="cron-drawer__table">
<DataTable
- tableClassName="sk-dtable"
storageKey="serverkit-table-cron-runs"
data={runs}
keyField="id"
diff --git a/frontend/src/pages/DeliveryLog.jsx b/frontend/src/pages/DeliveryLog.jsx
index 0f9dc4e4..315a1751 100644
--- a/frontend/src/pages/DeliveryLog.jsx
+++ b/frontend/src/pages/DeliveryLog.jsx
@@ -326,8 +326,6 @@ export default function DeliveryLog() {
sorts={sorts}
onSortsChange={setSorts}
{...chrome.tableProps}
- className="sk-dlog__table-wrap"
- tableClassName="sk-dlog__table"
footer={(
<DataTableFooter
shown={deliveries.length}
diff --git a/frontend/src/pages/Domains.jsx b/frontend/src/pages/Domains.jsx
index 2e68479e..8ae71cfd 100644
--- a/frontend/src/pages/Domains.jsx
+++ b/frontend/src/pages/Domains.jsx
@@ -92,7 +92,7 @@ const BUILTIN_VIEWS = [
{ id: 'a2', field: 'status', op: 'any', value: ['unconfigured'] },
],
},
- sub: ['registrar'],
+ sub: [],
density: 'cozy',
group: null,
},
@@ -416,7 +416,7 @@ const Domains = () => {
value: (d) => (d.application_id ? appName(d.application_id) : '—'),
render: (d) => (d.application_id
? <span className="sk-tag">{appName(d.application_id)}</span>
- : <span className="dom-dash">unlinked</span>),
+ : <span className="dom-dash">—</span>),
},
{
key: 'provider',
@@ -538,7 +538,9 @@ const Domains = () => {
initial: {
cols: ['name', 'site', 'ssl', 'expiry', 'autoRenew', 'status'],
sort: { key: 'name', dir: 'asc' },
- sub: ['registrar'],
+ // No default sub-line: an unknown registrar rendered "Registrar —"
+ // under every row. It stays one click away as a column.
+ sub: [],
},
});
const { cfg } = grid;
diff --git a/frontend/src/pages/Errors.jsx b/frontend/src/pages/Errors.jsx
index e58bbf00..5d6f2db1 100644
--- a/frontend/src/pages/Errors.jsx
+++ b/frontend/src/pages/Errors.jsx
@@ -320,7 +320,6 @@ export default function Errors() {
/>
<DataTable
- tableClassName="sk-dtable errors-table"
storageKey="serverkit-table-errors"
data={entries}
keyField="id"
diff --git a/frontend/src/pages/ImportWizard.jsx b/frontend/src/pages/ImportWizard.jsx
index d222e6d0..92adb67a 100644
--- a/frontend/src/pages/ImportWizard.jsx
+++ b/frontend/src/pages/ImportWizard.jsx
@@ -10,7 +10,7 @@ import api from '../services/api';
import HtaccessConverter from '../components/apps/HtaccessConverter';
import { useToast } from '../contexts/useToast.js';
import { useConfirm } from '../hooks/useConfirm';
-import { Pill, statusKind } from '@/components/ds';
+import { DataTable, Pill, statusKind } from '@/components/ds';
import PageLayout from '../layouts/PageLayout';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -51,6 +51,54 @@ function StatusPill({ status }) {
// Analysis report (step 3): domains/databases tables, db users, crontab,
// warnings + unsupported callouts. Pure render off the contract's shape.
+// Analysis report tables: what the archive holds, read-only.
+const DOMAIN_COLUMNS = [
+ {
+ key: 'domain',
+ headerKey: 'common.labels.domain', header: 'Domain',
+ cellClassName: 'sk-cell-mono',
+ render: (d) => d.domain,
+ },
+ {
+ key: 'type',
+ headerKey: 'common.labels.type', header: 'Type',
+ cellClassName: 'sk-cell-dim',
+ render: (d) => d.type || '—',
+ },
+ {
+ key: 'docroot',
+ headerKey: 'app.importWizard.docroot', header: 'Docroot',
+ cellClassName: 'sk-cell-mono',
+ render: (d) => d.docroot || '—',
+ },
+];
+
+const DATABASE_COLUMNS = [
+ {
+ key: 'name',
+ headerKey: 'common.labels.name', header: 'Name',
+ render: (db) => db.name,
+ },
+ {
+ key: 'engine',
+ headerKey: 'app.importWizard.engine', header: 'Engine',
+ cellClassName: 'sk-cell-dim',
+ render: (db) => db.engine || '—',
+ },
+ {
+ key: 'size',
+ headerKey: 'common.labels.size', header: 'Size',
+ cellClassName: 'sk-cell-dim',
+ render: (db) => formatBytes(db.size),
+ },
+ {
+ key: 'dump_path',
+ headerKey: 'app.importWizard.dump', header: 'Dump',
+ cellClassName: 'sk-cell-mono',
+ render: (db) => db.dump_path || '—',
+ },
+];
+
function AnalysisReport({ analysis }) {
const { t } = useTranslation();
const domains = analysis.domains || [];
@@ -92,22 +140,13 @@ function AnalysisReport({ analysis }) {
{domains.length === 0 ? (
<p className="import-wizard__muted">{t('app.importWizard.noDomainsFoundInTheArchive', 'No domains found in the archive.')}</p>
) : (
- <div className="import-wizard__table-wrap">
- <table className="import-wizard__table">
- <thead>
- <tr><th>{t('common.labels.domain', 'Domain')}</th><th>{t('common.labels.type', 'Type')}</th><th>{t('app.importWizard.docroot', 'Docroot')}</th></tr>
- </thead>
- <tbody>
- {domains.map((d) => (
- <tr key={d.domain}>
- <td>{d.domain}</td>
- <td>{d.type || '—'}</td>
- <td><code>{d.docroot || '—'}</code></td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <DataTable
+ columns={DOMAIN_COLUMNS}
+ data={domains}
+ keyField="domain"
+ sortable={false}
+ columnMenu={false}
+ />
)}
</section>
@@ -116,23 +155,13 @@ function AnalysisReport({ analysis }) {
{databases.length === 0 ? (
<p className="import-wizard__muted">{t('app.importWizard.noDatabaseDumpsFound', 'No database dumps found.')}</p>
) : (
- <div className="import-wizard__table-wrap">
- <table className="import-wizard__table">
- <thead>
- <tr><th>{t('common.labels.name', 'Name')}</th><th>{t('app.importWizard.engine', 'Engine')}</th><th>{t('common.labels.size', 'Size')}</th><th>{t('app.importWizard.dump', 'Dump')}</th></tr>
- </thead>
- <tbody>
- {databases.map((db) => (
- <tr key={db.name}>
- <td>{db.name}</td>
- <td>{db.engine || '—'}</td>
- <td>{formatBytes(db.size)}</td>
- <td><code>{db.dump_path || '—'}</code></td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
+ <DataTable
+ columns={DATABASE_COLUMNS}
+ data={databases}
+ keyField="name"
+ sortable={false}
+ columnMenu={false}
+ />
)}
</section>
diff --git a/frontend/src/pages/Incidents.jsx b/frontend/src/pages/Incidents.jsx
index ef7e6c3d..5b4977cc 100644
--- a/frontend/src/pages/Incidents.jsx
+++ b/frontend/src/pages/Incidents.jsx
@@ -531,27 +531,24 @@ export default function Incidents() {
description={t('app.incidents.noMonitorIsDownAndNo', 'No monitor is down and no host is over its limit.')}
/>
) : (
- <div className="mon-card">
- <DataTable
- {...chrome.tableProps}
- tableClassName="sk-dtable incidents-table"
- columns={chrome.columns}
- data={shown}
- keyField="key"
- sorts={sorts}
- onSortsChange={setSorts}
- onRowClick={setSelected}
- emptyTitle="No incidents match this view."
- emptyMessage=""
- footer={(
- <DataTableFooter
- shown={chrome.shownCount}
- total={items.length}
- noun="incident"
- />
- )}
- />
- </div>
+ <DataTable
+ {...chrome.tableProps}
+ columns={chrome.columns}
+ data={shown}
+ keyField="key"
+ sorts={sorts}
+ onSortsChange={setSorts}
+ onRowClick={setSelected}
+ emptyTitle="No incidents match this view."
+ emptyMessage=""
+ footer={(
+ <DataTableFooter
+ shown={chrome.shownCount}
+ total={items.length}
+ noun="incident"
+ />
+ )}
+ />
)}
<Drawer
diff --git a/frontend/src/pages/MonitorDetail.jsx b/frontend/src/pages/MonitorDetail.jsx
index 3950ab39..8ac42362 100644
--- a/frontend/src/pages/MonitorDetail.jsx
+++ b/frontend/src/pages/MonitorDetail.jsx
@@ -627,31 +627,28 @@ export default function MonitorDetail() {
<GridChips {...chrome.chipProps} />
- <div className="mon-panel mon-panel--flush">
- <DataTable
- {...chrome.tableProps}
- tableClassName="sk-dtable monitor-checks-table"
- data={rows}
- keyField="id"
- sorts={sorts}
- onSortsChange={setSorts}
- rowClassName={(c) => (c.status === 'up' ? undefined : 'is-bad')}
- emptyState={(
- <EmptyState
- icon={Activity}
- title={t('app.monitorDetail.noChecksInThisWindowYet', 'No checks in this window yet.')}
- />
- )}
- columns={chrome.columns}
- footer={(
- <DataTableFooter
- shown={chrome.shownCount}
- total={rows.length}
- noun="check"
- />
- )}
- />
- </div>
+ <DataTable
+ {...chrome.tableProps}
+ data={rows}
+ keyField="id"
+ sorts={sorts}
+ onSortsChange={setSorts}
+ rowClassName={(c) => (c.status === 'up' ? undefined : 'is-bad')}
+ emptyState={(
+ <EmptyState
+ icon={Activity}
+ title={t('app.monitorDetail.noChecksInThisWindowYet', 'No checks in this window yet.')}
+ />
+ )}
+ columns={chrome.columns}
+ footer={(
+ <DataTableFooter
+ shown={chrome.shownCount}
+ total={rows.length}
+ noun="check"
+ />
+ )}
+ />
<GridFilterDrawer {...chrome.drawerProps} />
</>
diff --git a/frontend/src/pages/Monitors.jsx b/frontend/src/pages/Monitors.jsx
index 5fd7c17c..ed11a6c7 100644
--- a/frontend/src/pages/Monitors.jsx
+++ b/frontend/src/pages/Monitors.jsx
@@ -520,21 +520,18 @@ export default function Monitors() {
: <Button onClick={openCreate}><Plus size={16} /> {t('app.monitors.addMonitor', 'New monitor')}</Button>}
/>
) : (
- <div className="mon-card">
- <DataTable
- tableClassName="sk-dtable monitors-table"
- storageKey="serverkit-table-monitors"
- data={monitors}
- keyField="id"
- columns={chrome.columns}
- sorts={sorts}
- onSortsChange={setSorts}
- {...chrome.tableProps}
- onRowClick={(m) => navigate(`/monitoring/monitors/${m.id}`)}
- rowClassName={(m) => (m.is_paused ? 'is-disabled' : undefined)}
- footer={<DataTableFooter shown={monitors.length} total={monitors.length} noun="monitor" />}
- />
- </div>
+ <DataTable
+ storageKey="serverkit-table-monitors"
+ data={monitors}
+ keyField="id"
+ columns={chrome.columns}
+ sorts={sorts}
+ onSortsChange={setSorts}
+ {...chrome.tableProps}
+ onRowClick={(m) => navigate(`/monitoring/monitors/${m.id}`)}
+ rowClassName={(m) => (m.is_paused ? 'is-disabled' : undefined)}
+ footer={<DataTableFooter shown={monitors.length} total={monitors.length} noun="monitor" />}
+ />
)}
{/* The SERVER-side pair: this one changes what /monitors is asked
diff --git a/frontend/src/pages/QueueDetail.jsx b/frontend/src/pages/QueueDetail.jsx
index 775f92e4..9477e01b 100644
--- a/frontend/src/pages/QueueDetail.jsx
+++ b/frontend/src/pages/QueueDetail.jsx
@@ -290,6 +290,7 @@ const QueueDetail = () => {
header: '',
sortable: false,
hideable: false,
+ width: '1%',
className: 'col-actions',
cellClassName: 'col-actions',
render: (msg) => (
@@ -438,8 +439,7 @@ const QueueDetail = () => {
{...chrome.tableProps}
onRowClick={(msg) => setSelectedMessage(msg)}
rowClassName={(msg) => (selectedMessage?.id === msg.id ? 'is-selected' : '')}
- className="queue-table-wrap"
- tableClassName="queue-table"
+ className="queue-table"
footer={(
<DataTableFooter
shown={messages.length}
diff --git a/frontend/src/pages/QueueOperations.jsx b/frontend/src/pages/QueueOperations.jsx
index c366ab91..6201e160 100644
--- a/frontend/src/pages/QueueOperations.jsx
+++ b/frontend/src/pages/QueueOperations.jsx
@@ -401,6 +401,7 @@ const QueueOperations = () => {
header: '',
sortable: false,
hideable: false,
+ width: '1%',
className: 'col-actions',
cellClassName: 'col-actions',
render: (queue) => (
@@ -645,8 +646,7 @@ const QueueOperations = () => {
onSortsChange={setSorts}
{...chrome.tableProps}
onRowClick={(queue) => openQueue(queue)}
- className="queue-table-wrap"
- tableClassName="queue-table"
+ className="queue-table"
footer={(
<DataTableFooter
shown={filteredQueues.length}
diff --git a/frontend/src/pages/Servers.jsx b/frontend/src/pages/Servers.jsx
index 698e6c89..b7b183d1 100644
--- a/frontend/src/pages/Servers.jsx
+++ b/frontend/src/pages/Servers.jsx
@@ -143,6 +143,7 @@ const meterColumn = (key, header, metricKey) => ({
header,
sortable: true,
sortValue: (server) => (isLive(server) ? clamp(server.metrics?.[metricKey]) : null),
+ width: '108px',
className: 'servers-table__meter',
cellClassName: 'servers-table__meter',
render: (server) => {
@@ -465,8 +466,6 @@ const Servers = () => {
keyboardNav
onRowClick={(server) => navigate(`/servers/${server.id}`)}
rowClassName="servers-row"
- className="servers-card"
- tableClassName="servers-table"
footer={(
<DataTableFooter
shown={chrome.shownCount}
diff --git a/frontend/src/pages/Telemetry.jsx b/frontend/src/pages/Telemetry.jsx
index 160b12e3..979a418a 100644
--- a/frontend/src/pages/Telemetry.jsx
+++ b/frontend/src/pages/Telemetry.jsx
@@ -439,7 +439,6 @@ export default function Telemetry() {
) : (
<>
<DataTable
- tableClassName="sk-dtable telemetry-table"
data={events}
keyField="id"
columns={chrome.columns}
diff --git a/frontend/src/pages/TestSandbox.jsx b/frontend/src/pages/TestSandbox.jsx
index 85133b48..5ac1973a 100644
--- a/frontend/src/pages/TestSandbox.jsx
+++ b/frontend/src/pages/TestSandbox.jsx
@@ -2,7 +2,7 @@ import { useState, useEffect, useRef, useMemo, useCallback } from 'react';
import api from '../services/api';
import { useToast } from '../contexts/useToast.js';
import EmptyState from '../components/EmptyState';
-import { Pill, statusKind } from '@/components/ds';
+import { DataTable, Pill, statusKind } from '@/components/ds';
import PageLayout from '../layouts/PageLayout';
import { Button } from '@/components/ui/button';
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';
@@ -518,52 +518,56 @@ const TestSandbox = () => {
description={t('app.testSandbox.pickDistrosAboveAndStartYour', 'Pick distros above and start your first sandbox run.')}
/>
) : (
- <div className="ts-history-card">
- <table className="sk-dtable ts-table">
- <thead>
- <tr>
- <th>{t('app.testSandbox.run2', 'Run')}</th>
- <th>{t('app.testSandbox.mode', 'Mode')}</th>
- <th>{t('app.testSandbox.distros', 'Distros')}</th>
- <th>{t('app.testSandbox.result', 'Result')}</th>
- <th>{t('app.testSandbox.started', 'Started')}</th>
- <th>{t('common.labels.status', 'Status')}</th>
- </tr>
- </thead>
- <tbody>
- {runs.map((run) => {
- const { passed, failed, total } = summarizeRun(run);
- const expanded = !!expandedRuns[run.id];
- return (
- <FragmentRow
- key={run.id}
- run={run}
- expanded={expanded}
- passed={passed}
- failed={failed}
- total={total}
- onToggle={() => toggleHistoryRun(run)}
- detail={expanded && (
- <RunResults
- run={expandedRuns[run.id]}
- distroMeta={distroMeta}
- logs={logs}
- openLogs={openLogs}
- onToggleLog={toggleLog}
- />
- )}
+ // Columns give the header; rows render through renderRow
+ // because a run expands into a full-width detail row.
+ <DataTable
+ columns={HISTORY_COLUMNS}
+ data={runs}
+ keyField="id"
+ sortable={false}
+ columnMenu={false}
+ renderRow={(run, { key }) => {
+ const { passed, failed, total } = summarizeRun(run);
+ const expanded = !!expandedRuns[run.id];
+ return (
+ <FragmentRow
+ key={key}
+ run={run}
+ expanded={expanded}
+ passed={passed}
+ failed={failed}
+ total={total}
+ onToggle={() => toggleHistoryRun(run)}
+ detail={expanded && (
+ <RunResults
+ run={expandedRuns[run.id]}
+ distroMeta={distroMeta}
+ logs={logs}
+ openLogs={openLogs}
+ onToggleLog={toggleLog}
/>
- );
- })}
- </tbody>
- </table>
- </div>
+ )}
+ />
+ );
+ }}
+ />
)}
</section>
</PageLayout>
);
};
+// Run history header. Body rows are FragmentRow (a run + its detail row), so
+// these columns only name the six cells FragmentRow renders, in order.
+const HISTORY_COLUMNS = [
+ { key: 'id', headerKey: 'app.testSandbox.run2', header: 'Run' },
+ { key: 'mode', headerKey: 'app.testSandbox.mode', header: 'Mode' },
+ { key: 'distros', headerKey: 'app.testSandbox.distros', header: 'Distros' },
+ { key: 'result', headerKey: 'app.testSandbox.result', header: 'Result' },
+ { key: 'created_at', headerKey: 'app.testSandbox.started', header: 'Started' },
+ { key: 'status', headerKey: 'common.labels.status', header: 'Status' },
+];
+
// One history row (+ its expanded detail row) in the runs table.
function FragmentRow({ run, expanded, passed, failed, total, onToggle, detail }) {
return (
@@ -576,19 +580,19 @@ function FragmentRow({ run, expanded, passed, failed, total, onToggle, detail })
</div>
</td>
<td><Pill kind="gray" dot={false}>{run.mode}</Pill></td>
- <td>{total}</td>
+ <td className="sk-cell-dim">{total}</td>
<td>
<span className="ts-summary">
<span className="ts-summary__pass">{passed} passed</span>
{failed > 0 && <span className="ts-summary__fail">{failed} failed</span>}
</span>
</td>
- <td>{timeAgo(run.created_at)}</td>
+ <td className="sk-cell-dim">{timeAgo(run.created_at)}</td>
<td><Pill kind={statusKind(run.status)}>{run.status}</Pill></td>
</tr>
{expanded && (
<tr className="ts-detail-row">
- <td colSpan={6}>{detail}</td>
+ <td className="ts-detail-cell" colSpan={HISTORY_COLUMNS.length}>{detail}</td>
</tr>
)}
</>
diff --git a/frontend/src/styles/components/_api-settings.scss b/frontend/src/styles/components/_api-settings.scss
index 365eb35b..6118e911 100644
--- a/frontend/src/styles/components/_api-settings.scss
+++ b/frontend/src/styles/components/_api-settings.scss
@@ -14,48 +14,13 @@
// ─── Tables ────────────────────────────────────────────
-.api-settings__table-wrap {
- overflow-x: auto;
-}
-
-.api-settings__table {
- width: 100%;
- border-collapse: collapse;
+// The tables are .sk-dtable; only inline code in cells is styled here.
+.api-settings__table code {
+ font-family: $font-mono;
font-size: $text-xs;
-
- th, td {
- padding: $space-2 $space-3;
- text-align: left;
- border-bottom: 1px solid $border-subtle;
- }
-
- th {
- color: $text-secondary;
- font-weight: $font-weight-medium;
- font-size: $text-xs;
- }
-
- td {
- color: $text-primary;
- }
-
- tbody tr:hover {
- background: $bg-hover;
- }
-
- code {
- font-family: $font-mono;
- font-size: $text-xs;
- padding: $space-hair $space-tight;
- background: $bg-elevated;
- border-radius: $radius-badge;
- }
-
- &--compact {
- th, td {
- padding: $space-1 $space-2;
- }
- }
+ padding: $space-hair $space-tight;
+ background: $bg-elevated;
+ border-radius: $radius-badge;
}
.api-settings__key-name {
diff --git a/frontend/src/styles/components/_buttons.scss b/frontend/src/styles/components/_buttons.scss
index 4851daa8..7e8f2a10 100644
--- a/frontend/src/styles/components/_buttons.scss
+++ b/frontend/src/styles/components/_buttons.scss
@@ -270,4 +270,12 @@ background: transparent;
background-color: $bg-hover;
color: $text-primary;
}
+
+ // Destructive row action: quiet like its neighbours, red only on hover.
+ // A solid red button in every row shouts the one action nobody wants by
+ // accident. A class, not a variant, so an older panel degrades to ghost.
+ &.is-danger:hover:not(:disabled) {
+ background-color: var(--red-bg);
+ color: var(--red);
+ }
}
diff --git a/frontend/src/styles/components/_dashboard-widgets.scss b/frontend/src/styles/components/_dashboard-widgets.scss
index 12e31f41..fbc84b23 100644
--- a/frontend/src/styles/components/_dashboard-widgets.scss
+++ b/frontend/src/styles/components/_dashboard-widgets.scss
@@ -785,6 +785,12 @@ $skw-z-tv: 200;
}
// ---- table: apps / servers / containers / deploys -----------
+// The one list table that is not a DataTable (listed in check-tables.mjs
+// OWNERS): a widget can be three rows tall, so it keeps compact rows instead
+// of the 40px DataTable minimum, and its header sticks inside the widget body.
+// Everything else follows the .sk-dtable spec — 32px unfilled header (the
+// frame's own surface, so scrolled rows slide under it), faint labels,
+// horizontal separators only, $space-4 outer edges.
.skw-table-wrap {
flex: 1;
overflow: auto;
@@ -796,18 +802,19 @@ $skw-z-tv: 200;
border-collapse: collapse;
font-size: $text-xs;
- // Sticky head so a widget only 3 rows tall still shows its columns.
th {
position: sticky;
top: 0;
z-index: 1;
- padding: $space-2 $space-3;
- border-bottom: 1px solid var(--border-soft);
- background: var(--surface-2);
- color: var(--text-ghost);
+ height: $control-md;
+ padding: 0 $space-3;
+ border-bottom: 1px solid var(--border);
+ background: var(--surface);
+ color: var(--text-faint);
font-size: $text-xs;
- font-weight: $font-weight-semibold;
+ font-weight: $font-weight-medium;
text-align: left;
+ white-space: nowrap;
}
td {
@@ -823,11 +830,18 @@ $skw-z-tv: 200;
&.mono { font-family: var(--mono); font-size: $text-xs; }
}
+ th:first-child,
+ td:first-child { padding-inline-start: $space-4; }
+
+ th:last-child,
+ td:last-child { padding-inline-end: $space-4; }
+
tbody tr {
cursor: pointer;
- transition: background 0.1s;
+ transition: background 0.12s;
&:hover { background: var(--surface-2); }
+ &:last-child td { border-bottom: none; }
}
}
diff --git a/frontend/src/styles/components/_datagrid.scss b/frontend/src/styles/components/_datagrid.scss
index 12dae6d7..005a8300 100644
--- a/frontend/src/styles/components/_datagrid.scss
+++ b/frontend/src/styles/components/_datagrid.scss
@@ -342,8 +342,9 @@
top: 0;
z-index: 6;
min-height: $control-md; // table header spec: 32
- border-bottom: 1px solid var(--border-soft);
- background: var(--surface-2);
+ border-bottom: 1px solid var(--border);
+ // Unfilled like .sk-dtable; the surface only backs the sticky header.
+ background: var(--surface);
border-radius: $radius-card $radius-card 0 0;
}
@@ -359,13 +360,14 @@
&:first-child { padding-inline-start: $space-4; }
font-size: $text-xs;
- color: var(--text-ghost);
+ font-weight: $font-weight-medium;
+ color: var(--text-faint);
user-select: none;
min-width: 0;
&.is-sortable { cursor: pointer; }
&.is-sortable:hover { color: var(--text-dim); }
- &.is-sorted { color: var(--text); }
+ &.is-sorted { color: var(--accent-bright); }
&.is-filtered { color: var(--accent-bright); }
&.is-num { justify-content: flex-end; }
}
@@ -389,9 +391,11 @@
// Rows: min 40; two-line identity cells grow past it.
&__row {
min-height: $control-lg;
- border-top: 1px solid var(--border-soft);
+ border-bottom: 1px solid var(--border-soft);
transition: background 0.12s;
+ &:last-child { border-bottom: none; }
+
&.is-clickable { cursor: pointer; }
&:hover { background: var(--surface-2); }
&.is-picked { background: var(--accent-bg-soft); }
@@ -405,7 +409,6 @@
&:first-child { padding-inline-start: $space-4; }
&:last-child { padding-inline-end: $space-4; }
font-size: $text-sm;
- color: var(--text-dim);
overflow: hidden;
&.is-num {
@@ -422,22 +425,15 @@
min-width: 0;
}
+ // A bare leading glyph, like the sidebar's: no tile, border or hover tint
+ // — a boxed icon repeated down every row is noise, not identity.
&__avatar {
- width: 30px;
- height: 30px; // geometry: avatar box
- border-radius: $radius-card;
flex-shrink: 0;
display: grid;
place-items: center;
- background: var(--surface-3);
- border: 1px solid var(--border);
color: var(--text-faint);
- transition: 0.12s;
- }
- &__row:hover &__avatar {
- border-color: var(--accent-dim);
- @include status-variant(var(--accent-bright), var(--accent-bg));
+ svg { width: 16px; height: 16px; } // geometry: icon size
}
&__nameinner { min-width: 0; }
diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scss
index afe59154..a9d2d85e 100644
--- a/frontend/src/styles/components/_design-system.scss
+++ b/frontend/src/styles/components/_design-system.scss
@@ -150,18 +150,17 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
&:hover { border-color: var(--border-strong); }
+ // A bare glyph. Tinted icon squares in a rainbow of tones read as
+ // decoration; only "act on this" tones keep a colour, on the glyph alone.
&__icon {
grid-area: icon;
- width: 30px; height: 30px; border-radius: 8px;
display: grid; place-items: center;
- background: var(--surface-2); color: var(--text-dim);
+ color: var(--text-faint);
+
+ svg { width: 16px; height: 16px; } // geometry: icon size
- &--accent { @include status-variant(var(--accent-bright), var(--accent-bg)); }
- &--green { background: var(--green-bg); color: var(--green); }
- &--cyan { background: var(--cyan-bg); color: var(--cyan); }
- &--amber { background: var(--amber-bg); color: var(--amber); }
- &--red { background: var(--red-bg); color: var(--red); }
- &--violet { @include status-variant(var(--violet), var(--violet-bg)); }
+ &--amber { color: var(--amber); }
+ &--red { color: var(--red); }
}
// Grid areas need a single child to own the text column; a tile with no
// icon simply leaves the first track at zero width.
@@ -309,13 +308,13 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
// ServiceTile — gradient initial avatar
// ------------------------------------------------------------
.sk-tile {
- border-radius: $radius-card;
+ border-radius: $radius-control;
display: grid;
place-items: center;
- font-weight: $font-weight-semibold;
- color: #fff;
+ font-weight: $font-weight-medium;
+ background: var(--surface-3);
+ color: var(--text-dim);
flex-shrink: 0;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
// ------------------------------------------------------------
@@ -369,7 +368,7 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
text-align: left;
font-size: $text-xs;
color: var(--text-faint);
- font-weight: $font-weight-semibold;
+ font-weight: $font-weight-medium;
height: $control-md; // table header spec: 32
padding: 0 $space-3;
white-space: nowrap; // a wrapped label would grow the 32px header
@@ -387,9 +386,6 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
&.is-filtered .sk-colmenu-btn { opacity: 1; color: var(--accent-bright); }
}
- // Same flat header fill as the DataGrid, so the two table
- // implementations read as one component.
- thead { background: var(--surface-2); }
&__filter-mark { color: var(--accent-bright); flex-shrink: 0; }
@@ -501,7 +497,27 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
}
}
-.sk-dtable-wrap { overflow-x: auto; }
+// THE table frame. Every list table in the panel (Databases studio aside)
+// sits in exactly this: one surface, one hairline, one radius, no padding.
+// Pages never wrap it in another card or re-skin the cells; size columns
+// through the column definition's `width`, not page CSS. Held by
+// scripts/check-tables.mjs.
+.sk-dtable-wrap {
+ overflow-x: auto;
+ background: var(--surface);
+ border: 1px solid var(--border-soft);
+ border-radius: $radius-card;
+}
+
+// A table that is one section of a titled card/panel runs flush inside it:
+// two frames a pixel apart is the seam this rule removes. A page-specific
+// panel that frames its own header + table opts in with --flush.
+:is(.card, .ui-card, .settings-card, .app-panel, .modal-body, .sk-drawer, .sk-sheet, .skw-card) .sk-dtable-wrap,
+.sk-dtable-wrap--flush {
+ background: none;
+ border: 0;
+ border-radius: 0;
+}
// Opt-in sticky header for tall tables: cap the wrap and pin the thead.
.sk-dtable-wrap--sticky {
max-height: var(--dtable-max-height, 60vh);
@@ -867,10 +883,13 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
// ------------------------------------------------------------
.sk-bulkbar {
position: fixed;
- bottom: 22px;
+ // Clear the fixed global statusbar (it is taller than the old 22px offset
+ // and painted over the pill), on the shell's layer so it stays above the
+ // bar but below modals.
+ bottom: calc(var(--sk-statusbar-height, 0px) + #{$space-3});
left: 50%;
transform: translateX(-50%);
- z-index: 60;
+ z-index: $z-shell-statusbar;
display: flex;
align-items: center;
gap: $space-3;
@@ -1016,7 +1035,6 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
.wp-list {
display: flex;
flex-direction: column;
- padding: $space-4;
> .empty-state--loading:has(.sk-page-wrap) {
padding: 0;
@@ -1086,12 +1104,16 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
}
}
- &__card {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: $radius-card;
- overflow: hidden;
- }
+ // The frame is the table wrap's own (.sk-dtable-wrap); this only holds
+ // the table and its footer together.
+ &__card { min-width: 0; }
+
+ // Cell helpers every list uses. These lived only in the WordPress
+ // extension's copy of this block, so core lists were styled by whichever
+ // extension happened to be installed.
+ &__dash { color: var(--text-ghost); }
+ &__links { display: inline-flex; align-items: center; gap: $space-hair; }
+ .sk-tag + .sk-tag { margin-inline-start: $space-1; }
// Card layout for the same rows the table shows.
&__cards {
@@ -1132,8 +1154,10 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');
// the content scrolls in its own box below this bar, never under it, so
// alpha + backdrop-blur would cost a compositing layer to composite against
// a backdrop that never moves.
- background: var(--bg-sidebar);
- border-bottom: 1px solid var(--border-soft);
+ // Same surface and edge as the sidebar (--surface + --border), which
+ // separates from the canvas; --bg-sidebar sat ~2% off it and blended in.
+ background: var(--surface);
+ border-bottom: 1px solid var(--border);
&__ico { color: var(--accent-bright); display: inline-flex; flex-shrink: 0; }
&__titles { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
diff --git a/frontend/src/styles/components/_detail-tabs.scss b/frontend/src/styles/components/_detail-tabs.scss
index 1ba6ff55..df6d252b 100644
--- a/frontend/src/styles/components/_detail-tabs.scss
+++ b/frontend/src/styles/components/_detail-tabs.scss
@@ -60,7 +60,7 @@
// Config and audit rows carry everything they have in the row itself —
// only a deploy opens a drawer, so only a deploy gets a pointer.
- .sk-dtable tbody tr.is-static {
+ .sk-dtable .is-static {
cursor: default;
}
diff --git a/frontend/src/styles/components/_htaccess-converter.scss b/frontend/src/styles/components/_htaccess-converter.scss
index 0584c320..3016e11b 100644
--- a/frontend/src/styles/components/_htaccess-converter.scss
+++ b/frontend/src/styles/components/_htaccess-converter.scss
@@ -106,45 +106,16 @@
line-height: 1.5;
}
+ // The unsupported-directives DataTable: a capped, sticky-header scroller.
&__table-wrap {
- max-height: 220px;
- overflow: auto;
+ --dtable-max-height: 220px;
}
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th,
- td {
- padding: $space-2 $space-3;
- text-align: left;
- vertical-align: top;
- border-bottom: 1px solid $border-subtle;
- }
-
- th {
- position: sticky;
- top: 0;
- background: $bg-secondary;
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- }
-
- tr:last-child td {
- border-bottom: none;
- }
-
- code {
- font-family: $font-mono;
- word-break: break-all;
- color: $text-primary;
- }
+ &__line {
+ white-space: nowrap;
+ }
- td:first-child {
- white-space: nowrap;
- color: $text-tertiary;
- }
+ &__directive {
+ word-break: break-all;
}
}
diff --git a/frontend/src/styles/components/_query-runner.scss b/frontend/src/styles/components/_query-runner.scss
index 95ea3965..5b259371 100644
--- a/frontend/src/styles/components/_query-runner.scss
+++ b/frontend/src/styles/components/_query-runner.scss
@@ -348,69 +348,6 @@
}
}
-// Results table
-.results-table-container {
- flex: 1;
- overflow: auto;
-}
-
-.results-table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th, td {
- padding: $space-2 $space-3;
- text-align: left;
- border-bottom: 1px solid $border-subtle;
- white-space: nowrap;
- max-width: 300px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- th {
- position: sticky;
- top: 0;
- background: $bg-card;
- font-weight: $font-weight-medium;
- color: $text-secondary;
- cursor: pointer;
- user-select: none;
- transition: background $transition-fast;
-
- &:hover {
- background: $bg-hover;
- }
-
- &.sorted-asc,
- &.sorted-desc {
- color: $accent-primary;
- }
-
- .sort-indicator {
- font-size: $text-xs;
- margin-left: $space-1;
- }
- }
-
- td {
- font-family: $font-mono;
- color: $text-primary;
-
- &.null-value {
- color: $text-tertiary;
- font-style: italic;
- }
- }
-
- tbody tr {
- &:hover {
- background: fade($bg-hover-raw, 50%);
- }
- }
-}
-
// History panel
.query-history-panel {
position: absolute;
diff --git a/frontend/src/styles/components/_shared-resources.scss b/frontend/src/styles/components/_shared-resources.scss
index e3ba7ba8..e2725857 100644
--- a/frontend/src/styles/components/_shared-resources.scss
+++ b/frontend/src/styles/components/_shared-resources.scss
@@ -222,27 +222,10 @@
cursor: help;
}
-// Shared variables table (used in the resolved panel and the group detail)
+// Shared variables table (used in the resolved panel and the group detail).
+// The table is .sk-dtable; only cell content is styled here.
.shared-vars-table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th,
- td {
- text-align: left;
- padding: $space-2 $space-3;
- border-bottom: 1px solid $border-subtle;
- vertical-align: middle;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- font-size: $text-xs;
- }
-
&__key {
font-family: $font-mono;
font-weight: $font-weight-semibold;
@@ -277,14 +260,14 @@
color: $text-tertiary;
}
- tr.is-secret &__key {
+ .is-secret &__key {
border-left: 2px solid $warning;
padding-left: $space-2;
}
// Row whose shared value is overridden by a local env var — dim the value
// since it is not the effective one for the container.
- tr.has-conflict &__value {
+ .has-conflict &__value {
color: $text-tertiary;
text-decoration: line-through;
text-decoration-color: $warning-border;
diff --git a/frontend/src/styles/components/_tables.scss b/frontend/src/styles/components/_tables.scss
index 9cc3e882..be037290 100644
--- a/frontend/src/styles/components/_tables.scss
+++ b/frontend/src/styles/components/_tables.scss
@@ -60,37 +60,9 @@
}
}
+// `.data-table` is only ever a DataTable tableClassName now: the table is
+// .sk-dtable, so only the legacy cell-content helpers stay here.
.data-table {
-width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th {
- text-align: left;
- height: $control-md;
- padding: 0 $space-3;
- background: $bg-hover;
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- font-size: $text-xs;
- border-bottom: 1px solid $border-subtle;
- }
-
- td {
- height: $control-lg;
- padding: $space-2 $space-3;
- border-bottom: 1px solid $border-subtle;
- font-family: $font-mono;
- font-size: $text-xs;
- color: $text-secondary;
- }
-
- tr:hover { background: $bg-hover; }
- tr:last-child td { border-bottom: none; }
-
- th:first-child, td:first-child { padding-inline-start: $space-4; }
- th:last-child, td:last-child { padding-inline-end: $space-4; }
-
.container-name {
display: block;
color: $text-primary;
diff --git a/frontend/src/styles/components/_users.scss b/frontend/src/styles/components/_users.scss
index def79051..e5f0d826 100644
--- a/frontend/src/styles/components/_users.scss
+++ b/frontend/src/styles/components/_users.scss
@@ -72,48 +72,14 @@
}
}
-.users-table-container {
- overflow-x: auto;
- background: var(--surface);
- border: 1px solid $border-default;
- border-radius: $radius-control;
-}
-
.users-action--warning { color: $warning; }
.users-action--success { color: $success; }
.users-action--danger { color: $danger; }
+// `.users-table` is the DataTable wrap; only row/cell content is styled here.
.users-table {
- width: 100%;
- border-collapse: collapse;
-
- th, td {
- padding: $space-4;
- text-align: left;
- border-bottom: 1px solid $border-default;
- }
-
- th {
- background: $bg-hover;
- font-weight: $font-weight-medium;
- font-size: $text-xs;
- color: $text-secondary;
- }
-
- tr:last-child td {
- border-bottom: none;
- }
-
- tr:hover td {
- background: $bg-card;
- }
-
- tr.inactive {
+ .inactive {
opacity: 0.6;
-
- td {
- background: fade($warning-raw, 5%);
- }
}
.user-info {
diff --git a/frontend/src/styles/layout/_main-content.scss b/frontend/src/styles/layout/_main-content.scss
index 5a291724..06bd4c45 100644
--- a/frontend/src/styles/layout/_main-content.scss
+++ b/frontend/src/styles/layout/_main-content.scss
@@ -67,9 +67,8 @@
// Shared Page Wrapper
.page-container {
+ // Full width like every page body (Dashboard, Server detail).
width: 100%;
- max-width: 1400px;
- margin: 0 auto;
padding-bottom: $space-10;
&--full-bleed {
@@ -117,11 +116,13 @@
}
// Centered body: the reading column every ordinary page sits in.
+// Full width on every page (lists, dashboards, detail pages alike) with one
+// gutter; a form that needs a reading width caps its own column (Settings).
@mixin page-shell-inner {
width: 100%;
- max-width: 1400px;
- margin-inline: auto;
- padding: $space-6 $space-6 $space-10;
+ // One gutter on every side for every page body; page roots inside add no
+ // padding of their own, so content starts at the same spot everywhere.
+ padding: $space-5 $space-5 $space-8;
@media (max-width: $breakpoint-md) { padding: $space-4 $space-4 $space-8; }
}
diff --git a/frontend/src/styles/pages/_applications.scss b/frontend/src/styles/pages/_applications.scss
index bccdb27b..c2fc1e84 100644
--- a/frontend/src/styles/pages/_applications.scss
+++ b/frontend/src/styles/pages/_applications.scss
@@ -96,17 +96,6 @@
}
}
-.apps-table {
- th:last-child,
- td:last-child {
- text-align: right;
- }
-
- .sk-cell-name > div {
- min-width: 0;
- }
-}
-
// Tinted type glyph tile (brand colors arrive via inline style props,
// same convention as the Services list type icon)
.apps-type-ico {
@@ -1547,34 +1536,6 @@
}
}
- &__table-wrap {
- overflow-x: auto;
- }
-
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-sm;
-
- th,
- td {
- text-align: left;
- padding: $space-3 $spacing-md;
- border-bottom: 1px solid var(--border-soft);
- vertical-align: top;
- }
-
- th {
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: var(--text-faint);
- }
-
- tbody tr:last-child td {
- border-bottom: none;
- }
- }
-
&__msg {
max-width: 320px;
}
diff --git a/frontend/src/styles/pages/_backups.scss b/frontend/src/styles/pages/_backups.scss
index 10097d57..f3ce642c 100644
--- a/frontend/src/styles/pages/_backups.scss
+++ b/frontend/src/styles/pages/_backups.scss
@@ -230,18 +230,13 @@
}
}
-.bk-latest {
- td { border-bottom: 1px solid var(--border-soft); }
- tr:last-child td { border-bottom: 0; }
-}
-
// ---------- Schedules (mock `BkSchedules`) ----------
// A disabled policy stays readable but visibly inert, so a paused row never
// gets mistaken for a running one.
.bk-table--schedules {
- tr.is-off { opacity: 0.55; }
+ .is-off { opacity: 0.55; }
- .bk-col-on { width: 1%; white-space: nowrap; }
+ .bk-col-on { white-space: nowrap; } // width: column definition
}
// Retention chips (the mock's GFS daily/weekly/monthly row).
@@ -472,13 +467,6 @@
}
}
-.bk-card {
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-card;
- padding: $space-4;
-}
-
// Row actions stay on one line at the right edge. They used to wrap, which
// pushed a full-width destructive button onto its own row and made every table
// row a different height.
@@ -513,25 +501,9 @@
}
// ---------- Backups / schedules table ----------
+// `.bk-table` is the DataTable wrap; only cell content is styled here, and the
+// actions column's width lives on its column definition.
.bk-table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-base;
-
- th,
- td {
- text-align: left;
- padding: $space-3;
- border-bottom: 1px solid $border-subtle;
- vertical-align: middle;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- font-size: $text-xs;
- }
-
// Snapshot names are long and machine-generated, so they get the room and
// an ellipsis; everything numeric stays on one line rather than folding a
// "464 MB" onto two and doubling the row height.
@@ -543,16 +515,6 @@
.sk-cell-mono,
.sk-cell-dim,
.bk-when { white-space: nowrap; }
-
- td:last-child { width: 1%; }
-
- tbody tr:hover {
- background: $bg-hover;
- }
-
- &--schedules {
- td { vertical-align: top; }
- }
}
.bk-ico {
@@ -607,20 +569,6 @@
// ---------- Backup history list ----------
.backup-history-list {
- display: flex;
- flex-direction: column;
- gap: $space-2;
-
- &__row {
- display: flex;
- align-items: center;
- gap: $space-3;
- padding: $space-3;
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-control;
- }
-
&__ico {
display: inline-flex;
align-items: center;
@@ -634,7 +582,6 @@
}
&__when {
- margin-left: auto;
color: $text-tertiary;
font-size: $text-xs;
white-space: nowrap;
diff --git a/frontend/src/styles/pages/_bandwidth.scss b/frontend/src/styles/pages/_bandwidth.scss
index 1fd72525..419a7a9d 100644
--- a/frontend/src/styles/pages/_bandwidth.scss
+++ b/frontend/src/styles/pages/_bandwidth.scss
@@ -151,96 +151,6 @@
}
}
-// Database Explorer: Insights tab (plan 86 §A3).
-// Component: databases/InsightsPanel.
-.dbx-insights {
- padding: $space-4;
- display: flex;
- flex-direction: column;
- gap: $space-3;
- overflow: auto;
-
- &__head {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: $space-4;
- }
-
- &__gauges {
- display: flex;
- flex-wrap: wrap;
- gap: $space-8;
- }
-
- &__gauge {
- display: flex;
- flex-direction: column;
- gap: $space-hair;
- }
-
- &__label,
- &__sub {
- font-size: $text-xs;
- color: var(--text-dim);
- }
-
- &__value {
- font-size: $text-lg;
- color: var(--text);
- }
-
- &__title {
- margin: $space-2 0 0;
- font-size: $text-sm;
- color: var(--text);
- }
-
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-sm;
-
- th {
- text-align: start;
- font-weight: $font-weight-medium;
- color: var(--text-dim);
- padding: $space-tight $space-2;
- border-bottom: 1px solid var(--border-soft);
- }
-
- td {
- padding: $space-tight $space-2;
- border-bottom: 1px solid var(--border-soft);
- font-family: var(--mono);
- white-space: nowrap;
- }
- }
-
- &__query {
- max-width: 0;
- width: 60%;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- &__note {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- gap: $space-2;
- margin: 0;
- font-size: $text-sm;
- color: var(--text-dim);
-
- p { margin: 0; }
- }
-
- &__error {
- color: var(--red);
- }
-}
-
// Service detail Overview: Connection pooling card (plan 86 §D1).
// Component: service-detail/PoolerCard.
.pooler {
diff --git a/frontend/src/styles/pages/_connections.scss b/frontend/src/styles/pages/_connections.scss
index e0268b87..6c391662 100644
--- a/frontend/src/styles/pages/_connections.scss
+++ b/frontend/src/styles/pages/_connections.scss
@@ -415,8 +415,6 @@
.dns-activity {
border-top: 1px solid $border-subtle;
background: $bg-card;
- max-height: 320px;
- overflow-y: auto;
&__status {
padding: $space-3 $space-4;
@@ -436,28 +434,9 @@
color: $text-tertiary;
}
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th {
- position: sticky;
- top: 0;
- text-align: left;
- padding: $space-2 $space-3;
- background: $bg-elevated;
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- white-space: nowrap;
- }
-
- td {
- padding: $space-2 $space-3;
- border-top: 1px solid $border-subtle;
- vertical-align: top;
- color: $text-secondary;
- }
+ // The change log DataTable: capped, sticky header, scrolls in place.
+ &__table-wrap {
+ --dtable-max-height: 320px;
}
&__time {
diff --git a/frontend/src/styles/pages/_cron.scss b/frontend/src/styles/pages/_cron.scss
index 04247bd8..3ae474fd 100644
--- a/frontend/src/styles/pages/_cron.scss
+++ b/frontend/src/styles/pages/_cron.scss
@@ -20,13 +20,6 @@
}
// ── jobs table ──────────────────────────────────────────
- .cron-card {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
- overflow: hidden;
- }
-
.cron-empty {
padding: $space-10;
text-align: center;
@@ -37,17 +30,10 @@
border-radius: var(--radius);
}
+ // `.cron-table` is the DataTable wrap; column widths live on the column
+ // definitions in CronJobs.jsx.
.cron-table {
- // Job grows; everything after it is sized to its content.
- th:nth-child(2) { width: 200px; } // Schedule
- th:nth-child(3) { width: 120px; } // Last run
- th:nth-child(4) { width: 120px; } // Next run
- th:nth-child(5) { width: 120px; } // Status
- th:nth-child(6) { width: 56px; } // On
- th:last-child { width: 1%; }
- td:last-child { white-space: nowrap; }
-
- tbody tr.is-disabled {
+ .is-disabled {
opacity: 0.55;
.cron-ico {
@@ -64,7 +50,7 @@
white-space: nowrap;
}
- .cron-cell-actions { text-align: right; }
+ .cron-cell-actions { text-align: right; white-space: nowrap; }
.cron-switch { display: inline-flex; }
@@ -130,8 +116,7 @@
}
@media (max-width: $breakpoint-md) {
- .cron-card { overflow-x: auto; }
- .cron-table { min-width: 860px; }
+ .cron-table .sk-dtable { min-width: 860px; }
}
}
diff --git a/frontend/src/styles/pages/_cutover.scss b/frontend/src/styles/pages/_cutover.scss
index 401bba23..8e6b7246 100644
--- a/frontend/src/styles/pages/_cutover.scss
+++ b/frontend/src/styles/pages/_cutover.scss
@@ -189,46 +189,9 @@
// Tables (ops diff + resolver rows)
// --------------------------------------------
&__table-wrap {
- overflow-x: auto;
- border: 1px solid $border-subtle;
- border-radius: $radius-control;
margin-bottom: $space-3;
}
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th,
- td {
- padding: $space-2 $space-3;
- text-align: left;
- border-bottom: 1px solid $border-subtle;
- white-space: nowrap;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-medium;
- background: $bg-elevated;
- }
-
- td {
- color: $text-primary;
- }
-
- tbody tr:last-child td {
- border-bottom: none;
- }
-
- code {
- font-family: $font-mono;
- font-size: $text-xs;
- color: $text-secondary;
- }
- }
-
&__verify-head {
display: flex;
gap: $space-2;
diff --git a/frontend/src/styles/pages/_dashboard.scss b/frontend/src/styles/pages/_dashboard.scss
index 39c62d19..aceff0e8 100644
--- a/frontend/src/styles/pages/_dashboard.scss
+++ b/frontend/src/styles/pages/_dashboard.scss
@@ -193,8 +193,6 @@
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: $space-5;
- max-width: 1800px;
- margin: 0 auto;
width: 100%;
}
@@ -549,15 +547,6 @@
.clock-widget {
text-align: left;
}
-
- .data-table {
- th:nth-child(3),
- th:nth-child(5),
- td:nth-child(3),
- td:nth-child(5) {
- display: none;
- }
- }
}
@media (max-width: $breakpoint-sm) {
diff --git a/frontend/src/styles/pages/_db-tuner.scss b/frontend/src/styles/pages/_db-tuner.scss
index 21d461c2..fd3cc5fd 100644
--- a/frontend/src/styles/pages/_db-tuner.scss
+++ b/frontend/src/styles/pages/_db-tuner.scss
@@ -1,6 +1,8 @@
// ============================================
// DB CONFIG TUNER
// Curated engine settings: current vs suggested, apply/rollback.
+// Also the Database Explorer Insights tab. Both are Databases studio
+// surfaces (components/databases/), so check-tables.mjs exempts this file.
// ============================================
.db-tuner {
@@ -126,3 +128,93 @@
gap: $space-3;
}
}
+
+// Database Explorer: Insights tab (plan 86 §A3).
+// Component: databases/InsightsPanel.
+.dbx-insights {
+ padding: $space-4;
+ display: flex;
+ flex-direction: column;
+ gap: $space-3;
+ overflow: auto;
+
+ &__head {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: $space-4;
+ }
+
+ &__gauges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: $space-8;
+ }
+
+ &__gauge {
+ display: flex;
+ flex-direction: column;
+ gap: $space-hair;
+ }
+
+ &__label,
+ &__sub {
+ font-size: $text-xs;
+ color: var(--text-dim);
+ }
+
+ &__value {
+ font-size: $text-lg;
+ color: var(--text);
+ }
+
+ &__title {
+ margin: $space-2 0 0;
+ font-size: $text-sm;
+ color: var(--text);
+ }
+
+ &__table {
+ width: 100%;
+ border-collapse: collapse;
+ font-size: $text-sm;
+
+ th {
+ text-align: start;
+ font-weight: $font-weight-medium;
+ color: var(--text-dim);
+ padding: $space-tight $space-2;
+ border-bottom: 1px solid var(--border-soft);
+ }
+
+ td {
+ padding: $space-tight $space-2;
+ border-bottom: 1px solid var(--border-soft);
+ font-family: var(--mono);
+ white-space: nowrap;
+ }
+ }
+
+ &__query {
+ max-width: 0;
+ width: 60%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ &__note {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: $space-2;
+ margin: 0;
+ font-size: $text-sm;
+ color: var(--text-dim);
+
+ p { margin: 0; }
+ }
+
+ &__error {
+ color: var(--red);
+ }
+}
diff --git a/frontend/src/styles/pages/_deployments.scss b/frontend/src/styles/pages/_deployments.scss
index db262c46..829f1ef8 100644
--- a/frontend/src/styles/pages/_deployments.scss
+++ b/frontend/src/styles/pages/_deployments.scss
@@ -7,11 +7,8 @@
// ============================================
.deployments-page {
- // A fixed reading column rather than full bleed: the rightmost columns
- // (took / started) are narrow and fixed, so on a wide monitor a full-bleed
- // row strands the name miles from its own timing.
- max-width: 1180px;
- margin: 0 auto;
+ // Full width like every list (plan 89); the Deploy cell takes the spare
+ // width, so a row's timing columns stay together at the right edge.
// Target / Took / Started are short and fixed, but they sit beside a Deploy
// cell that takes every spare pixel — left to wrap, "Local server" alone
diff --git a/frontend/src/styles/pages/_docker.scss b/frontend/src/styles/pages/_docker.scss
index c64c118e..00c7dcf9 100644
--- a/frontend/src/styles/pages/_docker.scss
+++ b/frontend/src/styles/pages/_docker.scss
@@ -448,75 +448,20 @@
.dx-resource-list,
.dx-inspector {
min-height: 0;
+}
+
+// The inspector is its own panel; the list carries no frame of its own,
+// the DataTable wrap (.sk-dtable-wrap) is the frame.
+.dx-inspector {
background: $bg-elevated;
border: 1px solid $border-default;
border-radius: $radius-card;
}
-.dx-resource-list {
- overflow: hidden;
-}
-
+// The wrap fills the pane at most and scrolls inside it; the header pins
+// through the shared .sk-dtable-wrap--sticky modifier.
.dx-table-wrap {
- height: 100%;
- overflow: auto;
-}
-
-.dx-manager-table {
- width: 100%;
- border-collapse: collapse;
- table-layout: fixed;
- font-size: $text-xs;
-
- th,
- td {
- padding: $space-3 $space-4;
- border-bottom: 1px solid $border-subtle;
- vertical-align: middle;
- }
-
- th {
- position: sticky;
- top: 0;
- z-index: 1;
- background: $bg-card;
- color: $text-tertiary;
- text-align: left;
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- }
-
- th:nth-child(1) { width: 20%; }
- th:nth-child(2) { width: 22%; }
- th:nth-child(3) { width: 17%; }
- th:nth-child(4) { width: 15%; }
- th:nth-child(5) { width: 16%; }
- th:nth-child(6) { width: 10%; }
- th:nth-child(7) { width: 116px; }
-
- // Those track widths are tuned for the Containers grid (checkbox + seven
- // columns). The sibling resource tabs have four or five and no row click,
- // so they drop the track list and let their own column descriptors decide.
- // `table-layout: fixed` stays: without it a 64-character volume name or a
- // long mountpoint widens the row and pushes the actions off the right edge.
- &.dx-plain-table {
- th:nth-child(n) { width: auto; }
- tbody tr { cursor: default; }
- }
-
- tbody tr {
- cursor: pointer;
- @include transition(background);
-
- &:hover,
- &.is-selected {
- background: $bg-hover;
- }
-
- &.is-selected {
- box-shadow: inset 3px 0 0 $accent-primary; // geometry: draws the selected-row rule
- }
- }
+ --dtable-max-height: 100%;
}
.dx-name-stack {
@@ -923,8 +868,8 @@
padding: $space-4;
}
- .dx-manager-table {
- min-width: 960px;
+ .dx-table-wrap .sk-dtable {
+ min-width: 960px; // scrolls inside the wrap
}
.dx-detail-grid,
@@ -956,43 +901,6 @@
gap: 0;
}
-.dx-resource-list {
- background: $bg-card;
- border-color: $border-default;
-}
-
-.dx-table-wrap {
- background: $bg-card;
-}
-
-.dx-manager-table {
- th {
- background: $bg-elevated;
- }
-
- th,
- td {
- padding: $space-3;
- }
-
- // The header takes the shared 32px header height; cells keep their padding.
- th {
- padding-block: 0;
- }
-
- tbody tr {
- background: $bg-card;
-
- &:hover {
- background: $bg-hover;
- }
-
- &.is-selected {
- background: $accent-glow;
- }
- }
-}
-
.dx-drawer-backdrop {
position: fixed;
inset: 0;
diff --git a/frontend/src/styles/pages/_domains.scss b/frontend/src/styles/pages/_domains.scss
index 67072380..e8a5fdb3 100644
--- a/frontend/src/styles/pages/_domains.scss
+++ b/frontend/src/styles/pages/_domains.scss
@@ -8,10 +8,7 @@
}
.domains-body {
- max-width: 1320px;
width: 100%;
- margin: 0 auto;
- padding-top: $space-5;
}
// Table card
diff --git a/frontend/src/styles/pages/_errors.scss b/frontend/src/styles/pages/_errors.scss
index 27cdba82..b340e3e0 100644
--- a/frontend/src/styles/pages/_errors.scss
+++ b/frontend/src/styles/pages/_errors.scss
@@ -8,8 +8,6 @@
.errors-page {
- .errors-table { margin-top: 16px; }
-
.sk-err__cell {
min-width: 0;
max-width: 520px;
@@ -61,7 +59,7 @@
// A resolved error is handled business; dim the whole row like the event
// log dims debug rows, so the unresolved work stands out.
- tr.is-resolved { opacity: 0.6; }
+ .sk-dtable .is-resolved { opacity: 0.6; }
}
// Error detail drawer body
diff --git a/frontend/src/styles/pages/_firewall.scss b/frontend/src/styles/pages/_firewall.scss
index 6bfaa48d..816f7bce 100644
--- a/frontend/src/styles/pages/_firewall.scss
+++ b/frontend/src/styles/pages/_firewall.scss
@@ -196,50 +196,6 @@
}
}
- // Rules Tab
- .rules-tab {
- .rules-table {
- background: $bg-card;
- border-radius: $radius-card;
- overflow: hidden;
-
- table {
- width: 100%;
- border-collapse: collapse;
-
- th,
- td {
- padding: $space-3 $space-4;
- text-align: left;
- }
-
- th {
- background: $bg-hover;
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: $text-tertiary;
- }
-
- td {
- border-bottom: 1px solid $border-subtle;
- font-size: $text-xs;
-
- .rule-code {
- font-family: $font-mono;
- font-size: $text-xs;
- background: $bg-hover;
- padding: $space-1 $space-2;
- border-radius: $radius-badge;
- }
- }
-
- tr:last-child td {
- border-bottom: none;
- }
- }
- }
- }
-
// Blocked IPs Tab
.blocked-tab {
.blocked-list {
diff --git a/frontend/src/styles/pages/_ftp-server.scss b/frontend/src/styles/pages/_ftp-server.scss
index 947f7796..bf081407 100644
--- a/frontend/src/styles/pages/_ftp-server.scss
+++ b/frontend/src/styles/pages/_ftp-server.scss
@@ -65,14 +65,9 @@
}
}
- // ─── Users + Connections (dense .sk-dtable on a card) ───
+ // ─── Users + Connections: cell content only (the frame is .sk-dtable-wrap) ───
.users-table,
.connections-table {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
- overflow-x: auto;
-
.sk-dtable {
.user-name {
font-size: $text-sm;
diff --git a/frontend/src/styles/pages/_import-wizard.scss b/frontend/src/styles/pages/_import-wizard.scss
index c0eee505..4a1fc1c7 100644
--- a/frontend/src/styles/pages/_import-wizard.scss
+++ b/frontend/src/styles/pages/_import-wizard.scss
@@ -304,46 +304,6 @@
}
}
- &__table-wrap {
- overflow-x: auto;
- border: 1px solid $border-subtle;
- border-radius: $radius-control;
- }
-
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th,
- td {
- padding: $space-2 $space-3;
- text-align: left;
- border-bottom: 1px solid $border-subtle;
- white-space: nowrap;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-medium;
- background: $bg-elevated;
- }
-
- td {
- color: $text-primary;
- }
-
- tbody tr:last-child td {
- border-bottom: none;
- }
-
- code {
- font-family: $font-mono;
- font-size: $text-xs;
- color: $text-secondary;
- }
- }
-
&__chips {
display: flex;
flex-wrap: wrap;
diff --git a/frontend/src/styles/pages/_monitors.scss b/frontend/src/styles/pages/_monitors.scss
index ccd66625..6c925b79 100644
--- a/frontend/src/styles/pages/_monitors.scss
+++ b/frontend/src/styles/pages/_monitors.scss
@@ -668,9 +668,6 @@
border: 1px solid var(--border-soft);
border-radius: $radius-overlay;
padding: $space-5;
-
- &--flush { padding: 18px 0 0; }
- &--flush .mon-panel__header { padding: 0 18px; }
}
.mon-panel__header {
@@ -806,18 +803,11 @@
color: var(--text-faint);
}
- tr.is-bad .mon-checkdetail { color: var(--red); }
+ .sk-dtable .is-bad .mon-checkdetail { color: var(--red); }
}
// ── list ────────────────────────────────────────────────────
.monitors-page {
- .mon-card {
- background: var(--bg-card, var(--surface-1));
- border: 1px solid var(--border-soft);
- border-radius: $radius-overlay;
- overflow: hidden;
- }
-
.mon-namecell__name { font-weight: $font-weight-semibold; }
.mon-namecell__target {
@@ -867,7 +857,7 @@
.mon-actions-cell { text-align: right; }
.mon-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }
- tr.is-disabled { opacity: 0.55; }
+ .sk-dtable .is-disabled { opacity: 0.55; }
// Create-monitor drawer
.mon-form {
diff --git a/frontend/src/styles/pages/_notification-center.scss b/frontend/src/styles/pages/_notification-center.scss
index f2b92f99..01487ca0 100644
--- a/frontend/src/styles/pages/_notification-center.scss
+++ b/frontend/src/styles/pages/_notification-center.scss
@@ -129,9 +129,7 @@
// Admin delivery log (sk-dlog).
.sk-dlog {
- max-width: 1000px;
- margin: 0 auto;
- padding: $space-5 $space-6 $space-10;
+ // The page shell supplies width and gutter, as on every list page.
&__filters {
display: flex;
@@ -157,37 +155,6 @@
}
}
- &__table-wrap {
- border: 1px solid $border-subtle;
- border-radius: $radius-overlay;
- overflow: hidden;
- background: $bg-card;
- }
-
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-sm;
-
- th {
- text-align: left;
- padding: $space-3 $space-4;
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: $text-secondary;
- border-bottom: 1px solid $border-subtle;
- }
-
- td {
- padding: $space-3 $space-4;
- border-bottom: 1px solid $border-subtle;
- color: $text-primary;
- vertical-align: top;
- }
-
- tr:last-child td { border-bottom: none; }
- }
-
&__status {
display: inline-block;
padding: $space-hair $space-2;
diff --git a/frontend/src/styles/pages/_queue-operations.scss b/frontend/src/styles/pages/_queue-operations.scss
index 8db6c1a8..66993127 100644
--- a/frontend/src/styles/pages/_queue-operations.scss
+++ b/frontend/src/styles/pages/_queue-operations.scss
@@ -309,55 +309,11 @@
}
}
-.queue-table-wrap {
- border: 1px solid $border-subtle;
- border-radius: $radius-overlay;
- background: $bg-card;
- box-shadow: none;
- overflow: hidden;
-}
-
-.queue-table {
- width: 100%;
- border-collapse: collapse;
-
- th,
- td {
- padding: $space-3 $space-4;
- text-align: left;
- font-size: $text-xs;
- border-bottom: 1px solid $border-subtle;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-semibold;
- font-size: $text-xs;
- background: $bg-secondary;
- }
-
- tbody tr {
- transition: background 0.12s ease;
-
- &:hover {
- background: $bg-hover;
- }
-
- &.is-clickable {
- cursor: pointer;
- }
- }
-
- td {
- color: $text-secondary;
- vertical-align: middle;
- }
-
- .col-actions {
- width: 1%;
- white-space: nowrap;
- text-align: right;
- }
+// The table is .sk-dtable; the actions column width lives on the column
+// definition (width: '1%').
+.queue-table .col-actions {
+ white-space: nowrap;
+ text-align: right;
}
.queue-row-name {
@@ -631,9 +587,5 @@
border-top: 1px solid $border-subtle;
}
-.queue-table tbody tr.is-selected {
- background: $accent-glow;
-}
-
// Semantic layouts and controls; declarations preserved from the legacy compatibility layer.
.queue-action-icon { margin-inline-end: 0.5rem; }
diff --git a/frontend/src/styles/pages/_recipes.scss b/frontend/src/styles/pages/_recipes.scss
index 9aff3346..b978a35f 100644
--- a/frontend/src/styles/pages/_recipes.scss
+++ b/frontend/src/styles/pages/_recipes.scss
@@ -1,9 +1,7 @@
// Recipe catalog (serverkit-recipes registry) — cards grid + install drawer.
.recipes-page {
- max-width: 1320px;
- margin: 0 auto;
- padding: $space-6 $space-8 $space-16;
+ // Width and gutter come from the page shell, as on every page.
&__head {
display: flex;
diff --git a/frontend/src/styles/pages/_security.scss b/frontend/src/styles/pages/_security.scss
index cf884548..d31b73ef 100644
--- a/frontend/src/styles/pages/_security.scss
+++ b/frontend/src/styles/pages/_security.scss
@@ -32,8 +32,8 @@
}
}
- // Flush variant: header padded, table bleeds to the card edges
- // (16px horizontal padding aligns with .sk-dtable cell padding)
+ // Flush variant: the card drops its padding so the table bleeds to
+ // its edges; .sk-dtable-wrap already renders frameless inside .card.
.card.sec-flush {
padding: 0;
diff --git a/frontend/src/styles/pages/_server-services.scss b/frontend/src/styles/pages/_server-services.scss
index 218e804a..8105cbe9 100644
--- a/frontend/src/styles/pages/_server-services.scss
+++ b/frontend/src/styles/pages/_server-services.scss
@@ -1,7 +1,5 @@
-// Services (systemd) tab on Server Detail.
-// Base styles on the redesign tokens (dense-table spec) so the component
-// looks right everywhere — _servers.scss layers server-detail-scoped
-// refinements on top.
+// Services (systemd) tab on Server Detail. The units list is a DataTable
+// (.sk-dtable owns its look); these rules style the toolbar and cell content.
.server-services {
display: flex;
@@ -15,45 +13,6 @@
gap: 0.4rem;
}
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-sm;
-
- th, td {
- padding: $space-3 $space-3;
- text-align: left;
- vertical-align: middle;
- }
-
- th {
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: var(--text-faint);
- border-bottom: 1px solid var(--border);
- white-space: nowrap;
- }
-
- td {
- color: var(--text-dim);
- border-bottom: 1px solid var(--border-soft);
- }
-
- tbody tr {
- transition: background 0.12s;
-
- &:hover {
- background: var(--surface-2);
- }
- }
-
- .mono {
- font-family: var(--mono);
- font-size: $text-xs;
- color: var(--text);
- }
- }
-
&__desc {
color: var(--text-dim);
font-size: $text-sm;
diff --git a/frontend/src/styles/pages/_server-survey.scss b/frontend/src/styles/pages/_server-survey.scss
index 246baa72..c626425d 100644
--- a/frontend/src/styles/pages/_server-survey.scss
+++ b/frontend/src/styles/pages/_server-survey.scss
@@ -99,33 +99,6 @@
color: $text-tertiary;
}
- // Sites table
- &__table-wrap {
- overflow-x: auto;
- border: 1px solid $border-subtle;
- border-radius: $radius-card;
- }
-
- &__table {
- width: 100%;
- border-collapse: collapse;
- font-size: $text-xs;
-
- th, td {
- padding: $space-2 $space-3;
- text-align: left;
- border-bottom: 1px solid $border-subtle;
- }
-
- th {
- color: $text-tertiary;
- font-weight: $font-weight-medium;
- background: $bg-secondary;
- }
-
- tr:last-child td { border-bottom: none; }
- }
-
&__list {
list-style: none;
margin: 0;
diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scss
index d3332c68..e880c251 100644
--- a/frontend/src/styles/pages/_servers.scss
+++ b/frontend/src/styles/pages/_servers.scss
@@ -12,24 +12,10 @@
// _design-system.scss); what used to be a left rail of dials and navs is now
// its filters plus table columns.
-.servers-card {
- overflow-x: auto;
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
-}
-
-// The whole row is the target, so it needs the affordance rather than a
-// per-row button column.
+// The whole row is the target (DataTable marks it .is-clickable); the chevron
+// brightens with the shared row hover.
.servers-row {
- cursor: pointer;
- transition: background $transition-fast;
-
- &:hover {
- background: var(--surface-2);
-
- .servers-row__chev { color: var(--text-dim); }
- }
+ &:hover .servers-row__chev { color: var(--text-dim); }
&__ico {
width: 30px;
@@ -50,11 +36,9 @@
&__chev { color: var(--text-ghost); transition: color $transition-fast; }
}
-// Metric columns: a percentage over a thin bar, sized so three of them fit
-// without squeezing the name column.
+// Metric columns: a percentage over a thin bar. Width lives on the column
+// definition (meterColumn in Servers.jsx).
.servers-table__meter {
- width: 108px;
-
.sk-cell-dim { margin-bottom: 5px; }
.sk-gauge { width: 100%; }
}
@@ -558,17 +542,8 @@
font-family: $font-mono;
}
- .data-table {
- // Pull the table out of card padding — header row already
- // anchors the visual edge on its own.
- td, th {
- padding-left: $space-4;
- padding-right: $space-4;
- }
-
- .row-disabled td {
- opacity: 0.6;
- }
+ .row-disabled {
+ opacity: 0.6;
}
.empty-list {
@@ -1508,58 +1483,7 @@
}
}
-.servers-table {
- width: 100%;
- border-collapse: separate;
- border-spacing: 0;
- font-size: $text-xs;
-
- tbody td {
- padding: $space-3 $space-4;
- border-bottom: 1px solid $border-subtle;
- vertical-align: middle;
- color: $text-secondary;
- }
-
- tbody tr:last-child td {
- border-bottom: 0;
- }
-
- .col-check {
- width: 44px;
- padding-right: 0;
-
- input[type="checkbox"] {
- width: 16px;
- height: 16px;
- accent-color: $accent-primary;
- cursor: pointer;
- }
- }
-
- .col-actions {
- width: 1%;
- white-space: nowrap;
- text-align: right;
- }
-
- .muted {
- color: $text-tertiary;
- font-size: $text-xs;
- }
-}
-
.server-row {
- transition: background $transition-fast;
-
- &:hover {
- background: $bg-hover;
- }
-
- &.is-selected {
- background: $accent-glow;
- }
-
&--offline .status-pill__dot { background: $danger; }
&--online .status-pill__dot { background: $success; }
&--connecting .status-pill__dot { background: $warning; }
@@ -2413,35 +2337,8 @@
}
// ---- Dense tables (docker containers/images, cron jobs, tunnels) ----
- // .sk-dtable spec applied to the existing .data-table markup.
+ // The table itself is .sk-dtable; only the cell content is styled here.
.data-table {
- font-size: $text-sm;
-
- th {
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: var(--text-faint);
- padding: $space-3 $space-4;
- border-bottom: 1px solid var(--border);
- white-space: nowrap;
- }
-
- td {
- padding: $space-3 $space-4;
- font-size: $text-sm;
- color: var(--text-dim);
- border-bottom: 1px solid var(--border-soft);
- vertical-align: middle;
- }
-
- tbody tr {
- transition: background 0.12s;
-
- &:hover {
- background: var(--surface-2);
- }
- }
-
.container-name {
color: var(--text);
font-weight: $font-weight-semibold;
@@ -2617,42 +2514,6 @@
}
}
- // ---- Services (systemd) tab — dense-table skin over the component's
- // base styles in _server-packages.scss / _server-services.scss ----
- .server-services__table {
- font-size: $text-sm;
-
- th {
- font-size: $text-xs;
- font-weight: $font-weight-semibold;
- color: var(--text-faint);
- padding: $space-3 $space-3;
- border-bottom: 1px solid var(--border);
- white-space: nowrap;
- }
-
- td {
- padding: $space-3 $space-3;
- font-size: $text-sm;
- color: var(--text-dim);
- border-bottom: 1px solid var(--border-soft);
- }
-
- tbody tr {
- transition: background 0.12s;
-
- &:hover {
- background: var(--surface-2);
- }
- }
-
- .mono {
- font-family: var(--mono);
- font-size: $text-xs;
- color: var(--text);
- }
- }
-
// ---- Packages tab — mono eyebrows + token chips (base styles live in
// _server-packages.scss and use shadcn vars; retint to the new tokens) ----
.server-packages {
diff --git a/frontend/src/styles/pages/_service-detail.scss b/frontend/src/styles/pages/_service-detail.scss
index bae79e13..2e76e05d 100644
--- a/frontend/src/styles/pages/_service-detail.scss
+++ b/frontend/src/styles/pages/_service-detail.scss
@@ -27,15 +27,14 @@
// frame is dropped by the `:has()` rule at the bottom of this file.
gap: 0;
- // Centered max-width column below the full-bleed top bar.
+ // Full-width body below the full-bleed top bar.
.app-detail-body {
display: flex;
flex-direction: column;
gap: $space-5;
width: 100%;
- max-width: 1200px;
- margin-inline: auto;
- padding: $space-6 $space-6 $space-10;
+ // Same full width and gutter as every page body (page-shell-inner).
+ padding: $space-5 $space-5 $space-8;
}
// Identity row — flat (no card): just the tile + name on the page.
diff --git a/frontend/src/styles/pages/_settings.scss b/frontend/src/styles/pages/_settings.scss
index 1db070cd..c1fed6a8 100644
--- a/frontend/src/styles/pages/_settings.scss
+++ b/frontend/src/styles/pages/_settings.scss
@@ -150,34 +150,13 @@
// Settings Content Area
.settings-content {
min-width: 0;
+ // Forms keep a reading width; the page around them is full width like
+ // every other page, so the column sits beside the nav, not centered.
+ max-width: 1100px;
// Status is carried by the tint and border; copy keeps readable contrast.
.alert { color: $text-primary; }
.settings-card > .form-group:last-child { margin-bottom: 0; }
-
- // Settings panes used to drop their table straight onto the page
- // background, so a tab read as unfinished next to /servers or /services —
- // those sit their grid on a panel (`.wp-list__card`). Same panel, declared
- // once here, so a pane gets it by rendering a table rather than by
- // remembering to wrap one. No `overflow: hidden`: the wrap's own
- // `overflow-x: auto` already clips to the radius, and hiding the y axis
- // would cut the sticky-header variant's scroll.
- .sk-dtable-wrap {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
- }
-
- // …except where the pane already put the table on a surface of its own.
- // Two panels nested one pixel apart is the seam this rule exists to remove.
- .settings-card,
- .users-table-container {
- .sk-dtable-wrap {
- background: none;
- border: 0;
- border-radius: 0;
- }
- }
}
// Settings Section
@@ -2559,7 +2538,6 @@
.settings-webhook-event-id { @include truncate(); font-size: $text-xs; max-width: 200px; }
// Semantic layouts and controls; declarations preserved from the legacy compatibility layer.
-.settings-webhook-row { cursor: pointer; }
.settings-webhook-name { font-weight: $font-weight-medium; }
.settings-webhook-form > * + * { margin-top: 1rem; }
.settings-webhook-secret-field > * + * { margin-top: 0.5rem; }
diff --git a/frontend/src/styles/pages/_telemetry.scss b/frontend/src/styles/pages/_telemetry.scss
index 920c7e40..908bd701 100644
--- a/frontend/src/styles/pages/_telemetry.scss
+++ b/frontend/src/styles/pages/_telemetry.scss
@@ -32,8 +32,6 @@
}
}
- .telemetry-table { margin-top: 16px; }
-
.telemetry-cell__message {
font-size: $text-sm;
font-weight: $font-weight-medium;
@@ -73,10 +71,10 @@
// Severity accent down the left edge of a row — the one visual the DataTable
// does not provide and the whole point of skimming an event log.
- tr.is-critical,
- tr.is-error { box-shadow: inset 3px 0 0 var(--red); } // geometry: draws the severity rule
- tr.is-warning { box-shadow: inset 3px 0 0 var(--amber); } // geometry: draws the severity rule
- tr.is-debug { opacity: 0.72; }
+ .sk-dtable .is-critical,
+ .sk-dtable .is-error { box-shadow: inset 3px 0 0 var(--red); } // geometry: draws the severity rule
+ .sk-dtable .is-warning { box-shadow: inset 3px 0 0 var(--amber); } // geometry: draws the severity rule
+ .sk-dtable .is-debug { opacity: 0.72; }
.telemetry-loading {
display: flex;
diff --git a/frontend/src/styles/pages/_terminal.scss b/frontend/src/styles/pages/_terminal.scss
index 25a1100b..42e21b2c 100644
--- a/frontend/src/styles/pages/_terminal.scss
+++ b/frontend/src/styles/pages/_terminal.scss
@@ -1103,56 +1103,9 @@ $lk-default: #646b7a;
}
}
-.processes-table-wrapper {
- overflow-x: auto;
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-card;
-}
-
+// `.processes-table` is the DataTable wrap; only cell content is styled here.
.processes-table {
- width: 100%;
- min-width: 800px;
- border-collapse: collapse;
-
- th, td {
- padding: $space-2 $space-3;
- text-align: left;
- vertical-align: middle;
- font-size: $text-xs;
- }
-
- th {
- position: sticky;
- top: 0;
- background: $bg-card;
- z-index: 1;
- font-weight: $font-weight-semibold;
- color: $text-secondary;
- font-size: $text-xs;
- border-bottom: 1px solid $border-subtle;
- }
-
- // No nth-child column widths: columns can now be hidden and reordered from
- // the header menu, so a width pinned to a POSITION lands on whatever column
- // happens to sit there.
-
- tr {
- cursor: pointer;
- transition: background 0.15s ease;
-
- &:hover {
- background: $bg-hover;
- }
-
- &.selected {
- background: fade($info-raw, 10%);
- }
- }
-
- tbody tr {
- border-bottom: 1px solid $border-subtle;
- }
+ .sk-dtable { min-width: 800px; } // scrolls inside the wrap on narrow screens
.process-name {
overflow: hidden;
diff --git a/frontend/src/styles/pages/_test-sandbox.scss b/frontend/src/styles/pages/_test-sandbox.scss
index b31a9b50..a72c6c04 100644
--- a/frontend/src/styles/pages/_test-sandbox.scss
+++ b/frontend/src/styles/pages/_test-sandbox.scss
@@ -235,13 +235,6 @@
color: var(--text-faint);
}
- .ts-history-card {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
- overflow: hidden;
- }
-
.ts-summary {
display: flex;
align-items: center;
@@ -252,7 +245,9 @@
.ts-summary__fail { color: var(--red); }
}
- .ts-detail-row > td {
+ // The expanded run's full-width detail cell (out-ranks .sk-dtable's cell
+ // padding on purpose: it holds a panel, not a value).
+ .sk-dtable .ts-detail-cell {
padding: $space-3 $space-4;
background: var(--surface-2);
}
diff --git a/frontend/src/styles/pages/_workspaces.scss b/frontend/src/styles/pages/_workspaces.scss
index 4343b287..33e17a66 100644
--- a/frontend/src/styles/pages/_workspaces.scss
+++ b/frontend/src/styles/pages/_workspaces.scss
@@ -311,13 +311,6 @@
&__pane { margin-top: $space-4; }
- &__tablecard {
- background: var(--surface);
- border: 1px solid var(--border-soft);
- border-radius: var(--radius);
- overflow: hidden;
- }
-
&__rowactions {
display: flex;
align-items: center;
@@ -381,16 +374,15 @@
}
}
- // Centered max-width column below the full-bleed top bar, same as WordPress
+ // Full-width body below the full-bleed top bar, same as WordPress
// and service detail pages.
.app-detail-body {
display: flex;
flex-direction: column;
gap: $space-5;
width: 100%;
- max-width: 1200px;
- margin-inline: auto;
- padding: $space-6 $space-6 $space-10;
+ // Same full width and gutter as every page body (page-shell-inner).
+ padding: $space-5 $space-5 $space-8;
}
// Identity row — flat on the page, no card background.