Commit Graph
435 Commits
Author SHA1 Message Date
Juan DenisandClaude Opus 5 bc91040076 feat(docker): the containers table gets multi-select, and stops wasting columns
Three things the table was getting wrong now that it is the page:

Health is hidden by default. On a typical host almost every row read "No
healthcheck" -- the column spent its width restating that the image never
declared one, and Status already says "(healthy)" for the few that do. It is one
click away in the column menu, and the "Unhealthy or unwatched" view turns it
back on, which is where it actually says something.

Created rendered docker's raw "2026-08-12 09:12:33 -0400 EDT" -- 29 characters
of which the last 14 are never what you came to read -- in an auto-width column,
so it ran underneath the row actions. It shows an age now, with the full stamp
on hover; the filter still works on the real date because `value` is untouched.
Created, Resources and the actions column all get explicit widths so they stop
colliding.

Selection: checkboxes plus a bulk bar for restart/stop/start. Remove is
deliberately absent -- bulk-deleting containers from a checkbox is a mistake you
cannot undo, and the per-row action already asks. Protected system containers
are skipped with a count, not silently failed, and each container is actioned
individually so one failure is reported against the container that failed rather
than aborting the rest.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 23:49:05 -04:00
Juan DenisandClaude Opus 5 bf43ea2a2d feat(ds): KPI tiles put the icon beside the value instead of above it
A stacked 32px icon chip plus its 14px gap cost every tile ~46px of height that
carried no information, so a four-tile summary strip was spending a fifth of the
page above the content it summarises. Laid out as a row -- [icon] [value+label]
[trend], spark still bleeding along the bottom -- the same tile is ~64px instead
of ~110px and reads in one line.

The skeleton follows the new geometry so nothing jumps on load.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 23:48:49 -04:00
Juan DenisandClaude Opus 5 1ede777242 feat(ui): one row of chrome per table
A table gets exactly one row of chrome:

    [View name v] ....................... [search] [filter] [...]

and nothing else. The row count is gone from it entirely: GridViewPicker's
`total` prop is deleted, not deprecated. It printed the number DataTableFooter
already prints under the rows it counts, and on Servers it appeared twice --
once next to the view name, once on a second toolbar -- plus an "N online" that
no filter, sort or view ever referred to.

Placement is decided by who owns the top bar. A top-level page in a tab group
hoists search, filter and the overflow menu up there next to its own actions;
an inner table (the Docker, security, settings and server-detail tabs) keeps
them inline on the view line, because that route's bar belongs to the page
around it.

useTopbarChrome PORTALS into a slot TabGroupLayout renders rather than handing
the node up through state. That is not a style choice: an effect that publishes
a node upward must name everything the node closes over in its dependency list,
and useTableChrome rebuilds toolsProps on every render -- so it fired every
render, set state on the layout, re-rendered the child, and looped
("Maximum update depth exceeded"). A portal has no dependency list. Using
display:contents on the slot keeps the portaled children as flex items of the
real container, so the top bar's slot ordering still sorts them into fixed
positions -- the order rules name both depths for that reason.

A ListToolbar now survives only if it carries something real: a quick-filter
segment, a scope select, a checkbox. Its `count` prop is deprecated with zero
core render sites; it stays accepted because ListToolbar is SDK surface.

The list/cards layout toggle is removed from core. A layout switch is a third
way to change what the table shows, next to views and column filters, and
unlike those two nothing can save or share it. renderCard keeps working for
extensions since ResourceListPage is SDK surface -- no core page passes it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 23:48:23 -04:00
Juan Denis 71c8abc40a style(sidebar): drop brand-section bottom margin
The first category label's own margin already spaces the nav from the
brand row, so the extra 1rem just read as a dead gap.
2026-08-12 23:36:55 -04:00
Juan Denis 72b5e1886e style(sidebar): enlarge quick-create FAB to 28px 2026-08-12 23:35:15 -04:00
Juan Denis 03f075162f feat(sidebar): compact quick-create FAB, move Test Sandbox into Dev Tools
Replace the full-width Create pill with a small circular accent '+'
(AI chat-bubble style) riding on the first sidebar category row next to
the section label; survives the collapsed rail as a bare FAB and shows
as a circle at the start of the topbar nav strip. Move Test Sandbox out
of the System category and into the dev-only Dev Tools section, which
now renders whenever useDevMode is true (dev build or admin Developer
mode), keeping the nav entry and route guard on the same flag.
2026-08-12 23:32:11 -04:00
Juan Denis 5594cc9300 feat(sidebar): move quick-create to top as extended Create button
Relocate the global '+' quick-create from the crowded sidebar footer
(next to the notification bell) to a prominent Gmail 'Compose'-style
extended Create button pinned below the brand section. The menu now
opens downward. Collapses to a circular mini-FAB in the rail layout
and a compact accent icon button in the topbar layout; the mobile top
bar keeps the compact icon variant.
2026-08-12 23:20:59 -04:00
Juan DenisandClaude Opus 5 c2c04ee342 fix(list): one filter button per page, and one row of chrome instead of two
Two things I got wrong in the phase 2/3 round, both visible on
/monitoring/monitors.

**Two filter buttons.** These pages kept their server-side FilterDrawer AND
gained a GridFilterButton, so the page showed two identical filter icons
opening two drawers that both narrow the same list -- exactly the duplicate
affordance this round exists to delete. The plan said these pages gain "the
heading picker, the chip bar and the tools menu"; a second filter button was me
over-applying. The remaining one is the top bar's, which filters the QUERY and
so sees rows the client never loaded -- strictly the stronger of the two.
Column rules still come from each column's own menu and still show as chips.
The now-unreachable GridFilterDrawer goes with it.

**Two rows of chrome.** The view name sat on one line and a ListToolbar sat
under it holding nothing but two right-aligned icons -- a 32px empty bar
pretending to be a row. GridViewPicker takes an `actions` slot now, so the
table's own controls sit on the view-name line. Jobs keeps its ListToolbar
because it has a real count in it; Monitors and Telemetry drop theirs.

Verified: lint 0 errors (3 guards), build, render smoke 46/47, and every preset
on all three pages still drives its server query.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 17:09:23 -04:00
Juan DenisandClaude Opus 5 ac4d3bf227 feat(recycle-bin): Recycle Bin UI under Settings > Admin
One list of everything the panel has soft-deleted, with Restore on every row
and a quiet purge for admins. Type-agnostic: `kind` comes from the server's
registry, so a newly restorable model appears here with no change to this
component.

Says out loud what restore does NOT do -- it returns the record, not the
configuration torn down when it was deleted -- because a Recycle Bin that
implies otherwise is worse than none.

The retention countdown per row ("purges in 3d") turns amber in the last
stretch: that is the only warning before a record is gone for good. Purge is
admin-only, sits behind a confirm, and stays a dim icon next to a full-width
Restore -- the safety net should make the safe action the loud one.

Registered as a settings tab with search-index entries, so the command palette
finds "restore", "undelete", "trash".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 07:25:00 -04:00
Juan DenisandClaude Opus 5 26fbe7a4ca refactor(domains): rebuild the page on DataGrid
Saved views as the page heading (personal views persist through
/api/v1/views), filter chips, bulk bar, grouping, density, pagination and
CSV/JSON export; search, the filter icon and the overflow menu move into the
shared top-bar slots. Columns declare type + width, so the header menu
offers real operators instead of inferred ones.

Only fields the API actually returns are columns -- no DNSSEC or record-count
column, because neither /domains nor /dns/portfolio carries them.

Keeps every page invariant: RegistrarPortfolio, the app+provider merged row,
DomainDnsPanel in the drawer, PluginSlot, and the ?open= / ?focus=create
deep links.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 05:52:23 -04:00
Juan DenisandClaude Opus 5 d75e1a1647 feat(datatable): per-column menu on every table, with inferred filter types
Puts the DataGrid column menu into DataTable itself, so all 62 table
instances across 48 files gain sort / group-by / filter / move / hide with
ZERO call-site changes. The audit made this the safe move: renderRow is used
in exactly 1 of 62 instances, `header` is always a string, and no consumer
passes unknown column keys -- so optional keys are additive everywhere.

The part that makes it work without editing 50 files is type inference: a
column that declares no `type` gets one sampled from the data -- boolean,
number, ISO string, or a repeating low-cardinality string (enum: a pick-list
with live per-value counts). Anything else stays text, which is never wrong,
just less specific. Pages that care override by declaring `type`.

Filters and column order are uncontrolled by default; pass filters/
onFiltersChange or columnOrder/onColumnOrderChange to mirror them in a chip
bar or drawer. Filtered-to-nothing keeps the header on screen, because the
control that undoes it lives in the header menu.

Also restyles .sk-dtable to match the grid (top-lit header, reserved menu
lane), and turns the top bar's "search is right-most" rule into explicit
slots -- [actions] [search] [filter/overflow] -- so the search box sits in
the same pixels on every page and does not move when a page gains a button.

Verified live on 12 pages: menus on all 12; enum filters actually move the
row count (servers 4->1, cron 8->1, services 6->1, backups 5->1,
domains 5->1, monitors 5->2), including the one renderRow consumer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 05:52:23 -04:00
Juan DenisandClaude Opus 5 c66d5037ef feat(ds): DataGrid -- the list surface for pages where the table is the page
Ported from the Domains design mock. A CSS grid, not a <table>: header and
rows share one --sk-grid-tpl track list, which is what makes show/hide and
move-left/right a pure data change with no <colgroup> to keep in sync.

  fields.js         field model + filter-rule engine (text/enum/num/bool/date),
                    sort, group, CSV/JSON export
  DataGrid          grid, sticky head, groups, selection, density, sub-detail
  ColumnMenu        per-column popover: sort / group / filter / move / hide.
                    Flat, state-model-agnostic props so <DataTable> can drive
                    it from sorts[]+hiddenKeys and <DataGrid> from one cfg.
  useGridConfig     the whole chrome as ONE serialisable object, so a saved
                    view is a snapshot of it and "dirty" is a deep-equal away
  useGridRows       filter -> sort -> page -> group, memoised
  GridViewPicker    saved views rendered as the page heading
  GridFilterDrawer  Filters + Fields panes
  GridChips / GridBulkBar / GridFooter / GridToolsMenu / GridFilterButton

Does not replace ds/DataTable -- column descriptors are a superset, so a
list can move up by adding `type` and `width`.

Adds the --surface-0 token (the recessed step below --surface) that group
headers, drawer tab strips and drawer footers sit on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 05:52:05 -04:00
Juan DenisandClaude Opus 5 4f2116a533 fix(ai): hide the assistant bubble for modals only, not every popover
The fallback selector matched a bare [role='dialog'], and Radix gives
Popover.Content that role too -- so opening Sort, Columns, Views, Filter or
the topbar overflow blinked the bubble out and straight back in. Paired with
the off-screen popover bug this read as "the button did something to the AI
and nothing else".

Scoped to the actual modal surfaces (.ui-dialog-content / .ui-sheet-content);
the body[data-scroll-locked] signal is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 05:51:51 -04:00
Juan Denis a958b05c97 feat(service-detail): unified activity timeline
The Events tab becomes the CRM record timeline: deployments (expandable,
as before) interleaved newest-first with environment-variable changes and —
for admins — audit-log entries targeting the app, via the new target_id
feed filter. Compact non-expandable rows for config/audit entries.
2026-08-09 14:04:54 -04:00
Juan Denis 364aa592d5 feat(chrome): global quick-create button + favorite star
The CRM '+' lives in the sidebar footer and mobile top bar next to the
notification bell: one menu for New Service/Server/Monitor/Domain/Cron/
Workspace/Project. Route-based flows navigate directly; modal-based flows
use ?focus=create:<kind> deep links. FavoriteStar pins entities from detail
pages.
2026-08-09 04:31:36 -04:00
Juan Denis 99dbef56ad feat(datatable): row grouping, keyboard nav, native selection
Group-by: groupable columns + groupBy prop render collapsible group header
rows (chevron + label + count); GroupMenu popover picks the grouping. Keyboard
nav: j/k (or arrows) move a cursor row, Enter opens it, x toggles selection —
ignored while typing or in dialogs. Selection: selectable + controlled
selectedKeys/onToggleRow/onToggleAll render a real checkbox column with an
indeterminate select-all, ending the hand-rolled __select column pattern.
2026-08-09 03:53:43 -04:00
Juan Denis cb085fafb7 refactor(list-page): one toolbar placement rule
ResourceListPage renders the shared ListToolbar and gains a searchInTopbar
flag; Workspaces moves its search into the shared topbar to match Services
(search state still flows through for views). Superseded .wp-list__toolbar /
__tabletools SCSS removed; the .empty-state specificity comment is updated
now that the page-partial copies are gone.
2026-08-09 03:33:23 -04:00
Juan Denis 037e8842f7 refactor(security): shared EmptyState + useConfirm everywhere
Security tabs' legacy empty-state markup becomes the component, their bespoke
confirmDialog flows (firewall, fail2ban, ip lists, ssh keys) move to
useConfirm, and the remaining window.confirm calls (telemetry cleanup,
service settings, connections hub) are replaced. The duplicate .empty-state
block in _security.scss is gone.
2026-08-09 03:33:06 -04:00
Juan Denis e6f9a88352 refactor(empty-states): shared EmptyState across jobs/delivery/docs/settings
DataTable emptyState overrides and legacy empty-state markup become the
shared component (wording and CTAs preserved). Also fixes DataTable passing
emptyMessage to a nonexistent EmptyState prop — it now lands on
'description', so custom empty messages actually render.
2026-08-09 03:33:06 -04:00
Juan Denis df34943b8a refactor(servers,deployments,email,serverdetail): ListToolbar everywhere
servers/deployments/server-services/packages/survey toolbars and the email
accounts/queue rows move to ListToolbar (selects get .sk-listhead__select);
email table emptyState overrides become emptyTitle/emptyMessage; the legacy
unscoped .empty-state in _servers.scss is scoped under .servers-page.
2026-08-09 03:32:51 -04:00
Juan Denis 897f9a8764 refactor(cron,backups,incidents): ListToolbar + shared EmptyState
cron/bk/incidents listheads move to ListToolbar (counts and menus preserved);
bk-empty and mon-empty become EmptyState; run-history drawer width snapped to
the 640 step of the standard scale.
2026-08-09 03:32:51 -04:00
Juan Denis 106a83778d refactor(domains,git): ListToolbar + shared EmptyState
The .dom-listhead rows (incl. Git's six borrowed section headers) move to the
shared ListToolbar; .dom-empty filtered-empty blocks become EmptyState;
retired SCSS deleted.
2026-08-09 03:32:51 -04:00
Juan Denis b0dd554216 feat(ds): ListToolbar — the one list-page toolbar row
.sk-listhead [title][filters][extras] [count][tools] replaces the five
hand-rolled listhead patterns; includes a standard __select style for
secondary pickers. Codifies the placement rule in its docstring.
2026-08-09 03:10:23 -04:00
Juan Denis 1c226b0ad6 feat(views): view picker UI + ResourceListPage integration
useTableViews merges builtin views with the user's saved views from the API
(auto-applying the default on load); ViewMenu is the picker popover — apply
on click, star for default, delete, save-current-as form, update-active. The
ResourceListPage toolbar grows the menu (state = filter/search/sorts/hidden
columns/page size), so Services and Workspaces get views by declaring their
builtin defs.
2026-08-09 02:38:48 -04:00
Juan Denis fa6b9f3e26 refactor(queues,docker,misc): move remaining tables onto DataTable
Queue messages/operations, delivery log, process table, env-history and
docker containers migrated. The containers tab's select+button sort UI is
deleted in favor of native header sorting (running-first default kept) with
controlled menus; FilterDrawer pairings untouched.
2026-08-09 02:12:17 -04:00
Juan Denis 0cf847b739 refactor(ftp,fleet): move FTP and fleet-monitoring tables onto DataTable
FTP users/connections and the nine fleet tables (versions, rollouts, command
queue, approvals, alerts, anomalies, thresholds, capacity) gain sortable
columns, persisted choices and standard footers; tables with an in-page
toolbar get controlled SortMenu/ColumnsMenu.
2026-08-09 02:11:55 -04:00
Juan Denis 3d026208f4 refactor(backups): move snapshot/schedule/history tables onto DataTable
Snapshots table gains controlled sort/column menus in the listhead plus a
sort chip bar; schedules, latest-snapshots digest and run history sort
uncontrolled with persisted choices; standard footers throughout.
2026-08-08 23:56:51 -04:00
Juan Denis 249546720a refactor(security): move all security tab tables onto DataTable
Firewall, Fail2ban, IP allow/blocklists, integrity changes, quarantine,
scanner findings/history and SSH keys now use the shared primitive: sortable
columns (epoch/numeric sortValues), SortMenu+ColumnsMenu in card headers
(.sec-tableactions slot), standard footers, persisted choices.
2026-08-08 23:56:51 -04:00
Juan Denis 7b4cf90b0c feat(datatable): active-sort chip bar (Twenty-style)
SortChipBar renders one chip per sort level above the table — click to flip
direction, x to remove, Reset to clear — and collapses to nothing when no
sort is active. Wired into ResourceListPage (list view) and the Servers page.
2026-08-08 23:41:30 -04:00
Juan Denis 11460670e9 feat(jobs,telemetry): standard table footer replaces ad-hoc pagers
Jobs' custom Prev/Next 'Page N' pager and Telemetry's bare 'Load more' swap
to the shared DataTableFooter (same state setters, fetch logic untouched);
both tables gain sortable columns and persisted choices. Orphaned pager SCSS
removed.
2026-08-08 23:37:31 -04:00
Juan Denis d73f0c4b31 feat(email,fleet): sortable tables with menus and footers
Email components/accounts/queue tables gain sortable columns; accounts and
queue toolbars get SortMenu + ColumnsMenu (new .sk-email__tabletools slot).
FleetProxy keeps its renderRow layout but gains header sorting (column
visibility intentionally off — renderRow emits every cell).
2026-08-08 23:37:30 -04:00
Juan Denis 2fbacb2fd1 feat(cron,domains): sortable columns, table menus, footers
Cron jobs + run history and the domains list get sortable headers (schedule,
last/next run, duration, expiry sort by real values), SortMenu/ColumnsMenu in
the in-page listheads (new .dom-listhead__tools slot), and standard footers.
2026-08-08 23:37:20 -04:00
Juan Denis 334226a86b style(tables): sticky headers, sort priority badge, table menus, footer, floating bulk bar
Extends .sk-dtable with is-sorted accent + multi-sort priority numbers and an
opt-in sticky-header wrap; adds .sk-tablemenu (sort/columns popovers),
.sk-dtable-footer, and the floating .sk-bulkbar pill. Also restores the
.wp-list chrome styles (toolbar/search/viewswitch/cards) that were lost when
the WordPress frontend moved into its extension, plus the new tabletools slot.
2026-08-08 23:37:02 -04:00
Juan Denis 5d8160dc73 refactor(wordpress): relocate frontend into the extension
5 WordPress* pages + components/wordpress (40 files) + 3 _wordpress*.scss
partials move from core into builtin-extensions/serverkit-wordpress/
frontend/ (synced to frontend/src/plugins via the baked-glob pattern).
200 imports rewritten to serverkit-sdk; remaining @/ imports only for
genuinely host-internal modules. main.scss drops the WP partials — the
extension bundle imports its own styles. npm build + lint green.
2026-08-05 00:48:12 -04:00
Juan Denis 0299d334af feat(extensions): install consent UX with signature badges
Consent card shows permissions, version gate, and signature state
(Signed/Unsigned/Unknown signer/Invalid) with honest copy; 'Install
anyway' destructive path for acknowledged risk; invalid = disabled.
2026-08-04 23:34:26 -04:00
Juan Denis 937cbb2b81 feat(setup): capacity-aware install profiles and resource advisory
- install_profile_service: record what install.sh put on the box
  (minimal/standard/full), recommended from detected hardware and
  overridable; thresholds mirrored by recommend_profile in install.sh
- setup wizard: replace the hard ResourceGate/SetupStepTier with
  SetupStepCapacity + SetupStepSecurity
- ResourceAdvisory: inline capacity warning at the point of action
  (WordPress/Docker/Services/Deployments), backed by headroom.fits
- RequiresDocker component for docker-dependent surfaces
- install.sh/update.sh: profile detection + tests
  (test_install.sh, test_update.sh, test_server_capacity.py)
2026-07-31 14:56:37 -04:00
Juan DenisandClaude Opus 5 4effb201f4 fix(ui): rename the page shell off .sk-page (name collision)
components/PageSkeleton.jsx already owned `.sk-page` for its loading
archetypes, including `gap: $space-4`. The new shell reused the name, so every
page built on PageLayout inherited a 16px flex gap between the top bar and the
content — invisible on padded pages, but on Terminal/Logs it showed as a band
of page background under the bar, which is exactly the "weird space" reported.

The shell is `.sk-pageshell` now; the skeleton keeps `.sk-page`. The smoke test
gained a vgap assertion (content top must equal the bar's bottom edge), which
is what would have caught this in the first place.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:55:54 -04:00
Juan DenisandClaude Opus 5 7e01e7cc97 refactor(ds): pad the Drawer body by default, add flush for region-owning bodies
Every drawer body had to remember to pad itself, and they had drifted into
three answers: 18px (filters, telemetry, incidents, monitors), 20/20/32
(domains, cron), and nothing at all — backup detail, restore, cutover and the
scheduled-tasks runs list were rendering flush against the panel edge, the same
defect just reported on the cron create drawer. Ten drawers, three insets.

The body is now padded to the header's own 18px inset, and the seven bodies
that genuinely own their internal regions — a form with a pinned footer
(Templates, WordPress), a two-pane catalog (both database engine drawers), an
editor (widget editor), a filtered library (widget library), a mode switcher
(Servers) — declare `flush` instead of relying on the absence of a default.
The now-duplicate per-drawer padding is deleted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:42:59 -04:00
Juan DenisandClaude Opus 5 9b27b2e362 refactor(ui): run Terminal/Logs as a flush workspace on the shared shell
The console panes were rounded, bordered cards floating inside a `0 16px 16px`
inset — the only page framed that way, which read as stray side padding plus
stray corners against an otherwise flush layout. It now renders through
PageLayout in `fill` mode, like the File Manager: the panes fill the content
region edge-to-edge and keep their internal dividers. Services stays a card
grid, so it re-pads itself instead of running to the edges.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:33:16 -04:00
Juan DenisandClaude Opus 5 f7ff4df043 fix(cron): pad the create drawer's body
`.sk-drawer__body` is the scroll region and deliberately carries no padding —
some drawers run edge-to-edge — so each body pads its own root. `.cron-form`
did not, leaving every label and input flush against the panel edges. Same
inset as `.cron-drawer` so the two cron drawers line up, plus a note on the DS
Drawer so the next body does not repeat it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:33:05 -04:00
Juan DenisandClaude Opus 5 62507f750c feat(cron): rebuild the create surface as a drawer on SchedulePicker
Creating a job went through a plain modal with a preset <select> and a bare
cron text field — the schedule was something you had to already know how to
write. It now opens a drawer built on the shared SchedulePicker (presets ·
builder · advanced, with the humanized cadence and the next fire times), plus a
preview of the exact crontab line the form will write.

The drawer owns its own form state, so the page drops the form object, the
reset/open/submit handlers and the /cron/presets fetch that only fed the old
dropdown. The list head gains the section title and the "N of M jobs" count,
with the filter moved to the right where the mock has it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:08:03 -04:00
Juan DenisandClaude Opus 5 5879f7689a fix(ui): import the SchedulePicker stylesheet
components/_schedule-picker.scss was never added to main.scss, so the shared
cron picker has been rendering unstyled everywhere it is used — raw bordered
boxes with the preset label and its cron expression jammed together, and the
next-run list running into the description. Adding the one import restores it
for Backups' schedule card and the server-detail cron tab as well.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:07:53 -04:00
Juan DenisandClaude Opus 5 4a21e52d1b refactor(ui): move the standalone pages onto the shared page shell
Fourteen pages each carried their own frame: some a padded `.page-container`,
some a bare fragment, some the `app-detail-page` chrome with a per-page
`.main-content:has(...)` escape hatch to undo the frame again. All of them now
render through PageLayout, which deletes the per-page shell code and puts every
top bar flush against the content region.

Loading and not-found early returns take the same shell as the loaded page, so
the bar no longer appears, shifts, or vanishes as data resolves. The now-dead
`.main-content:has(.ws-detail-page)` rule goes with it — the shared full-bleed
rule covers it, and two :has() rules fought each other on small screens.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:07:46 -04:00
Juan DenisandClaude Opus 5 761b4f0eba feat(ui): add PageLayout, the standalone-page twin of TabGroupLayout
Standalone pages had no shared shell, so each one hand-rolled its frame by
dropping a PageTopbar into the default padded `.page-container`. The bar
carries the sidebar's surface and a bottom border precisely because it is
chrome meant to pin to the frame — inside a padded, max-width-capped well it
instead floated in the middle of the content area with a gutter on every side.

PageLayout gives those pages the same frame TabGroupLayout already gave a tab
group: full-bleed shell, top bar flush to the top of the content region, body
scrolling beneath it in the reading column. The shell rules now live in three
mixins shared by `.sk-page` and `.sk-tabgroup` so there is one definition of
what a page frame is.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 22:07:34 -04:00
Juan DenisandClaude Opus 5 127fa8f213 fix(monitoring): correct two visual defects the render smoke test caught
- The Events severity chip passed a MetricCard tone to Pill. The two token sets
  overlap but are not the same — Pill has no "accent", so info events rendered
  as bare text with no chip while every other severity had one. Split the config
  into `tone` (tile) and `pill` (chip).
- "128 ms" wrapped onto two lines in the Monitors table's narrow response
  column.

Both were only visible in a rendered page, not in lint or the build.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 00:34:17 -04:00
Juan DenisandClaude Opus 5 ce3420f607 refactor(monitoring): one group for Monitors, Incidents, Events and Jobs
The group's information architecture had drifted. The Events tab pointed at
/telemetry, which was nested inside the monitoring TabGroupLayout but ALSO
rendered its own PageTopbar — two stacked headers. Jobs sat as a top-level
sidebar entry while being the same class of thing as Events, so the two read as
rival pages.

- MONITOR_TABS is now Overview / Monitors / Incidents / Rules / Capacity /
  Events / Jobs / Doctor (+ Status Pages from the extension). Alerts is gone as
  a tab; /monitoring/alerts and /monitoring/fleet-alerts redirect to Incidents,
  and FleetAlertsPanel moved there with its own ack/resolve lifecycle intact.
- Jobs moves to /monitoring/jobs and loses its sidebar entry; /jobs redirects.
  Activity/Scheduled becomes an in-page SegControl since the group's bar already
  owns the tab row. JOBS_TABS is deleted.
- Events (Telemetry) rebuilt on the standard pattern: no PageTopbar of its own,
  KpiBand + MetricCard severity filters instead of bespoke telemetry-stat divs,
  topbar SearchField + FilterDrawer instead of an inline collapsible panel,
  DataTable + DS Drawer. Every capability is kept — correlation drill-down, all
  filters, test-event emit, cleanup, pagination.
- The Overview leads with a monitors summary (availability, live check feed,
  monitor list); host resources keep everything they had, one section down.
- Status pages can now publish a monitor that already exists, and detach it
  again without destroying it — deleting a component now deletes a real monitor.

FilterDrawer grows `children` + `onClear` so a host can add non-list filters
(free text, date bounds) and still have "Clear all" reach them; without onClear
it would silently reset only the chip groups.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 00:03:27 -04:00
Juan DenisandClaude Opus 5 0acf2c0a3a feat(monitoring): add the Monitors and Incidents surfaces
Monitoring only ever described the machine the panel runs on. These are the
screens for the things it is supposed to be watching:

- /monitoring/monitors — the check list on the Domains/Cron pattern: clickable
  KPI tiles as the status filter, topbar SearchField + FilterDrawer, and a table
  with a response sparkline, 30-day uptime and a live next-check countdown.
  Creating a monitor picks a check type (HTTP / keyword / port / ping / DNS /
  SMTP) and its probe options.
- /monitoring/monitors/:id — the drill-down, outside the tab group so it carries
  its own breadcrumb header. Sections are a SegControl, not a second tab strip:
  Performance (p50 chart + stat strip), Uptime (90-day bars + certificate),
  Check log (freezable so a streaming table stays readable), Configuration.
- /monitoring/incidents — absorbs the old Alerts tab. A CPU threshold crossing
  and a monitor going down are the same question asked of two subjects, and
  splitting them is what made alerting look like it only described this server.
  Host threshold alerting is unchanged, just rendered in the same timeline.
- UptimeBars renders a day with no samples as its own "unwatched" state rather
  than a full green bar — "we weren't looking" and "it was fine" are different
  facts, and conflating them is how uptime widgets lie about their history.

The list sparkline is fed by one bulk query for the whole page, not one per row.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 00:03:05 -04:00
Juan DenisandClaude Opus 5 5f44bf4442 refactor(styles): delete the retired .page-header layout
With /cron, /webhooks and /test-sandbox off it, the old
<div class="page-header"><h1>...</h1></div> block had one live user
left: Docker's Docker-not-installed branch, where the panel below it
already supplies its own heading. Remove that, and the class is dead.

Delete the base rule and the overrides that outlived it in
_docker.scss, _marketplace.scss, _wordpress.scss,
_wordpress-pipeline.scss and components/_tabs.scss, plus the unused
.docker-page-header. The base rule's slot keeps a comment saying what
replaced it.

StyleGuide's "Page Headers" section still described this as "the
canonical pattern, use this for all pages", which is how it kept
getting picked for new pages. It now demos the two live shapes — the
titleless TabGroupLayout bar (the default) and the titled standalone
bar — and names .page-header as retired. StyleGuide's own header moves
to PageTopbar.

Docker and the Database Explorer intentionally carry no page bar at
all; that is unchanged and deliberate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 22:44:56 -04:00
Juan DenisandClaude Opus 5 b83cb5ca82 feat(cron): rebuild /cron on the Domains list pattern
The page kept a shape the rest of the app moved off: a four-card KPI
strip, its own in-body search input, a hand-rolled table, four icon
buttons per row, and an edit modal on row click.

It now matches /domains: the segmented filter carries the counts (no
KPI strip), SearchField lives in the top bar, the list is the shared
DataTable, and a row opens the DS Drawer. The top bar keeps its title
— /cron has no tab group, and the reference mock shows a titled bar
there; the body was what was stale.

Last run / Next run / Status columns need data list_jobs() never
returned: it skipped the schedule_human / next_run / run-tracking joins
that jobs_for_application() has done since plan 34, so the admin list
could only ever show enabled-vs-disabled. Apply the same enrichment,
with tests covering the schedule join, the last-run join, and the
no-history case.

The drawer's run history uses GET /cron/jobs/<id>/runs, which already
existed and only ScheduledTasksCard consumed. It's admin-only and
empty until a job carries the tracking shim, so both cases are stated
in the drawer (with an enable-tracking action) rather than rendering a
blank table.

Also fixes styles that never applied: .run-output-*, .spinner-inline
and the modal field overrides were nested under .cron-page, but Radix
Dialog and Sheet portal to <body>. Hoisted to top level.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 22:44:40 -04:00
Juan DenisandClaude Opus 5 85359c83eb refactor(nav): dev-gate the Test Sandbox, move Webhooks into Settings
Two sidebar surfaces that shouldn't have been top-level pages. Both
touch App.jsx + sidebarItems.js, so they land together.

Test Sandbox: the distro-matrix console shipped visible and routable
on every production install. Add a shared useDevMode() hook
(module-scope cache + listeners, same shape as useModules) resolving
`import.meta.env.DEV || (isAdmin && dev_mode)`. The sidebar item gates
on requiresCondition: 'devMode' and the route on the same hook, so a
visible nav entry can never redirect to the dashboard. The guard waits
on `resolved` first, or an admin deep link would bounce before the
dev_mode fetch lands. Settings' toggle calls refreshDevMode() so the
sidebar reacts without a reload.

Webhooks: the inbound receive/verify/forward console is server
configuration, not a daily ops surface, so it becomes a Settings ->
Admin tab next to the outbound subscriptions it complements. /webhooks
and /secrets/webhooks redirect there; the sidebar item is gone, which
empties ADVANCED_ITEM_IDS down to the queue console. The command
palette entry drops its navId (a Settings tab has no nav item for the
workspace permission gate to consult) and settingsIndex.js gains the
three entries check-settings-index.mjs requires for a new tab. The
native confirm() on delete becomes the shared useConfirm() dialog.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-27 22:44:28 -04:00