f/hold docs

Admin interface standards

Admin is a productive desktop utility, not a marketing site or an enterprise identity console. Its screens should feel like one application. Apply these rules to the entire screen and to empty, busy, disabled, error and success states.

Standards and scope

One visual source

design-tokens.css owns the palette, typography, spacing, control height, corners and motion. The existing admin.css owns components and page composition. Do not add a parallel token JSON, theme service, component runtime, icon package or per-screen palette. Instrument Sans and its OFL license ship locally; there is no remote font dependency.

Role Treatment
Page identity 28px / 600, one visible primary heading
Section 16px / 600; dialog or model emphasis may use 20px
Body and actions 14px / 400 or 500, 1.5 line height
Field label and helper 13px, label 500, helper 400
Metadata 12px; never use it for the main instruction
Spacing 4, 8, 12, 16, 24, 32, 48, 64px relationship scale
Corners 4px controls, 8px modal/editor surfaces; no decorative capsules
Color Neutral graphite surfaces; green for the main action and positive state
Icons 16px / 1.5px outline, optional and subordinate to a text label

Use type size, proximity and alignment together. Do not simulate hierarchy with many near-identical font sizes, very heavy text, random green panels or nested card outlines. Paths and exact model/image IDs may use monospace; ordinary instructions and editable prose do not.

Components

Component Rule
Button Primary for the main action; outlined secondary or padded ghost for supporting actions. Related actions share size and 8px spacing. Never render adjacent action words with no hit-area padding.
Field Persistent visible label, full-width control within its form, helper below, common height with its adjacent button. A placeholder is not a label.
Checkbox/radio 16px native mark and a generous clickable label. Never turn ordinary options into oversized colored switches or policy cards.
Navigation Same icon/text alignment and neutral selected surface; aria-current identifies the active page. The agent picker has no brand mark or path.
Disclosure Explicit chevron, consistent hit area and open/hover/focus states. Apps/System are separator-based inventories, not stacks of independent cards. Nested advanced settings use the same smaller disclosure component.
Status Concise text, optionally a small decorative dot. Running is not authenticated or paired. Color alone never carries meaning.
Feedback Shared bordered notice/callout, contextual error and next action. Keep pending restart in the sidebar and preserve explicit restart confirmation.
Dialog Named native dialog, bounded width/height, ordinary form components and separated footer. Cancel precedes the final primary action. Escape and native focus containment remain available.
Data row Align service / observed image / status on desktop; wrap metadata under identity at narrow sizes. Never substitute desired state for observed state.
Provider choice Compact name/description list control, not a repeated promotional tile. Choosing a service must not change the active model.

Hover may clarify the surface but must not reveal an otherwise unavailable action. Keyboard focus uses one neutral, high-contrast ring, not a permanent colored border. Required input boundaries and focus indicators meet 3:1; normal text and placeholders meet 4.5:1. Disabled controls retain explanatory context; active work must never appear completed optimistically.

Screen composition

Every selected instance uses the same four pages: Overview, Agent settings, Apps and System. Hosting providers never replace the navigation or page layout. The renderer maps the selected snapshot into one presentation contract; it does not branch on provider names. A missing management capability disables the existing section's native fieldset and explains why immediately above it. The disclosure remains usable so users can discover the feature and its limitation. Unavailable does not mean unconfigured, disabled at runtime, or signed out. Never carry a previous instance's credentials, settings or readiness into an uninspectable target. Lifecycle and image-update buttons remain in their ordinary positions, disabled with a reason when unsupported. A platform status is not native-agent readiness. Logs and installation details remain under System, not on a separate cloud page.

At small widths, reduce margins and change composition before shrinking text. Do not resize the app window, hide required actions, truncate error guidance or fix widths that force horizontal document scrolling. Reduced motion suppresses non-essential animation; it does not hide busy or focus states.

Verification

The real Chromium walkthrough in admin-providers-browser.test.ts renders the actual modules/CSS, records screenshots and axe findings, traverses controls with native keyboard events, and checks the four management pages at 320, 360, 375, 414, 480, 640, 768, 1024, 1280 and 1440px. It also covers individual Apps, System disclosures, provider states, first-use/recents/discovery, Settings, new/import and native dialogs. Representative states use 200% text size.

admin-static.test.ts checks the token/contrast contract and existing behavior. Review screenshots as well as automated results: a clean accessibility scan does not establish good visual hierarchy or successful live management. IPC is synthetic in this walkthrough; native AppImage startup and real SSH/Azure/provider readiness are separate qualifications. Build and smoke the final AppImage, and keep its exact commit identity with the rendered evidence.