UI and the design system
The operator console is a SolidJS SPA styled with daisyUI 5 on Tailwind CSS 4. It is
a generated client of the API (typed via orval off the committed openapi.json). The
same surfaces are also the learning surfaces (see
the learning-tool restriction).
The stack
Section titled “The stack”| Concern | Choice |
|---|---|
| Framework | SolidJS (solid-js, @solidjs/router) |
| Components / theme | daisyUI 5 on Tailwind CSS v4 (the omniglass-dark / omniglass-light themes) |
| Interactive primitives | Kobalte, only through the wrappers in web/src/components/ui/ (ModalDialog, ConfirmDialog, Popover, Tooltip, Select, Picker, Search, Tabs, Toast, Collapsible, Switch, SegmentedControl), styled by daisyUI |
| Data fetching | @tanstack/solid-query over a typed client generated by orval |
| Typefaces | IBM Plex Sans (UI) and JetBrains Mono (data), both OFL 1.1, vendored and served by the binary |
| Build / test | Vite, Vitest, @solidjs/testing-library |
| Flow / graph viz (future) | for the learning + explore surfaces; not built yet |
| Dashboards (future) | a widget grid for the dashboards surface; not built yet |
The typed client is generated, never hand-written: orval turns openapi.json into api.gen.ts
(every schema as a type, one typed function per operation), and scripts/gen-api-paths.mjs indexes
those operations by route into paths.gen.ts, which types the path-keyed api.GET(route, ...)
client in client.ts (ADR-1619). A route or shape change surfaces as a
TypeScript error in the SPA. The cobra
CLI is generated the same way. make gen regenerates all of it; a non-empty diff fails the slice.
Core UI contracts
Section titled “Core UI contracts”- One list shell:
ListShellwithFlatList/TreeListbodies. Every list page (Files and the flat catalogs; the fleet kinds are listed by Explore’s outline instead) is aListConfigover the one shell, never a fork. The shell owns the faceted filter header, the action rail (tree/list toggle, expand/collapse, column visibility + drag reorder, the primary create), the tree and flattened body rendering, and the stacked blades. A page that opens a row in place (Files) also gets the full-page detail and the create/editDrawer. There is no summary row above a table: the KPI chip rows retired (ADR-0137). Adding an entity of this class is a data layer + a config + a route (see theadd-inventory-viewskill). A list whose loaded page outgrows its first paint (the audit trail) sets the shell’sfilland sits in a box of definite height (h-fullof the shell’s main region, never a viewport height minus a guessed header), so its rows scroll under sticky headers and its footer stays put;fillwith no sized box around it grows like any other list. - The shell is one viewport high; strips and overlays have one rule.
AppRootish-dvh: the lab strip and the impersonation strip (24 px, one line each, never scrolling away) sit on top and the routed screen takes the rest (min-h-0), with<main>as the scroll region, so the document never scrolls. The lab strip also shows on the sign-in page; the impersonation strip needs a session. A page region fills what the shell gives it (h-full,flex-1 min-h-0), never100vhminus a guess. Overlays (drawers, the command palette, omnibot) arefixedagainst the viewport and cover the whole window, strips included, dimmed with the shell; the strips are never raised above them. - An open drawer has an address. Opening a row on a list page (every catalog page, users,
roles, secrets, variables, outposts, files, alarms) writes it to the URL as
?open=<row address>, the same address the row’s API route takes (a name or a uuid, ADR-0062). Opening is a history push, so Back closes the drawer and leaves the list; closing clears the param in place; loading the address opens the same drawer. It is one hook,useDrawerAddress(lib/drawer_address.ts), mounted byFlatListandTreeList, never a per-page param: a page that setsrowIdand a detail or blade config gets it for free. An address that names no visible row shows the list with a not-found notice (ListShell’smissing), the same words whether the row is absent or out of scope. A blade drilled over the root keeps its own stack and is not in the URL, and the param composes with the page’s filter, sort and?edit=1. Every link into a drawer from another surface isdrawerHref(kind, address), never a hand-built string. - The top bar is the page header: two lines. A page’s title and one-line hint are read from the
nav metadata (
<Page route="/roles">) and rendered by the top bar in two lines, the same shape on every page. Line 1 is theh1row, with the search, omnibot and notification controls at its right:Admin / Roleson a list page, and on a detail page the kind’s list as a link, the entity’s label as theh1and its primary system as a muted link in parentheses (Components / Amplifier-1 (System ABC),Systems / System ABC,Locations / Room 201). Line 2 is the muted hint on a list page, and on a detail page the location path, each crumb a link (HQ / Floor 2 / Room 201), folding its middle crumbs into an ellipsis menu by the measured width (collapseTrail,trailBudget,lib/breadcrumb.ts). On a narrow window the controls stay on line 1, theh1truncates with an ellipsis before anything wraps, and line 2 stays one line.Pagefeeds the bar its title, hint,kind,systemandtrail; a route with noPage(Explore, Home, Profile) gets its nav label as the sameh1, so every page has exactly oneh1, in the same place, and the body starts directly under the bar. A detail page spends no body row on its breadcrumb. - One drawer width rule. A drawer is the narrow panel (
max-w-md) unless its body carries a table or a timeline, which takes the wide one (max-w-2xl;wideon aFlatListdetail or onDrawer). The alarm drawer (its timeline) and the audit drawer (its change table) are wide; a form, a read of facts or a blade is narrow. Decide by what the body holds, never by the page. - One date format. Date, time and locale-number formatting lives in
lib/format.tsand nowhere else (src/date-guard.test.tsfails atoLocaleString,toLocaleDateStringortoLocaleTimeStringcall anywhere else). An instant in a list or a drawer is theTimecomponent: relative (“4m ago”) with the absolute time and the exact RFC 3339 instant on hover and focus (Time absolutewhere a relative age says nothing, such as a before/after pair). A recorded field name in the audit change table is humanized (humanizeField: “Last orphaned at”), the recorded key kept in the field’s tooltip, shown on hover and on focus. - A filter bar’s placeholder is lower case (“filter by name, type…”), pinned by
filter-placeholder-guard.test.ts. - An empty list that has a create action teaches.
FlatList’semptytakes a function that receives the create action when the viewer may create, so an empty directory says what the thing is for and offers it (user groups, as the Inbox and Subscriptions do) instead of a bare line. - A list’s sort and open work from the keyboard.
FlatList’s sort and open are keyboard operable from the primitive: a sortable header renders its label in a<button>and the<th>carriesaria-sort, and an openable row ends in a button namedOpen <name>(rowLabel, else the entity noun and the row address), which also gives a scrolling table its focus stop. - Lists render in server order; the SQL rule is the ordering primitive. A catalog list the
API serves arrives ordered by
order by label nulls last, name(a row with no label last, otherwise by label, then by name), and the page renders the rows as received:FlatListsorts only when the operator clicks a column header, and no page or picker re-sorts a served list. A new catalog list picks the order up by doing nothing.byLabel(lib/entities.ts) is the same rule for a list the client composes itself, where no query ordered it, and its doc comment names the call sites that remain. The two halves are held together by one committed fixture (web/src/lib/label_order.fixture.json): a storage test orders it through the real query, a web test throughbyLabel, and both assert the same sequence. Ordering by the rendered label (falling back to the name for an unlabelled row) is a separate open decision. - The fleet is an outline, not a list. Explore renders
components/Outline.tsx, an ARIA tree (roving tabindex, arrows,*,+) over the pure model inlib/outline.ts. Its rows iterate stable string keys, so a rebuild (a toggle, a health read arriving) keeps each row’s element, its focus and an open menu. Its columns answer the outline’s own width through container queries rather than the window’s, since the sidebar and the blade take their share first. Health is four fixed slots (healthy, incomplete, degraded, outage), glyph and count, where healthy wears a muted green beside the full trouble hues (ADR-0154). - A detail view is one per system, its location as context. Systems are the unit; locations are
folders and metadata; components are pieces of systems (#872). A system’s view
(
components/SystemDetail.tsx, mounted bypages/SystemZoom.tsxand by the system blade) is aLocationCard(the location’s type, tags and its own panel, never its name when the view is already titled by it) above the subject card (an eyebrow, the health, the facts said once) with itsTabRailinside. A location holding exactly one system lands on it (lib/detail.tslandingFor), and its location configures in a secondConfigureFaceon the system’s Configure tab, answering its own edit intent (useEditParam’svalue,edit=location); a location holding none or several renders its own subject card, with aSystemSummaryper system andOutlineWorkspacerooted at it. A component’s view wears theLocationCardtoo, with its provenance.DetailGateowns the miss, pending and error-with-Retry states for all three. A system’s components render asMemberRows, the outline’s row idiom on its own grid, a slot grouped only where it says something a column cannot. There is no counts line above a detail view: the subject card’s header carries its facts. A list whose items hold their own queries iterates stable ids, never the objects a fresh read hands back: iterating objects rebuilt each card on every read, and each rebuilt card refetched, a request storm. - A fleet blade is its detail page, reflowed. A component, system or location opened in a
blade renders the body its page renders (
ComponentDetail,SystemDetail,LocationDetail, each{ id, host: "page" | "blade" }, ADR-2423): the same sections, tabs and actions. The page is the address around it (breadcrumb, landings,DetailGate’s miss faces); the blade adds its title and Expand. The host holds the active tab (lib/tabstate: the page’s?tab=, a blade’s own signal, so a blade never rewrites the page beneath it;OutlineWorkspacetakes the samehostfor its filter), whether Edit answers?edit=, and where Delete leaves to. Editing is the Configure tab’sConfigureFacein both hosts, Delete in its top rail. A body lays its sections out by container query (the body root is@container; use@3xl:and the like, nevermd:), so the wide fleet blade (BladeDef.width: "wide", about 720 px) reads one column and the page two. A body opens related entities on the ambient stack (useBlades), never its own. Where a blade has no breadcrumb, itsLocationCardtakespath. A new section goes into the shared body, once;fleetBlades.guard.test.tsfails if a kind forks a blade body of its own. - The Name column has a floor, and the card scrolls before it gives it up. A list table is
table-layout: fixed, every column but Name declares a width, and Name takes what is left, which is what lets the identifier grow into a wide screen. It also made Name the first column to give up space on a narrow one, and it gave up all of it: at a 1280 viewport, where the list card offers 973px, Components declared 890px of columns plus 150px of row actions and its Name column measured 0px, while Locations, declaring 650px, looked fine (#690).TreeListnow asks the table for amin-widthof everything declared plusNAME_MIN_W, so the browser gives Name that floor and the card scrolls sideways when even that does not fit. Wide screens are unchanged, sincewidth: 100%beats a smaller min-width. A page declaring a new column inherits this; it is one rule in the shell, not a set of numbers per page.NAME_MIN_Wis 191px and every digit of it is measured: the floor was 260 while the cell still carried the label pen’sGeneratedchip, that chip cost a uniform 69px on all 20 rows of the three pages, and the labels beside it did not change, so the floor is 260 minus 69. The method is written out beside the constant, because a number that was not derived the same way next time is a number nobody can check. What the 69px was buying: Components stops scrolling sideways at a 1680 viewport (its table asks 1231px of a 1254px card, where it asked 1300px before). Systems still scrolls there (1301px) and Locations still scrolls at 1280 (991px of a 974px card), so the chip’s removal is not what fixes those; the columns menu is. - The faceted filter is a tested engine.
lib/predicateis the pure matcher: values within a chip are OR, chips across keys are AND, clicking an active facet removes it.FilterBaris the thin staged combobox over it; the genuinely tricky list derivations (index, ancestor paths, flatten-vs-tree rows, client-preference parsing) are pure inlib/listmodel. Both are unit tested;FilterBarhas a component test. can(me, resource, action)from/auth/me. The console reads the user’s flat, wildcard-expandedpermissionsonce and gates UI affordances with O(1) checks;ListShellgates create/update/delete by the entity’s resource name. The server is the authority; this is a hint only.- Blades are ephemeral, the full page is addressable. A row opens a stacked blade (the Azure
model); Maximize promotes it to the
/<entity>/:idURL. The blade stack holds outpost ids, so a blade survives a refetch. - The shell owns the action rail; the body registers, never draws. A panel’s buttons are
declared, not laid out: a blade body binds through
lib/blades(destructive,secondary,primary, plus the Edit/Save cycle) and a Drawer form body binds throughlib/formactions(submitLabel,submitIcon,submit,busy,disabled,cancel).BladeStackandDrawereach draw the resulting bar, both through the onePanelFooterrail, so spacing and chrome cannot drift between them. A body that renders its own button row is a bug, andrail-ownership.test.tsfails on it. This replaced an opt-inDrawerFooterhelper that each form had to remember to wrap its buttons in: two forms forgot, and stayed wrong for months while the helper was copied into six new pages around them. A convention can be forgotten; a slot cannot. Full-page create forms draw their own inline rail throughFormActionBarwith theinlineprop; aFormActionBar inlineis the one full-page form rail the guard permits. A form that cannot be submitted says why (#2440): the primary action stays enabled, and the binding’sproblemsmake an attempt name each missing field in a sentence beside the actions (FormProblems), mark the field and focus the first, all in TypeScript, never nativerequired.disabledis for in-flight and permission states only.rail-ownership.test.tsalso fails a form that draws its own submit button, outside a short allowlist of non-entity forms. - An entity’s actions live at the top right of its tab rail (#2439). On a detail body (component,
system, location, on the page and in the blade) Configure draws its actions at the right end of the
TabRail, inline with the tabs and not in a row of their own: a small primaryEditand a⋯menu (theui/Popoverwrapper) holdingDeleteas a destructive item; while editing,CancelandSaveside by side in the same place, Save primary. Delete still asks through the confirmation dialog, and a tab switch still asks through the leave guard. The host hands the rail’s end element toConfigureFace(TabRail’sendRef); a face with no rail to draw on (a sole system’s location section) keeps a short row of the same actions at its head. - A list page reads the same across the catalog (#2431). One header height: the filter bar
holds a button’s height itself, so a list with no New button (templates, secret types) sits level
with its siblings. While chips filter, the bar says
n of m. An empty list shows its empty state alone, with no column header row above it. A create form opens on Label, then the derived Name (IdentityFields, which owns both fields and their hints), then the kind-specific fields;catalog_create_order.test.tsxfails a catalog page that opens on anything else. - A read-only row draws a note, never dead buttons. The footer is
PanelFooter: destructive at the left, the primary at the right. A locked official row replaces both with one note, “Official, read-only”; a kind whose API has no write route (secret types, templates) draws no write button at all and says why in one line.catalog_readonly.test.tsxreads “has a write route” from the generated route table (web/src/api/paths.gen.ts) and fails a disabled button on a kind without one. A lock for a missing permission still greys its button, with the permission it needs on the tooltip, because that button works for someone else. Where the app rail plus the catalog subrail would leave a list under about 300 px (below 1100 px wide) the subrail folds behind one button that names the section you are in. - Client preferences in localStorage, for now. Column order/visibility persists per browser; the eventual home is a per-user preferences endpoint (a read/write swap), not the cascade.
- Learning surfaces ride the real engine. A concept page renders the actual pipeline against real or lab-simulated data, not a static diagram. The flow/graph library for these lands with the explore/learn surfaces.
Rows with actions
Section titled “Rows with actions”A row that carries its own controls (expand toggle, Open / Edit / Delete) is not a button. Giving
the <tr> role="button" and tabindex nests focusable controls inside it, which axe fails as
nested-interactive (#974). The pattern, built once in TreeList: the name cell holds a native
<button> that opens the row; the <tr> keeps an onClick so pointer users can click anywhere
(the name button and the action buttons stop propagation so a click fires once); keyboard users
tab to the name button, then the row’s actions. Do not add role="button" to a row.
Button vocabulary
Section titled “Button vocabulary”Buttons use a small set of semantic intent classes defined in app.css, never the raw daisyUI
color/emphasis classes, so styling is unified and a future theme restyles every button from the
theme tokens in one place. One intent per button; structural btn, size (btn-sm / btn-xs), and
shape (btn-square) still come from daisyUI.
| Intent | Class | Use |
|---|---|---|
| Primary action | btn-action | the main action (Save, Create, Edit, New): filled |
| Secondary / quiet | btn-quiet | Cancel, icon buttons, low-emphasis actions |
| Destructive | btn-danger | revoke, delete |
| State toggle | btn-warn / btn-ok | a reversible toggle that reads its state (Disable is a warning, Enable a success) |
The edit flow reads the same everywhere: Edit is a filled btn-action with a pencil, Save is a
filled btn-action with a disk icon, Cancel is a btn-quiet with an X. Create submits are
btn-action with a plus. The icons come from the local icons set, so a control looks identical on
every page.
The intents are @apply-composed from daisyUI in app.css, so they inherit the theme’s tokens:
color lives in the tokens, not the markup. A style-guard test scans the source and fails the
build on any raw daisyUI color/emphasis button class (btn-primary, btn-ghost, btn-outline,
btn-soft, btn-error, btn-success, btn-warning, and the rest), so the vocabulary cannot drift
back to one-off styling.
The primary button (and every other primary-filled surface: solid badges, selected chips, avatars)
is the bright brand teal with a dark ink foreground, driven by the theme’s own --color-primary
/ --color-primary-content. daisyUI 5’s @apply btn-primary drops the primary foreground and lets
the filled button inherit the near-white base-content (1.8:1 on the teal, failing WCAG), so a single
unlayered .btn-action:not(:disabled) rule restores the theme foreground. The dormant light theme
also needs a darker teal for teal text on white (a [data-theme=light] .text-primary rule),
since the bright teal is unreadable as small text on white (1.9:1) while it reads 8.3:1 as a fill
with dark ink; that rule is inert while the console is dark-only.
Status pills
Section titled “Status pills”Status badges use badge badge-sm with a soft hue for a signalled state (badge-soft badge-success for up/enabled/responding, badge-soft badge-error for down, badge-soft badge-warning for stale). A neutral state (an outpost that has never checked in, a disabled task,
an unknown health) does not use badge-neutral: against this theme’s dark base-100
(#080c16) it renders near-black, and theme-badges.test.ts bans it. The app’s neutral chip is
badge-ghost, which app.css restyles from daisyUI’s transparent default into a soft grey fill
tinted from the text color, so it reads as a visible pill at the same weight as the soft hues. The
same reason keeps type values (endpoint/task type) as plain font-data text, not a
badge-neutral chip. A healthy health wears green from one token, --og-healthy (ADR-0154):
badge-healthy on a pill and bg-healthy on a strip at the trouble hues’ weight, text-healthy
(muted) on dense views such as the outline and the map. A glyph that stands for one component (an
outline slot, a map marker’s icon) takes its hue from healthHue, every health in its own colour,
so a known healthy health never reads as the grey unknown chip.
A severity wears its level’s color, one map for the whole console (SEVERITY_BADGE beside
SeverityBadge): gray is the badge-ghost neutral chip, blue badge-info, green badge-success,
yellow badge-warning, red badge-error, and orange and darkred their own badge-average and
badge-disaster (the --og-average and --og-disaster hues), so a disaster stays distinguishable
from a high. The chip shows the level’s label; whether it takes a component out is the level’s
outage flag, never a comparison against a level name.
A held session wears SessionPill (#1059), on HealthBadge’s recipe of glyph, word and hue:
establishing the incomplete look (a dashed ring: not yet, not broken), up badge-success,
recovering badge-info (the outpost is working on it), down badge-error, and rejected
badge-warning with a refusal glyph, because it is the one state that waits on an operator and must
not read as down. Beside it sits its age, and a state whose endpoint has delivered nothing for the
staleness window takes the grey badge-ghost chip, its tooltip saying what it last read. The
reachability ladder (ReachLadder) is a row of rung chips, each an InfoTip trigger of its own
(InfoTip takes children in place of its (i) for exactly this), the informational ping’s chip dashed
and a held rung amber with the refusal glyph. A list whose rows hold state (an expanded row, a retry
waiting on its session) keys its rows by id, never by the objects a poll hands back. The notice
beneath (SessionNotice, its words from endpointNotice) keys on the gate, not the session, so an
endpoint its probe alone refused reads the same as a rejected session, with no pill beside it
(#1110); there is one refusal notice, never a second for probes.
A refusal of a changed key (#1078) renders PinnedKeyNotice in place of the reason: the pinned
and the offered key, each a KVStacked fact whose hint (an (i) beside the label) says what
the key is, read off the gate as data. TrustKeyButton beside Retry opens a ConfirmDialog, the
console’s confirm for a decision that needs reading first (a centred ModalDialog with role alertdialog, its rail
the one PanelFooter, the focus on Cancel when it opens): the confirm repeats both keys and teaches
Why a key changes as three chips, each an InfoTip trigger, the man in the middle on the
warning hue and the two routine causes on the neutral chip. Both are generic over the class, so a
tls certificate’s pinned key renders the same. Every other destructive confirm reaches the same
dialog through confirmDelete / confirmAction (web/src/lib/confirm.ts), one line at the site:
the title names the thing, the body says what goes with it, the button carries the verb. Handed the
act as run, the dialog runs it and, on a refused delete, lists the blockers the 409 names, each
with its own link and delete. The browser’s confirm() is barred under web/src by a guard test.
Primitives (the reuse target)
Section titled “Primitives (the reuse target)”ListShell (with its FlatList / TreeList bodies), FilterBar, Drawer, ConfirmDialog,
PanelFooter, Badge, Page, Breadcrumb (its crumbs are links), DataTable, IdentityCell, KVStacked / KVRow / FieldRow /
BladeField, CommandPalette, the toast (toast() from ui/Toast, drawn by the shell’s Toaster), plus
the Sidebar / TopBar shell.
A polled list keys its rows (KeyedFor). A polled read hands back fresh objects every time, and
Solid’s For rebuilds a row whose item is a new object, so over a poll every row loses the state it
holds: an expanded chart closes, a tooltip vanishes under the pointer, a disclosure the operator
closed opens again. KeyedFor takes the list and a key (by) and keeps a row mounted while its key
is in the list, handing it the key’s newest item, so the row’s state survives the poll and its
figures follow it. Platform health renders every level with it (server, panel, key, route, outpost,
column).
A toast points at an outcome; it never holds the only copy. Any surface raises one with
toast() (a tone, a title, an optional live body and one action; toast.success(title) and
toast.error(title) for an action’s result; lib/toast’s pushToast is the same function), and
the shell’s Toaster draws it bottom right, a polite live status, each toast a raised card edged in
its tone’s hue (a soft fill alone sinks into the dark page). It goes away by itself, or when
dismissed; its timer pauses while the pointer or the focus is on it, Alt+T moves the focus to the
notifications, Esc closes the focused one, and a burst past four queues behind the ones shown. Its body is a render function, so it can show something that moves (a command’s phase,
#1155) rather than a string frozen when it was raised; its action opens where the outcome lives. New fleet list pages consume these; new
surface classes (dashboards, alarms, explore, learn) add their own primitive rather than
bending ListShell.
Interactive primitives are wrappers over Kobalte
Section titled “Interactive primitives are wrappers over Kobalte”The console’s interactive primitives are its own components in web/src/components/ui/, each a
house-styled wrapper over a Kobalte primitive with a component test for its keyboard contract
(open, move, select, dismiss, and where the focus goes after), and only that directory imports
@kobalte/core: web/src/kobalte-guard.test.ts fails any other import, tests included
(ADR-2485). So one pattern has one component, every surface gets the
same keys and focus, and the library underneath is swappable in one directory.
| Need | Wrapper | Notes |
|---|---|---|
| A modal surface | ModalDialog (+ DialogHeading, DialogClose) | Drawer and the palette are built on it; alert for an alertdialog |
| A decision that needs reading | ConfirmDialog | Cancel takes the focus; the body can teach |
| Any destructive confirm | confirmDelete / confirmAction (lib/confirm) | one line at the site; renders the one ConfirmDialog; run lists a refused delete’s blockers |
| A floating panel from a button | Popover | the column menu, Snooze, Add under |
| Help on hover or focus | Tooltip | InfoTip is the (i) built on it; never inside a <label>. Never the native title attribute: it never shows on keyboard focus (a guard test bars it). Button and Popover take a title prop and render the tooltip; a truncated value is Truncate |
| A short fixed list with drawn options | Select | TreeSelect is built on it |
| Choose from a long list by typing | Picker | single or multiple; detail tells two same-named rows apart; onCreate adds the create row; works inside a Drawer |
| Find by typing, results from the server | Search | grouped rows the caller already filtered; the palette’s field. The list renders inside its dialog (never portalled out of it); the first row is the default and Enter takes it |
| Views with panels of their own | Tabs | page-local; route tabs are TabRail |
| An action’s result | toast(), drawn by Toaster | see the toast rule above |
| A section that opens and closes | Collapsible | for state the console owns or reads |
| An on/off state | Switch | a stable label, never the state’s wording |
| A mode or filter over one view | SegmentedControl | two to five segments |
Native stays where native is good. A plain <select> over a short list of strings, a checkbox
in a list of choices, a radio and a stateless <details> disclosure are not replaced: the browser’s
own control is accessible and needs no wrapper. The outline tree and TreeSelect’s tree stay ours
(Kobalte has no tree).
When to add a wrapper. A surface that needs a Kobalte primitive with no wrapper (a menu, a
hover card, a slider) adds the wrapper first, in its own commit: a component in ui/ with the house
classes as defaults, a props API that names the console’s concepts rather than re-exporting
Kobalte’s parts, its keyboard-contract test, and a row in this table. Import Kobalte’s named
exports (import { Content, Root } from "@kobalte/core/dialog"), never a namespace like
Dialog.Content: Kobalte 0.13 builds Dialog and AlertDialog by assigning parts onto one shared
root, so the namespace that loaded last wins (every drawer once announced itself as an
alertdialog). Never hand-roll role="combobox", a tab list or a window.confirm in a new surface.
A field, a fact, and what read-only looks like
Section titled “A field, a fact, and what read-only looks like”Three primitives cover every labelled thing on a detail surface, and nothing else may render one.
Tooltips, not prose. An operator surface carries no inline explanatory text: what a field or
a section means rides its label’s (i) tooltip (InfoTip, portalled Kobalte), never a sentence
in the flow. Eyebrow is the section form of the rule: the section label with an optional
hint, so pedagogy is one hover away and the page itself stays scannable. Long descriptive
prose on an operator page is a defect; the standard-editor’s vocabulary (choices, alternates,
accepted types) never leads an operator view. Ruled 2026-08-20 (#790); the platform-wide sweep
of the remaining pages is #784.
KVStackedis a fact: an eyebrow label above a value. It is what a detail grid cell is, and it is also the read state of a field. Ahintputs an(i)beside its label, the fact’s form ofFieldRow’s tooltip.FieldRowis a form field: the same eyebrow label above a control, with an optional(i)tooltip beside the label and a hint below. It generates the control’s id and points<label for>at it, keeping the tooltip trigger outside the<label>so a labelable button never steals the control’s accessible name.BladeTitleis the heading of a blade: the row’s label, tracked reactively.BladeFieldis a blade field: a fact when the blade is being read, aFieldRowwhen it is being edited, with the switch made once rather than per field. It takes the edit slot fromBladeEditContext, or from an expliciteditprop for a detail body that also renders outside a provider (the tree pages render one body in both places).
A placeholder is not a label. Every control gets its name from a <label for> (or an
aria-label where no label is shown). A placeholder can say what an empty field means, but it is
not the control’s name: it vanishes once there is a value, and a screen reader cannot rely on it (#973).
A read-only field renders as a fact, never as a box. A bordered input that rejects typing reads as broken rather than as read-only, and an official-row blade rendered five of them at once, directly below three plain facts, so the same read-only state had two appearances on one panel (ADR-0078). A blade the operator cannot edit now contains nothing shaped like a control. Both states label with the eyebrow, so the label does not change style when the pencil is clicked.
A blade’s drafts are seeded by the edit SLOT, and never outlive the row they came from. A body
declares its seeder once (edit.bind({ seed })) instead of wiring an effect on editing, because
seeding has two triggers and only one of them is entering edit. The other is a body that replaces the
ROW underneath an open editor: :restore discards an operator’s fork, so the row goes back to the
shipped values while the drafts still hold the fork, the fields show values the row no longer has,
and the next Save writes the discarded fork back over them. That body calls edit.reseed() and gets
the same seeder. Binding is opt-in and a blade that seeds with its own effect is unaffected (#741).
BladeTitle is the heading. The label of the row the operator clicked, falling back to
the identifier in the data face. It reads its row accessor inside the JSX, which is the whole of the
rule: eight pages wrote this heading by hand and all eight read the accessor once in the component
body, where a Solid read subscribes to nothing, so the heading kept the old words after a rename
until the blade was closed and reopened. identity-vocabulary-guard.test.ts now carries three checks over headings, one per bug that got
through: a heading must resolve its row (it rendered the raw id), must not snapshot it (it went
stale after a rename), and must render through BladeTitle or be named in the test’s exception
list with a reason (it resolved and tracked correctly and read the wrong field, the name where
its list showed the label). The exceptions are the entities that carry no label at
all, where the name is the only operator-facing string: a secret, a variable, a tag, an endpoint.
Free text declares itself. multiline reads wrapped with its newlines preserved and edits in a
textarea. It is a prop rather than a second component because a component means every new page
re-decides which one to reach for.
These exist because the blade shell was a primitive and the blade contents were not. Eleven
pages defined a byte-identical local Field, four more went through positional ctx.field(...)
helpers, and the read-only box was hand-rolled 24 times, so every blade defect was an N-place
defect: a description that would not wrap was one bug in 24 fields.
A validation rule is TypeScript, never an attribute
Section titled “A validation rule is TypeScript, never an attribute”A control in this console carries no required, min, max, pattern or step. The rule is a
pure function over the typed value, the surface renders its message inline beside the field, and the
binding’s problems refuses the submit and names each field (disabled is only for in-flight and permission states)
(ADR-0113).
readSettleWindow in lib/command_types.ts is the worked example and lib/validate.ts holds the
shared ones (a handle, an email, a password floor, a token lifetime).
The reason is structural rather than stylistic. The browser enforces a constraint attribute on a real
form submission, and this console performs none on the paths an operator uses: a Drawer’s action
rail is drawn by the shell and portaled outside the <form> (ADR-0054), a
blade has no <form> at all, and the inline editors save from an onClick. An audit found 21 such
attributes on 24 rendered controls and not one could ever fire, the four on genuine form paths
included, because those forms disable their submit button in exactly the states native validation
would have refused. A reader could not tell a live attribute from a decorative one, because there were
no live ones.
aria-required is the honest spelling of a required field and is what the converted forms carry: it
announces the field to a screen reader without claiming the browser will refuse the value.
validation-guard.test.ts scans every .tsx for a native constraint on an input, select or
textarea, so the next form cannot reintroduce one by habit.
A scrollable region needs a focus stop
Section titled “A scrollable region needs a focus stop”An outpost that can scroll (overflow-auto, overflow-x-auto, overflow-y-auto) must be reachable by
keyboard, or a keyboard user cannot scroll what a mouse user can. axe’s scrollable-region-focusable
(serious) fires on a scroll container with no focusable descendant. A region that holds a control, a
link or a button already has its focus stop (the Drawer body holds its form fields, the calc-rule
preview’s owner list holds an owner link per row). A region of plain text has none: give it
tabindex="0", role="region" and an aria-label that names what it holds, and never aria-hidden,
since a focusable node hidden from assistive tech is its own axe violation (aria-hidden-focus).
ExpressionField’s source-and-caret echo is the worked example (#1101): it scrolls sideways because
the caret under a column only stays aligned on one unwrapped line, so it takes the focus stop rather
than wrapping.
A select over a loaded collection binds through bindSelectValue, not value=
Section titled “A select over a loaded collection binds through bindSelectValue, not value=”A <select> whose options come from a collection the server answers for does not carry a
value= prop. It takes its value from bindSelectValue(value, ...options) (lib/selectvalue.ts),
used as the element’s ref:
<select ref={bindSelectValue(type, () => locationTypes.data)} onChange={...}> <option value="" disabled>Select a type...</option> <For each={locationTypes.data}>{(t) => <option value={t.name}>{t.label}</option>}</For></select>A native <select> holds no memory of a value it has no <option> for: assign one and the control
keeps nothing, and when the options arrive the browser selects the first one instead. Every edit
face has the ingredients, because the stored value is known as soon as the entity resolves while the
options come from a separate query that answers when it answers. A value= binding cannot cover it,
since Solid re-runs that when the value changes and in the losing order the value never changes,
the options do. The primitive owns the value through an effect that tracks both, so it re-applies on
whichever lands second; the effect is created in the ref callback, so it belongs to the owner that
rendered the control and dies with the edit face, and it runs after the <For> that fills the
control because user effects flush after the render effects that insert the options. At least one
option source is required by the signature, since a binding that tracks none is the defect itself
(ADR-0133).
Two shapes are exempt, and the exemption is the reason this is not a blanket conversion. A
select over a hard-coded or generated list (PRODUCT_KINDS, a settings field’s enum) has no
async gap to lose a value in. A select whose value starts empty and only ever moves because the
operator moved it (a create form, an “Add a component…” picker) has nothing stored to lose, and
its first option is the placeholder the fallback would land on anyway.
TreeSelect is the third shape: it is a Kobalte Select, not a native <select>, and it does not use
bindSelectValue. It derives the selected option from its value and its options together, so a
value set before the options load selects once they arrive. The closed trigger shows the bare label
(the indent and the └ glyph are drawn by CSS on the open list, never typed into the text), with the
ancestor path as muted context beside it. An option marked disabled is drawn in its place, muted, and
cannot be chosen, so a caller that narrows the choices keeps the nesting of what sits beneath them.
A location is always picked with LocationSelect (#2301). It wraps TreeSelect, reads the
locations and their types itself, and builds the tree through one pure function
(lib/location_tree.ts): nested by parent, siblings ordered by their type’s rank in the fleet’s own
hierarchy, then by label. So every location field (a placement on a create form, a location’s parent,
an outpost’s location, a secret or variable owned by a location) shows the same tree, and the picking
UX changes in one place. addressOf sets the value the field commits (the uuid by default; an
outpost commits the name, the simulation and template forms the dotted path); pickable narrows the
choices without dropping the rest from the tree; excludeSubtreeOf is the reparent self-guard. A
guard test (LocationSelect.guard.test.ts) fails on a native <select> or a hand-built TreeSelect
over locations anywhere else.
How an entity’s identity reads
Section titled “How an entity’s identity reads”Every entity carries the same identity triad: an id (a uuid, immutable), a name (the
renameable identifier an operator types and the API and CLI address the row by), and an optional
label (a friendly string a human reads). Two of the three are operator-facing.
IdentityCell states the rule once, and identityColumn is the FlatList column every page uses:
- the label is the primary line;
- the name sits beneath it, in the data face;
- the name is suppressed when it equals the label, so the same string never renders twice;
- an id is never a list column.
This is the same two-line treatment TreeList renders, so a tree and a flat list of the same entity
look like the same product. It replaced sixteen hand-written name columns written in four
incompatible idioms, which is why the header word for one fact used to be “Name” on one page and
“Key” on another.
Who chose the label decides the second line. On component, system and location a label
can be one the platform rendered from a label rule
(ADR-0098),
and the row says which through the pen label_generated. So the cell reads three states, not
two: a row with no label shows its name once in the data face; a row an operator labelled shows the
label with the name beneath it; a row the platform labelled shows the label alone, with no second
line.
A pen states itself beside the field it owns, never in a list. The platform’s label used to wear
a Generated chip in the cell. It charged the Name column the width of the word on every
platform-labelled row of every list, to say something an operator could not act on where they were
reading it; and the fleet-wide question it half-answered, which rows a rule edit would rewrite, is
answered whole by <entity> previewLabels rather than one row at a time. The fact is now the
lock on the label field of the edit blade (components/LabelPenField.tsx), the same
affordance the create form carries (components/PenToggle.tsx is the one copy of the button, its
icons and its words), beside the field and next to the act that changes it. That is where the NAME’s
own pen already stated itself, on the component blade.
An inherited field is not a locked one, and does not borrow the lock. The type catalogs’
stem, abbrev and icon inherit from the nearest ancestor that states them, which looks like the
same picture as the pen (a value this row did not choose) and is the opposite relation: a locked
value is one the platform owns and the operator may not set, an inherited one is a value the operator
may set at any moment by typing in the box. components/InheritedField.tsx therefore leaves the lock
alone and carries three affordances of its own. The placeholder carries the value the field would
inherit, which is what a placeholder natively means. The provenance dot
(components/ProvenanceDot.tsx) says the one thing both states have to say at a glance: this value
comes from somewhere that is not this row. And the hint says the one thing neither of those can,
in the one state where neither of them is on screen: while the box holds a value of its own, it says
that emptying it returns the field to inheriting, and names what it would inherit.
All of it comes off the listing the server already sends
(ADR-0115);
no type chain is walked in TypeScript, which is what #695 deleted.
In a FIELD, a mark about a value goes beside the LABEL, not beside the value. The dot is present or absent
and nothing else, and it sits in FieldRow’s label row and KVStacked’s eyebrow, which are the same
slot: a field’s label is in the same position whether the field is being read or edited, and its
value is not. Measured on the real console, a mark beside the value has no right answer: trailing
suits the read state (values all start at the same x, the dot follows the last character) and lands
380px away from the placeholder inside a 407px input, where an in-field action would be; leading
suits the edit state and reads as a bullet list in the read one. The same argument retires any
attempt to encode DEPTH in the mark: a segment-per-rung version measured 8px on a two-rung chain and
28px on a six-rung one, so the least important variable controlled the most expensive one, and three
marks encoding one chain never lined up with each other. Depth belongs in the hover.
The mark is a BLADE and detail affordance. A list shows the value and says nothing about where it
came from. A table is for scanning values; the blade is where a value’s origin is explained. A
reader running down the Stem column is answering “what is this type’s stem”, and a per-row
attribution charges them for a question they did not ask, so a cell states the value and stops: a
stated value and an inherited one render identically in a table, which is the treatment rather
than an omission. components/InheritedCell.tsx is the one copy of the list render, consumed by both
type catalogs’ Stem, Abbrev and Icon columns (#743); it holds one fallback chain, the row’s own
value, else what the server resolved for it, else the em dash. The Icon column, which has shown
resolved_icon undifferentiated since #695, is the precedent the other two match. The em dash stays
for a row that states nothing with nothing above it, since a cell that asserts a value it does not
have is the same defect pointed the other way. The two surfaces still agree about the FACT, which is
the whole of #743: what changed is that the list stopped claiming an inherited value was absent, not
that it started explaining inheritance.
A mark that only a hover reveals is not reachable. The dot’s trigger is a button, so it is a tab
stop that opens on focus, and the fact is written into its accessible name (Stem is inherited from mic) rather than living only in the tooltip.
Thread DATA through a field primitive, never an element. FieldRow and KVStacked take the
ancestor’s NAME and build the mark themselves, which is exactly the shape the (i) affordance already
had (info is a string, not an <InfoTip>). The rule is not stylistic: a JSX.Element in a prop
compiles to a getter, so the element is rebuilt every time anything that getter reads notifies, and a
mark derived from a TanStack query is then replaced under the pointer on every refetch (a hover
half-open, a click landing on an outpost that is no longer mounted). Wrapping the element in a
createMemo looks like the fix and is not, because the memo tracks the derived array a refetch hands
back equal-but-new. A string cannot have this problem: <Show> re-renders on a change of truthiness,
and the name updates in place.
Cut copy that restates a STATE; keep copy that offers an ACTION. When a new affordance lands,
the sentences written before it are not uniformly redundant, and the test is not whether they use the
same words. A sentence that describes what the operator can already see (Inherited from mic. under
a box wearing the provenance dot) is a second telling and comes out. A sentence that describes what
would happen if they did something (Empty inherits from mic. on a box holding its own value, where
there is no dot and no visible placeholder) is the only route to that action and stays, even when it
is the same fact in a different tense. Check the state each sentence actually renders in before
deleting it: InheritedField’s two differed only by which side of one predicate they sat on, and
removing both would have left the console with no way back to inheriting.
The predicates live in lib/entities and nowhere else: labelIsName (which face) and
hasLabel (did a human choose this). The second used to be the string comparison
entityLabel(e) !== e.name, and that was the same question only while a label was only ever
operator-typed; unchanged, a generated label would have put a second identifier line under every row
in the fleet. A third, labelGenerated, retired with the chip that was its only caller: it asked
“is there a rendered label here to mark”, and a field asks “who holds the pen”, which answers
differently for a row whose rule rendered nothing and must still open locked.
One renderer, pinned by a source guard. entityLabel is the only place label || name is
written. one-label-renderer.test.ts scans every non-test source file for a hand-rolled fallback and
for the raw column interpolated into a string, and fails on either outside a short, line-precise
allowlist of rules that are genuinely not this one (a user’s name, which has no name column;
a picker that renders both facts as name (Label)). Both directions are asserted, so an allowlist
entry that stops describing anything fails too. The scan catches what no page test can: a facet
that spelled its haystack `${r.name} ${r.label}` searched the literal text “undefined”
on every unlabelled row.
Three fields, no synonyms. The identifier is the Name, on every column header and every
form. The friendly string is the Label. The id is never labelled because it is never
shown outside a drill-in. “Technical name” and “Segment” are retired as field labels, and
identity-vocabulary-guard.test.ts fails the build on either appearing in label text. Neither of
the two live words is typed on a page at all: a field or a fact that shows one of them says which
fact it is bound to (<BladeField bind="label">) and takes its label from IDENTITY_LABELS
in lib/entities, with label refused alongside bind at the type level. The pairing used to be
checked by a regex over four call forms with an eight-line lookahead, after eleven blades shipped
showing two fields both called “Name”; it is now a type, and what remains of that check is a
backstop for the one failure a type cannot catch, a page bypassing the components and hand-typing
one of the words. The console’s
words are the column names, so an operator reading the UI, the CLI reference, and the schema reads
one vocabulary.
A name is a value; a segment is a position. A segment is one dot-separated component of an
address, so boi.17c.rm215a is three segments and the room’s name is the value in the third,
rm215a. A name is one segment and may not carry a dot; only an address is a path. That makes “segment”
right in prose about topic structure and wrong on a form, where the operator is typing a value and
not choosing a position.
There is one name rule on one character set, and one validator. A name is a kebab token
(boreal, rm215a, icmp-rtt-avg), capped at 100 characters, and it never carries a dot.
Every name goes through storage.ValidateName, which reads the table’s declared identity shape to
settle whether the table bears an operator-typed name at all rather than trusting whoever wrote the
call site. There used to be four separate validators and a caller chose between them by hand, which
is how three tables reached production with no name validation at all; the last split to go was the
dotted keyspace rule, retired with its 128 character ceiling (#586).
One name concept gets one word for it. property_type, event_type, and command_type carry
the same kebab name as every other table and head their column “Name” like every other page.
identityColumn therefore takes no label option at all, and the vocabulary guard scans the source
for anyone passing one, which is the failure mode a per-page test cannot catch.
The write side does differ, page by page. createIdentity derives the name from the label as
an operator types and stops the moment they edit the name by hand, and an edit form seeds it with
the existing name so relabelling can never rewrite a live address. That path belongs to the
catalogs, whose names have no generator and stay globally unique.
The three fleet entities do not wire it. A component, a system, and a location get their names
from the platform, minted from the resolved type stem and the placement bucket, so deriving a name
from whatever prose an operator typed would claim the pen on their behalf the moment they typed a
label. Their create forms ask what and where first, then show the name the row will actually get
(display-3, drafted by the server), and leave the name field empty to mean “the platform names this
one”; the drafted NAME travels back with the create as expected_name, so a name that moved between
the preview and the submit, because another create took the number or the type’s stem was edited, is
a refusal rather than a silent difference. The three
signal catalogs (property_type, event_type, command_type) do not wire it either, because a
signal name is chosen to match what an endpoint reports rather than derived from prose somebody
typed, and that was as true when those names carried dots as it is now they are single tokens. tag, variable, and secret
invite an exception because their prose calls them keys; they get none, and take the one rule like
everything else.
A Save that changed the name is two calls, not one. The update goes first and the :rename
custom method goes last, because the rename is separately gated by <resource>:rename and is the
one call that can be refused on its own. Last means a refusal leaves the rest of the edit saved and
the name unchanged, rather than the reverse. On success the page navigates to the entity’s new
address, since the old one no longer resolves (ADR-0076).
Typefaces
Section titled “Typefaces”Two families: IBM Plex Sans for UI text and JetBrains Mono for data, IDs, and counts, named
by --og-font-ui and --og-font-data in web/src/app.css. Both are self-hosted. The console
loads no stylesheet and preconnects to no host off its own origin, because a console that needs a
third party to render is a console that renders wrong on the closed campus and AV networks this
product is deployed into (ADR-0121).
The data face renders without ligatures: the .font-data rule in app.css sets
font-variant-ligatures: none, once, for every code and expression rendering. JetBrains Mono’s
ligatures would draw != as ≠, == as one long bar and >= as ≥, and the console shows
expressions so an operator can read them back and type them: a criterion that displays a glyph
no keyboard has teaches the wrong syntax, and == drawn as one bar is easy to misread as =.
A surface that renders code wears font-data and inherits this; it does not opt out site by site.
The files are vendored under web/public/fonts/, which Vite copies verbatim into the build that
internal/webui/spa_embed.go compiles into the binary, so the faces ship inside the one artifact and
are served from it (font/woff2 stated by the handler, since the runtime images carry no mime
database). web/src/fonts.css declares them and is generated, never hand-edited:
node web/scripts/vendor-fonts.mjs # re-vendor after changing a weight or a familyThree properties are load-bearing, and each is pinned by a test
(web/src/font-hosting-guard.test.ts, web/src/fontguard.test.ts):
- Every script Google served is vendored (latin, latin-ext, cyrillic, cyrillic-ext, greek,
vietnamese: 54 files, 1,005,028 bytes), so an operator-supplied string in any of them renders
exactly as it did before.
unicode-rangekeeps the split, so a latin page still fetches only the latin file. A codepoint no block covers (CJK, Arabic, Hebrew) falls through to the next family in the stack and renders in the platform UI face, which is what already happened: these families carry no such glyphs at any source. font-display: block, notswap. Same-origin and embedded, so the block period costs nothing measurable, and block is the only value that cannot paint fallback metrics.optionalwould be worse than the bug it fixes: it may keep the fallback for the life of the page.- The docs capture refuses to photograph the wrong face.
web/e2e/fontguard.mjsasserts, per shot, that every declared face exists and that both families actually rendered from their own files, and aborts the capture otherwise.
Build and embed
Section titled “Build and embed”The SPA builds with Vite (pnpm run build, into internal/webui/dist) and is embedded into the
Go binary under the web build tag, served at /web. One artifact serves the API and the
console. In dev, pnpm run dev serves the SPA on :5173 with /api proxied to a running
lab, so the frontend loop needs no rebuild: ./bin/omniglass lab run in one terminal, cd web && pnpm run dev in another. The proxy targets http://127.0.0.1:8080
(IPv4 loopback, not localhost, which Outpost may resolve to ::1 while the lab publishes on IPv4 only),
and OMNIGLASS_LAB_URL moves it for a lab on another --port.
Component-level tests (Vitest + @solidjs/testing-library) cover the interactive widgets and the
pure list/filter logic (lib/predicate, lib/listmodel, FilterBar, the data layers). The
browser-driven e2e tier is make test-e2e (web/e2e/run.sh): it builds the lab (make),
brings up a throwaway lab of the empty scenario, and runs Playwright against its real login
form and console, driving the surfaces as a user would per the
test-first doctrine.
How this relates to the UI architecture
Section titled “How this relates to the UI architecture”This page is the build and dev guide for the console: the stack, the generated client, the
ListShell and its primitives, and the build-and-embed pipeline. The architecture (the
information architecture, the read-side BFF, the live-update model) is UI in
the architecture section. Build mechanics live here; the model lives there.