The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
BoxLite console
The web console at app.boxlite.ai. A Vite + React app, built and tested
through Nx as the dashboard project.
From apps/, npm run start:dev starts the local console at
http://localhost:3000 and proxies /api to the dev control plane. An unset or
empty VITE_BASE_API_URL uses the current origin's /api prefix.
Create Box sizing
New Box presents six named presets from 0.125 to 4 vCPU, retaining the existing 1 vCPU / 1 GiB / 10 GiB default. Sub-core presets pair CPU and memory at 1:2 (0.125/0.25, 0.25/0.5, 0.5/1), with 10 GiB disk; the names identify configurations, not guaranteed workload suitability. Each card shows its effective organization-capped configuration and complete hourly estimate from the existing usage-price query. Adjusted cards are labelled before selection; unavailable rates are never presented as a free quote.
Larger or custom box opens the inline resource editor, scrolls it into view, and focuses CPU. It retains three-decimal CPU input. Its +/- controls move between 0.125, 0.25, 0.5, 1, 2, 4, 8 and 16 vCPU, respecting a lower organization ceiling. CPU, memory and disk show separate estimated contributions, with the total beside Create Box. The fixed total includes a Price breakdown button that opens the CPU, memory and disk calculation above the footer, without scrolling through the form. The panel follows the current configuration and supports Escape to return to its trigger. A valid Custom draft survives preset comparisons within the open dialog and is clamped to current limits when restored. Closing or changing organization clears that saved draft. Creation still uses the existing REST mutation and server validation.
Browse images is the visible catalog action beside the editable image reference. The Image suggestions menu tracks the entire input's width, including after dialog resizing. Long references wrap within the menu; an overflowing selected reference is also shown in full below the editable input. Neither presentation changes the image reference sent to the API.
Volumes and Lifecycle are directly visible sections, without an Advanced disclosure. Their existing defaults, validation and submission behavior are unchanged.
Subscription value when creating a Box
The price footer compares the selected CPU, memory and disk configuration with subscription included usage. The published PAYG estimate stays primary for all users, including subscribers. A muted supplementary line expresses the percentage lower effective hourly cost within included usage (75% for a fourfold quota ratio). The summary says "with a subscription", without implying the benefit is exclusive to Starter. Price breakdown keeps a concise allowance assumption and PAYG overage explanation, without repeating plan-specific monthly pricing or an effective dollar estimate. The ratio is the catalog monthly price divided by included usage value, shared with Billing Plans; it never uses the wallet purchase multiplier.
The price breakdown retains published per-resource consumption and explains that the estimate assumes the full monthly allowance is used. It is not an invoice or historical paid-price calculation. Remaining quota is consumed at published rates; ordinary wallet funding uses those same rates after quota is exhausted. Trials, expired cycles, unmatched/custom plans, quota mismatches and read errors do not produce a paid-benefit claim. Converted trials and scheduled cancellations retain paid benefits while otherwise eligible. Organization placeholder data is ignored.
PAYG recommendations use the same documented numeric Box limits as the Billing benefits table. Unknown tiers or configurations beyond those limits do not get a plan-specific quote. View plans opens a separate tab, preserving the mounted create draft without storing environment variables or triggering payment or creation.
App hosting
See the UI walkthrough and screenshots for the current mock experience.
Every organization sees Applications → Applet. The App list and the early access
page both use Applet as their title. If the organization lacks read:apps,
both the menu and direct App links open the early access page.
Select Get early access to ask the BoxLite team to contact you at your
account email. Backoffice grants access separately.
Members with effective read:apps go directly to the App list or the linked App
and environment. In an invited organization, members who lack App read permission
see a prompt to contact their organization administrator.
Creating and editing Apps requires effective write:apps. Deleting an entire
App requires effective delete:apps. API key creation offers the App scopes
enabled for the organization that the current member can grant.
In mock mode, /dashboard/apps?appHosting=enabled opens the sample Apps list
directly. Use ?appHosting=restricted to try the early access request. With
VITE_MOCK_MULTIPLE_ORGANIZATIONS=true, select Research Collective to try
the request flow for an uninvited organization.
App hosting uses the Console's shared resource headings, buttons and type scale. UI text uses Inter; code, URLs, paths and technical values use Commit Mono. Applications appear in a responsive card grid. Each card opens its detail page; the open-app and menu actions are independent. Screenshots use a neutral app BoxLite illustration until loaded, including when the preview request fails. App names identify applications; their platform address is assigned automatically using an environment identifier, not the app name. Mock addresses also use generated IDs. Detail actions use shared Console buttons, and secondary screens use keyboard-accessible segmented tabs. App detail spacing uses a single 16px rhythm between identity, primary navigation and content; tab wrappers add no extra vertical margins. The early-access illustration follows the idea → code → hosted app flow in a 4.8-second entrance sequence, then settles. Undeployed cards show an unassembled outline Box and draft window, distinct from the filled cloud-app illustration used when a deployed app has no screenshot. Card illustrations occupy the central 64% of the preview area, leaving a quiet margin around the artwork; actual screenshots fill the preview area. Card placeholders stay static; reduced-motion preferences disable the sequence. The early access page reuses the agent handoff logos to show compatible coding agents below the product description.
Applet appears immediately after CI in Applications. It uses the same OIDC session,
organization switcher and resource permissions. Its management requests go to
/api/v1/{organizationId}/apps through the shared ApiClient; the App detail
projection is GET /apps/{appId}/view within that organization namespace.
Deployments, environments, services, authentication, database, volumes,
variables and logs remain within the selected organization and environment.
The Apps list, App details and environment list show the URL after the environment's first healthy deployment. The BoxLite preview URL uses none of the organization's platform-domain allowance. To attach a name the organization holds, open the environment's Domains tab and choose Bind domain.
Deleting an active App moves it to Recently deleted for seven days. Choose Restore to bring it back, or Delete beside Restore to remove it permanently before the retention period ends. Enter the App name to confirm. Permanent deletion removes the App's Boxes, volumes, database project and stored source. Its name becomes available again when cleanup finishes.
The App overview gives your coding agent the organization URL, App name and
environment. Install the BoxLite CLI. Run the boxlite auth login command in the
instructions to sign in with your account or an organization key. Then run
boxlite app init --app <name> --env <environment> in the project directory.
To create an organization key for deployments, open API Keys → New API key →
Adjust permissions and select Apps read and write access.
App query keys include the organization. Switching organizations resets open forms and takes the user back from App details to the App list. Mutations retain their originating organization and environment, so a late response refreshes only that scope. Source archives, exports and previews use the platform bearer, and opening a private App uses a one-time browser ticket. No separate console login, cookie client or production mock backend is required.
New-account email policy
First-account verification is enabled by the API's TURNSTILE_SITEKEY. Without
public turnstile settings, the console loads business providers directly and the
API keeps automatic local registration.
With verification enabled, the console checks GET /users/me after OIDC sign-in,
before loading organizations or connecting notifications. A registration_required
response opens the first-account verification screen at the current URL. Turnstile
produces a single-use challenge;
POST /auth/register validates it on the server before creating the local account.
Existing accounts enter the console without a challenge. Email ownership verification
remains in the Auth0 login Action.
The console reads the public widget sitekey and signup action from /config.
Failed or expired challenges are discarded. A lost registration response triggers
another user check before a new challenge is requested. Service failures allow
retry or sign-out without restarting the Auth0 login flow.
Account creation requests time out after 30 seconds; account checks and verification script loading time out after 10 seconds. A timed-out creation request follows the same account check as a lost response, without automatically resending the token. Failed script loads release their shared loader so verification can be retried.
With verification enabled, each newly mounted identity must pass a fresh account
check, even when user data is cached. Once admitted, the console stays mounted
during background revalidation and transient failures, preserving open terminals.
An explicit registration_required
or email rejection still blocks access and shows the relevant recovery screen.
When the API rejects account creation with disposable_email, email_required,
or invalid_email, the console explains the email problem and offers
Sign out and use another email. These responses do not restart authentication
or offer a retry with the same identity. The explicit action uses the account-switch flow to clear the Console identity
and ask the identity provider to select an account.
Other authorization failures keep their existing error handling.
Registration and setup entry
See the interaction walkthrough and screenshots.
Verification and organization preparation share the Welcome header, neutral surfaces, and visible status text. The explicit Create account action submits the challenge; Turnstile uses the application theme and a flexible width. Account confirmation and read failures retain the setup context, with retry and an alternate-account exit.
The Dashboard/Boxes entry resolves owner eligibility and account resource signals before mounting the Console shell. New owners with no keys or Boxes enter Welcome; existing accounts enter Boxes. Explicit resource deep links retain their destination. Decision read failures remain in setup with retry. Admitted views are preserved during background refresh; decisions are scoped to identity and organization. Local dismissal still uses the existing policy. Cross-browser completion remains a separate server contract and is not inferred from a saved use case.
Product analytics preferences
The Welcome organization form offers an optional PostHog analytics checkbox next to the Terms of Service and Privacy Policy acknowledgment. A user without an existing grant can leave it unchecked and continue. Checking it saves the account's grant and locks the Welcome checkbox. To withdraw consent, use Privacy Preferences in Settings. Collection starts after an explicit grant. Earlier visits and interactions are discarded.
Open Org → Management → Settings → Privacy Preferences at /dashboard/settings?tab=settings to change Product analytics. Each choice covers the signed-in account and organizations it created. A member’s interaction also requires the organization creator’s grant. The Console submits route templates and recognized control actions to the Cloud API. Raw URLs, referral parameters, terminal contents and control text are excluded. Functional feature flags remain available for every choice.
Console analytics sends up to two requests at once and holds up to 16 additional events in memory during rapid interaction. Each queued event keeps its original page and occurrence time. A full queue drops new events. A consent change, an account or organization switch, or leaving the Console clears unsent events.
The Dashboard uses the last confirmed consent while a preference is saving. If the save fails, the preference control shows an error. Once the API confirms a withdrawal, collection stops across the account’s organizations in the Console.
See the Settings switch.
Managed checkpoints
Boxes → Checkpoints lists reusable disk archives captured from eligible stopped Boxes. The inventory shows Name, ID, Source Box, Status, Archive size, Created and Actions. A successful identity lookup distinguishes deleted sources from lookup failures. Saved disk capacity is not returned by the API and has no placeholder column.
New Checkpoint uses the shared form dialog and themed Source Box selector. Sources must be stopped with matching desired state, without pending transitions, mounted volumes or attached secrets. Server admission refusals remain in the dialog. Names are optional; invalid names show their accepted format beside the field.
Ready checkpoints enable New Box. Restoration inherits saved execution settings; success identifies the created Box in a toast and keeps the inventory open. Deletion requires the exact checkpoint name; refusals retain the draft and deleting records permit cleanup retries. Capture, restoration and deletion require Box-write permission; read-only members retain inspection. Queries and dialogs stay scoped to the selected organization, so old results cannot affect a new selection. API, SDK and CLI recovery remain separate. The mock preview supports capture, restoration and deletion. See Checkpoint controls and recovery for request states.
Managed volumes
Volumes → New Volume selects Standard storage by default in the shared themed selector. Performance storage
is labeled Performance (Low-Latency IO) · Contact to apply and offered only when the API advertises filestore_enabled;
unsupported deployments keep the option disabled. The API assigns the underlying Filestore instance. Creation and
Box failures retain the server reason plus non-sensitive HTTP status, error code and Box ID when available.
SSH access
Connect via SSH, beside start/stop, opens a static local-terminal guide. Opening, closing and copying commands make no SSH or network changes. The guide uses the shared compact dialog and square code surfaces, with sans-serif interface text and monospace commands; its header stays fixed while the body scrolls. The overview remains mounted throughout. Copy actions sit beside step headings rather than in repeated code headers. The desktop dialog is 760px wide with compact spacing; shorter windows scroll only the body, keeping the title and close control visible.
Connection steps
- Install or update the CLI with the displayed installer.
- Run
boxlite auth login, select the API-key method and enter a key for the selected organization interactively, not in a copied command. - Start the Box and enable Inbound access in its existing Network section.
Run
boxlite ssh <box-id>to enter a shell directly. No second SSH command is needed. Connecting requires Box-write permission and localsshandssh-keygen.
This guide targets the direct-login CLI contract. An older CLI that only prints a
connection command must be updated. The CLI manages Ed25519 keys under
<BOXLITE_HOME>/ssh/remote/<scope>/<box-id>/, scoped by CLI home, context, endpoint
and organization. Healthy matching configurations are reused without replacement;
disabled saved SSH is enabled. A different host identity fails rather than being
silently overwritten. The first managed configuration can replace previous SSH
accounts and host identity and disconnect existing clients. Previously downloaded
browser keys are not imported.
OpenSSH is launched with a CLI-managed known-hosts file and strict host-key checking. Users do not copy a printed SSH command or manually accept a fingerprint.
The Dashboard no longer generates/downloads private keys, asks for a key-file path, stores SSH path preferences, or offers a configuration-reset flow. The guide is readable regardless of live SSH status; it does not claim to detect CLI installation, login, successful setup or a completed connection.
Commands are deliberately short: the CLI default endpoint is the hosted API,
https://api.boxlite.ai, and successful login caches the organization's routing
prefix. Bare login writes the selected CLI context; the guide does not isolate
existing CLI state or override exported BOXLITE_* variables. Its muted docs line
points users working with other organizations or an existing CLI setup to the
SSH guide. The browser does not
detect these cases. Box IDs are validated before inclusion in commands.
Dashboard does not duplicate the CLI's identity-file paths, known-hosts handling
or system OpenSSH invocation. Default login does not edit ~/.ssh/config.
Saved access and status
The Network section's SSH switch still only enables/disables saved configuration;
it never generates credentials or changes inbound. Missing configuration directs
users to CLI setup. Only running Boxes with WRITE_BOXES can be toggled; unknown
status cannot be toggled. Read-only members can inspect status and static guidance.
Status refreshes on demand, focus and every 30 seconds while visible and idle. Reads defer during mutations; stale responses after lifecycle, permission, account, endpoint or organization changes are ignored. Mutations are not retried automatically. The guide contains no preparation or network action buttons.
Direct cloud login opens a public tunnel protected by SSH authentication and
requires server tunnel support and inbound access. Exiting SSH closes local
forwarding but leaves the public tunnel declaration open; revoke it with
boxlite network tunnel BOX PORT --revoke using the same context and organization.
The MSW preview exercises the actual guide and sidebar state, not a local CLI,
SSH server or live cloud handshake. Focused checks:
make test:apps:dashboard FILTER=SSH.
Box overview and terminal
Each Box has two pages, linked by Overview and Terminal. The existing
/dashboard/boxes/:boxId URL opens Overview; /terminal opens the dedicated
shell page. The current destination is marked for assistive technology.
Both routes keep the shared identity, lifecycle actions, SSH controls and navigation stable. CPU, memory and disk appear inside Overview and describe provisioned capacity. Configuration, optional mounted Volumes and Network use compact aligned fields. Long technical values wrap within their fields. Terminal does not fetch Overview catalogs.
Terminal uses the available content height. Its toolbar includes the themed text-size selector, Clear terminal, Scroll to bottom, Maximize and Restore controls. Sizes are 12, 13, 14 and 16px; resizing and maximizing preserve the mounted shell buffer. Covered application controls become inert while maximized. Escape remains terminal input. The shared header provides Start to authorized members when the Box state permits it. See Terminal viewport controls for font and restoration behavior.
Only an explicit execution-exit frame reports Session ended. A dropped socket reports Connection lost, and connection establishment times out after 30 seconds. Failed attempts request shell deletion, including shells whose start finishes after timeout or unmount. Cleanup is best-effort if the API refuses it. Reconnect starts a fresh shell. Leaving Terminal for Overview ends its shell; returning starts another one.
Container resize notifications coalesce into one animation-frame measurement, skip hidden containers, and send only changed character dimensions. Font readiness also schedules a fit. These checks bound layout work; they do not establish producer backpressure or a throughput benchmark.
Run make test:apps:dashboard FILTER=Box for box page, session,
and lifecycle checks. The local UI preview may use a simulated transport and
does not prove live guest-shell connectivity.
ASCII action buttons
Use AsciiButton from components/ascii for console actions. It delegates to
ui/button, which owns the shared geometry, typography, focus, and disabled
styles; raw buttons remain appropriate for tabs and custom choices. Use native
links for route navigation.
| Purpose | Variant / size | Appearance |
|---|---|---|
| Main create or submit action | primary / default |
36px high, monochrome fill |
| Row action | quiet / sm |
28px high, neutral hover |
| Icon action or overflow menu | quiet / icon |
28px square; icon-lg is 40px for mobile |
| Destructive row action | quiet-danger / sm or icon |
Red text/icon, subtle hover |
| Final destructive confirmation | dangerSolid |
Solid red |
Keep square corners and the shared sans-serif interface font. Secondary actions use neutral
borders and surfaces; persistent open and selected states remain stronger than hover.
Hover styles apply only to enabled controls. Keyboard focus uses a contrasting
outline in both themes. Preserve larger mobile primary targets with h-11 sm:h-9.
Import operation icons from components/ui/icon, whose aliases all use the
bundled Lucide outline collection with a default 1.3px stroke. Give icon-only actions an aria-label, retain helpful
titles, and forward native props/ref through wrappers used by Radix triggers.
Choose variants and sizes instead of copying hover, padding, or border classes.
Page width and alignment
Normal dashboard pages use the page-container class from src/index.css.
It follows the Images page's full-width layout, with no maximum page width:
16px side padding on phones, 24px from sm, and 40px from lg. Large screens
keep the same side padding as the content expands to fill the available width.
The root reserves scrollbar space so short and long pages share both content edges.
When stable gutters are supported, modal scroll locks do not add another body
margin for that same space. Browsers without support retain the lock's fallback.
Apply it once to a page root, or use PageHeader and PageContent, which share
the same rule. Keep banners, tabs, tables, and Quickstart panels aligned to
those edges; do not add another page-level width or horizontal padding inside
them. Individual inputs and explanatory text can retain readable width limits.
The initial welcome form, dialogs, and dedicated fullscreen terminal have their
own sizing because they are separate surfaces.
SDK and CLI quickstart readability
The walkthrough uses a dedicated quickstart-code type style: 14px monospaced
text, 24px line height, normal letter spacing and preserved indentation. The
10px tracked label style is reserved for labels. Code panes scroll horizontally
instead of wrapping commands; longer sections show up to 420px before scrolling.
File and local-terminal headers keep copy actions separate from the code.
Installation commands use the package manager's current release without fixed
version numbers. Python uses --upgrade to update existing installations. Rust
uses a quoted wildcard requirement followed by cargo update -p boxlite to
replace older dependency constraints and refresh an existing lockfile,
and the example supplies the current tunnel API's TunnelOptions. The
C SDK command requires curl, jq and tar, and selects the first stable release
with a matching platform archive among GitHub's 100 most recent releases,
ordered by publication time. A
new release without its C archive is skipped; no match stops the download.
Extraction completes in a temporary directory before replacing boxlite-c-sdk.
Failed extraction preserves the previous SDK. A failed or interrupted
replacement restores it when possible. If restoration fails, the previous SDK
is retained in the staging directory and its path is printed to stderr.
Displayed and copied
commands both come from src/lib/quickstart/interfaces.json.
Quickstart catalog
Coder Universal is no longer offered as a quickstart template. Its preset
requested 30 GB of disk, which exceeds a 10 GB per-box disk ceiling. Removing
the preset avoids offering a configuration those organizations cannot create;
its disk request has not been reduced without runtime validation. Existing
boxes and custom-image support are unaffected. Old ?template=coder links use
the picker's existing unknown-template fallback and select Python.
Region names
The console resolves shared-region names through GET /api/shared-regions.
An unknown region keeps its stored ID as the display fallback. Region names do
not depend on the selected organization, so switching organizations does not
refetch this list.
Billing plans
Billing separates account status in Overview from the grouped Plans comparison. See subscription plans for source facts, frontend presentation, catalogue-price checks and the local mock preview.
When an owner confirms an upgrade without a saved card, returning to Billing in the same tab continues the selected subscription automatically. The confirmation lasts 30 minutes and belongs to the signed-in owner and organization. Billing reads the wallet again on return. If the card is still missing, Billing checks twice more at one-second intervals, then ends the attempt. Once the card is visible, Billing checks the current plan before submitting. The bank may still ask the owner to authenticate the payment. Add payment method saves a card independently.
Card status is organization-wide. A card added concurrently by another owner can satisfy the check. Closing the tab ends the handoff.
The before and after views show Billing after the same simulated card setup.
Commands
Run these from apps/:
| Command | What it does |
|---|---|
yarn nx run dashboard:dev |
Dev server on :3000, proxying /api to http://localhost:3001 |
yarn nx run dashboard:build |
Production build, with a typecheck pass |
yarn nx run dashboard:test |
Vitest suite |
yarn nx run dashboard:test --coverage |
Same, writing lcov to target/coverage/dashboard |
npm run start:mock (from apps/) serves the console against the MSW handlers
in src/mocks, with no backend and no login. Its VITE_BASE_API_URL must end in
/api: ConfigProvider appends routes to that base directly, while the
handlers are mounted under VITE_API_URL. When the two disagree, /config
goes unanswered and the console never leaves its loading screen.
The Apps preview includes a live demo-shop and a draft starter. Create an App
or open its detail tabs to explore it. Deleting an App moves it to Recently
deleted. Choose Restore there or Undo in the notification to bring it
back, or choose Delete to permanently remove it from the current preview.
Reloading the preview resets the sample data. Runtime operations require
the Cloud Apps API.
The image catalog mock answers the way the API does, so the console can be
judged against real refusals rather than happy paths: a tenant image is listed
under the name its reference normalises to (python is
docker.io/library/python, the rule src/lib/image-ref.ts mirrors), removing
one is refused with 409 while any box not destroyed still references it, and
the 409 names those boxes by id, not by name. Pinning a tag refuses OCI-invalid
names and any existing name, even one bound to the same version, and an unpin
writes no history event.
Registry credentials and box creation are mocked on the same terms. A
credential is unique per registry and repository prefix, and removing one is
refused while a box pulls through it. A box created from the console shows a
first pull for a few seconds, then starts; reaching STARTED is what adds its
image to the catalog, as the API's registrar does. localStorage ['registries-unsupported'] = '1' answers the credential list with 501, as a
deploy without a secret store does.
DASHBOARD_API_PROXY_TARGET points the dev server at a remote API
(https://dev.boxlite.ai) through the same-origin proxy, so the browser never
makes a CORS-gated request.
The test target is inferred by @nx/vite from the test block in
vite.config.mts. Removing that block removes the target, and with it every
signal CI has about this app — see the workflows
README for how its coverage is reported.
Creation can finish before startup
Template creation and the ordinary create dialog share useCreateBoxMutation.
The Box API creates the resource before waiting up to 30 seconds for it to
start. A cold image pull can exceed that wait while continuing in the background.
When HTTP 408 carries boxId, the dashboard reads that exact Box in the selected
organization and opens its details. The details page polls transitioning Boxes
every three seconds and displays their actual state, including startup errors.
This path sends only one create request. It does not infer success from a name
or an error message. A timeout without boxId, another error status, or a failed
follow-up read remains an error. Deploy both API and dashboard changes for this
handoff; older APIs do not include the structured identity.
Finding your way around
Navigation is the sidebar plus the tables. There is one route per resource, and each resource's table is the place you act on it — filter, sort, select, and run per-row or bulk actions from there.
Search and actions belong to their resource tables. The console has no command palette duplicating those controls.
Wallet history
Invoices and credit activity use separate, paginated tabs.
Card setup and promo redemption share one billing flow
Wallet and Welcome use the same card setup operation: open a tab, request the organization's Checkout URL, and navigate to Stripe. Returning to Welcome or choosing Check card status refreshes the wallet and saved payment methods. A connected card allows the user to continue without waiting for reward delivery. Both entry points tell the user that adding a card places a temporary $0.50 verification hold: Welcome below Verify card, Wallet in the last row of the Payment Method panel, next to Add payment method.
Managing saved cards
The Wallet's Payment Method panel lists every saved card. The default card is
listed first with a Default badge and has no actions; the other cards keep
the API's order. Each other card has a ⋯ menu with Set as default and
Remove; removal asks for confirmation first. The last row of the panel holds
Add payment method, which runs the card setup flow above. A newly added
card becomes the default.
Renewals and top-ups always need a default card, so the panel offers no way to remove it; the billing API itself would accept the removal. With one saved card, that card is the default, so it cannot be removed either.
Both actions go through useSetDefaultPaymentMethodMutation and
useRemovePaymentMethodMutation. Success refreshes the payment methods, wallet
and plan queries, and the list itself shows the result, so there is no success
toast. Failure shows an error toast and leaves the list as it was. Both
endpoints are idempotent, so the menu does not lock while a request runs.
The mock preview keeps its saved cards in memory, so both actions work there
until the page reloads.
Codes entered independently on either page redeem through useRedeemCouponMutation. Success invalidates
wallet, transactions, invoices, plan, and usage so the next view reflects the
server's result. Welcome shows the returned message and offers Quickstart;
Explore with BoxLite is available without a card or coupon.
Coupon links
Share https://<console>/redeem?code=CODE to hand out a coupon. The /redeem
route opens /dashboard/billing?tab=wallet&code=CODE. Signed-out visitors sign
in first, and the sign-in return path keeps the query.
Wallet submits a reward claim when the signed-in user has a verified email and owns their only organization. An owner with multiple organizations can switch organizations from Wallet and confirm the claim there. The link keeps its coupon code across the switch. If Wallet cannot verify membership, use Retry verification. Codes entered under Have a coupon code? redeem independently.
When Commerce accepts the claim, Wallet clears code from the URL and prompts
the user to add a card. An organization with a card on file can proceed directly
to processing. Reopening Wallet in the same tab checks pending claims for the
active account and organization using their original event IDs. Coupon codes
with different capitalization or surrounding spaces share an event ID.
An unconfirmed claim can be retried. A rejection at submission keeps the code
available for another attempt. Once Commerce records a failed or skipped outcome,
Wallet closes the claim form and shows the failure. For example, a coupon can
expire or reach its redemption limit while the organization waits to add a card.
In the mock preview, ACME50 returns a pending claim and an unknown code returns
coupon_not_found.
A choice says what it does, and shows which one is picked
The quickstart offers two paths, so each card names its outcome ("Build an app
online — get a public URL" against "Run untrusted code — an isolated box") and
the picked one is drawn, not merely implied. The prompt it hands out carries the
endpoint the reader will actually use: getRestApiUrl resolves production's
origin even when the console itself is running against a mock, because the
prompt is pasted into someone's shell, not into this app.
Selection follows the action, not the row count
A table's checkbox column exists to arm a bulk action, so a row that no bulk
action can touch is not selectable. VolumeTable is the worked example: delete
is its only bulk action, so enableRowSelection asks
isVolumeDeletable(row.original) and the checkbox renders disabled for volumes
already deleted or on their way out.
Gating only the count instead — leaving the row selectable and filtering later — produces a toast that offers "Delete 0" and a confirmation for "these 0 selected volumes". If a new bulk action arrives with a different eligibility rule, the predicate becomes the union of them; it must never go back to a bare boolean.
Empty-state presentation
Resource inventories retain their page header and toolbar when empty. Creation stays in the toolbar under its existing permission guard; guidance explains the next step. Search misses offer Clear filter. Loading and failed requests use distinct shared states. Refresh failures preserve cached data and expose Retry. See Resource request feedback and Contextual documentation links.
Private registries belong to Images
Someone who needs a private image is already on the Images page, so the
credentials that let a Box pull one are its second child destination.
That is also how the API nests them (/api/images/registries). Each destination has its
own route, /dashboard/images and /dashboard/images/registries, so a box's
pull error can link straight to the second; the old /dashboard/registries
redirects there. The static registries segment is routed before :idOrRef,
as the API orders its routes, or it would read as an image named "registries".
A list with no create says how its rows arrive
The API has no create for an image: one enters the catalog when a box first starts from it. So the Images page has no "New image" button, which would promise a registration step that does not exist. Each destination has a description below its title. Private registries provides credential setup with one toolbar Connect action, including an empty list. Images has no independent New box action; use Boxes to start from a new reference, or a catalog row action to prefill its image. Quota information shows custom-image count and total image size separately. “How to add an image” opens the task-specific Use your own image guide. Feature descriptions carry definitions, and empty states give a brief next action. The list and usage refresh on mount and every 30 seconds in the foreground, since image registration may finish after the Box startup notification. Quickstart remains readable without Box write permission; its console creation button is disabled with an explanation, and the creation handler checks permission. Unavailable membership is distinguished from denied permission and offers a full-page reload to retry the provider fetch without racing an organization switch. Recovery preserves the console method, template and Box name in the Quickstart URL; generated credentials stay ephemeral, and restored names retain validation.
Images lists only rows returned by the image catalog API: the organization's registered images and the operator-configured system images. Quickstart's public templates are recommendations and do not add rows, search results, or counts to Images. An empty or failed catalog response must not insert templates as a fallback. A template image appears here once the API returns it as an organization or system image.
For members allowed to create boxes, every row offers "New box". If its reference matches a Quickstart template, the action opens that template with its startup configuration; otherwise it opens the shared create dialog with the image filled in. Matching a template does not change an image's ownership or removability. System images remain non-removable and do not count against the organization's image limit; usage comes from the separate usage API, not the displayed row count.
A new organization with the default system-image configuration sees base,
python, and node, with zero organization image slots used. The operator may
configure additional system images, so three is not a fixed UI limit.
A state the API records once is told in the past tense
Some fields are set once and never cleared. upstreamMissingAt is written the
first time a pull finds a digest gone from its registry, and nothing resets it
if the registry gets it back. The image page therefore says "Gone upstream", with the observation time and
cache-dependent startup guidance available on hover, focus, or in version
details, rather than a present-tense "Missing" that becomes false when the registry recovers.
Likewise the pin history says "unpins are not recorded", because the API
writes no event when a tag is unpinned, and a history that dropped a tag
without saying so would look like a bug.
Pinning checks what the API will refuse before sending: a name that is not OCI tag syntax, and a name already pinned, which the API refuses even for the same version because there is no move. Repointing a tag is an unpin and a pin, and the Pin dialog explains this rule.
The same page lists every box that still references the image, stopped ones included: those are exactly the boxes that block its removal. And who pinned a tag is a member's name, or "first pull", never an identity-provider id.
A failure carries the way to its fix
When the API's reason names something the reader can fix on another page, the
page showing the failure links there, already pointed at the fix. A box whose
private pull was refused for want of a credential shows "Connect a registry for
quay.io", which opens the credential form with that registry chosen
(/dashboard/images/registries?connect=quay.io). The match is on the API's
own wording, so it is tested against that wording, and an unrelated error gets
no link.
The same goes for slow states the API reports: a box creating during its first pull says PULLING IMAGE, not STARTING, so a minute in that state reads as work rather than a hang. And a box's image links to its catalog entry once a start has put it there.
Private registries say what to fetch, and what a credential covers
A credential is write-only once saved, and nothing can test it, so the form is
where it has to be right. It is built per registry: GitHub, Docker Hub, Quay
and each Container Registry host get their own steps (where to make the token,
which scope, what the username is), and the scope a credential will cover is
shown as it is typed (ghcr.io/acme/*), with an unterminated prefix completed
rather than refused.
Select a provider from Presets or type a hostname in Registry. For a custom registry, enter its lowercase domain name and the username and pull token it issued. The registry must use HTTPS and serve its Bearer token endpoint on the same host.
The Connect a registry link on a Box with a failed private pull opens the form with the registry hostname filled in, including custom hostnames.
Refusals are named in the reader's terms: a duplicate says which scope already has a credential, and a removal refused because boxes pull through it names those boxes rather than their ids. A deploy with no secret store answers 501, which is a state of the environment, not an error, so the panel says private registries are off there and offers nothing to connect.
Registry login tests
In Images → Registries, UPDATE replaces a credential's username and password/token without destroying dependent Boxes. It requires registry write permission, preloads the username and leaves the masked secret empty. The registry and repository prefix stay fixed; enter a replacement secret and choose Save changes.
The UPDATE action uses the shared small ASCII button, matching image-row actions and the adjacent removal button's height.
Closing or completing the form clears its secret; failed submissions preserve the form for retry. Closing a pending save clears inputs and mutation state without cancelling the request. Save and row mutation actions remain disabled until it settles; an earlier completion never closes a subsequently opened form.
New private pulls check the current credential version and stop reusing old-version tokens after update commits. Pulls already in progress may finish; the upstream token itself is not revoked.
Registry query and mutation tests use a real QueryClient with mocked API calls.
They verify organization isolation, refusal before sending an unscoped request,
and invalidation after successful changes. Page tests cover confirmation and
failed submissions, and API client tests check that removal refusals retain
their message through the shared interceptor. Panel tests cover the masked
secret and its cleanup on close, prefix completion, the ?connect= link,
duplicates, updates with fixed scope, write permissions, and refusals named by box.
Console API key permissions and expiration
New API key defaults to All available permissions and 30 days. This selects every grant the signed-in member can choose in the current organization. Owners can choose every permission in the API key schema.
The Console includes new schema permissions when it is built with the updated API client.
To issue a narrower key, select Operate boxes, Manage box lifecycle or Use boxes with volumes. Each of these presets requires every scope in its bundle, and an unavailable preset lists the missing scopes.
Adjust permissions shows each grant in its resource group. Permissions without a dedicated group appear under Other permissions. Manual changes select Custom access, and technical scope identifiers are available in expandable details.
A permissions refresh keeps the draft grants. If the available set changes, reselect All available permissions to update the selection.
Empty and revoked selections block creation. Creation also waits for permissions to load, and a refresh is available after a failure.
Permissions apply across the organization.
Each named option shows its permission count. Selecting a valid preset displays This preset includes N permissions and its constituent permission labels without opening advanced settings. For example, Use boxes with volumes · 3 permissions includes Operate boxes, View volumes, and Manage volumes. Switching presets replaces the selected bundle; it does not accumulate permissions from earlier choices. Preset previews: desktop and 390px viewport.
Custom access and All available permissions summaries, plus resource groups, show selected/available counts, such as 13/13 permissions selected and 3/3 selected. Implicit Box reading is excluded.
Manual complete selections also show All available permissions selected. Selecting All takes a snapshot: later grants are not automatically added, and a changed grant set changes the effective choice to Custom access. Revoked selections remain removable and block creation, but are excluded from available counts and prevent the all-selected indication.
Loading and errors hide stale counts. Selection completeness previews: before, all selected, and 390px viewport. Box reading is implicit and cannot be disabled in this form. Managing image aliases includes alias deletion; using an image does not automatically require catalog access.
The Apps group offers independent read, write and delete access. For example,
boxlite app status needs read access and boxlite app deploy also needs write
access. Permission labels and the key inventory summarize these grants with the
same Apps group.
Users can explicitly select No expiration, 90 days or one year. Existing keys and Quickstart defaults are unchanged. A successful creation displays the returned permissions and expiration with a one-time secret. Absolute expiration dates use English formatting while retaining the browser’s local timezone. The secret is a selectable, horizontally scrollable single line with a fixed copy icon on its right; copy success is announced and failure preserves manual selection and retry. Copy is explicit and does not close the result. Closing the dialog or switching organization discards the secret and ignores late responses. Unavailable selected permissions remain visible until removed; permission changes invalidate in-flight results. Background membership refreshes preserve the open draft and completed secret when the granted scopes remain unchanged. Overlapping membership requests apply only the latest response or failure. Known request failures retain the draft; uncertain network/server outcomes require checking the list before creating another key.
The list uses the same permission labels and preserves unknown API scopes. Expired keys are marked Expired; permanent keys show No expiration. The backend continues to validate grants and expiration; frontend options are not authorization. The API/SDK can also supply an explicit permissions array. A non-owner can select assigned member-read permission, but the Console does not offer member-write.
The mock preview uses synthetic, organization-scoped keys held only in memory. Create, list, duplicate-name refusal and revoke are supported; reload resets them. Mock results do not verify live authorization or expiration enforcement.
Creation-result layout: light, dark, 390px viewport. These captures contain synthetic MSW keys only.
Visual review: before, default form, and access presets. These captures use synthetic mock data. Open API Keys → New API key, enter a name, choose Access, and expand Adjust permissions only when a preset does not fit.
Every invitee joins as an owner
An organization has no finer roles yet, so inviting asks only for an email address: a role picker would offer choices the product does not have. For the same reason a pending invitation can be cancelled but not edited, and a member can be removed but not given another role. The member whose personal organization this is has no remove action, because the API refuses that removal.
The Management navigation's Organization entry opens two tabs. General shows the editable
name and copyable ID. Member combines members and outgoing invitations in one
table, with Member, Invited, and Expired statuses. Owners can invite, remove members,
and cancel invitations. Expired invitations offer Remove (with confirmation) and
Resend. Resending creates a new invitation with the same permissions and the current
default lifetime, then removes the expired record. Creation failure preserves the
old row; cleanup failure reports that the new invitation exists and refreshes both
rows, so the owner can remove the expired one. The old link remains unusable.
The page shows the current organization's name; use the header switcher to change organizations.
The Member tab can be bookmarked at
/dashboard/settings?tab=member; older /dashboard/members links redirect there.
Accepting an invitation opens the organization
Opening an email invitation link automatically accepts it after sign-in with the invited email address. The console preserves the link through sign-in and makes one acceptance request per visit, including under React effect replay. Expired, cancelled, or mismatched invitations show an error and keep the current organization.
Email links are the only console entry for accepting invitations; there is no
personal invitation list or pending-count badge. Successful acceptance refreshes
the organization list, switches to the joined organization, and opens its Member tab.
Existing emailed URLs remain valid. Opening /dashboard/user/invitations without
an invitation ID redirects to the current organization's Member tab without accepting anything.
The new selection is saved only after membership validation succeeds. If switching fails, acceptance still succeeds. The page explains that joining succeeded and asks the user to switch through the header organization switcher. The console keeps the previous organization both on screen and for the next reload.
Organization selection persists for the session
Users switch organizations from the header switcher. The selection is kept in
sessionStorage for the authenticated user. Reload and token renewal restore it,
and explicit logout clears it. A new login does not treat the legacy localStorage
ID as a confirmed selection. See Organization context.
New-user onboarding
The welcome flow saves organization intent, then offers live subscriptions through Billing, card setup, promo redemption, or direct entry to Quickstart. Onboarding describes the dedicated Quickstart page, public image templates, server-backed prompt drafts, completion state, and deployment requirements.
Box limits refresh without interrupting creation
Selecting an organization preloads its effective per-Box limits through the organization detail API. The create dialog shares that query, refreshes on opening and every 10 seconds while open in the foreground, and shows updated Custom maxima without resetting the form. A named preset is recalculated from its original size when limits change; Custom only reduces values that exceed a confirmed limit. Subscription mutations invalidate the affected organization's detail query without waiting for that refresh.
The query overrides the global five-minute freshness and previous-query placeholder defaults, uses a 10-second request timeout, and passes cancellation to Axios. Its key includes the organization ID and stored quota tuple so a new organization or administrator quota edit cannot inherit unrelated limits. Queries never replace membership DTOs or their per-user default flags.
Creation remains available while limits load. Until the first result, selected resources reach server validation unchanged. Later refreshes keep confirmed values; failures show a quiet inline notice. Normal background refreshes show no toast or loading lock. The API's 30-second grant cache still applies, followed by up to one polling interval and request latency before an open dialog updates. See Cloud sandbox sizes.
Domains
Domains is a primary navigation page alongside Images and Volumes. It lists the selected organization's full hostnames and Box/port, App, or unbound targets. The filter matches hostnames and target names/IDs.
Request domain lives in the resource toolbar, and each row can copy its full hostname with explicit clipboard feedback. Empty, filtered-empty, permission and load-error states are distinct.
Associated with links Box targets to their details page and displays the App and environment for App targets. Unbound targets show —. The page and request dialog use the shared console buttons and square surfaces.
Use Request domain to enter a short name and reserve the full hostname shown in the dialog. For an App, open the environment's Domains tab and choose Bind domain. Unbinding retains ownership and keeps the name in the organization's allowance.
The request dialog explains reservation versus binding; the list has no separate connection-help footer. Successful requests clear filtering and show a reservation confirmation. Late results from a previous organization invalidate that organization's cache without showing a success notification in the current organization.
The Managed domain tab lists platform hostnames and the organization's allowance. New organizations can hold one platform hostname by default, and names acquired with Request domain count toward that allowance. BoxLite App preview URLs use no domain allowance.
Organizations retain their stored allowances and existing names on upgrade. Custom domain includes draft and replaced configurations. Its separate one-domain allowance excludes replaced configurations.
Both tabs use underline navigation and the same Domain, Target type, Associated with, Port and Actions columns. Actions copies the hostname. Select a custom hostname to view DNS/HTTPS status, retry configuration or delete it.
Bind and unbind Box targets through the CLI or SDK.
Deploy the API returning domain kind before this dashboard version.
Get DNS configuration creates or resumes a draft and automatically continues preparation until all three records are available. Preparation errors require explicit retry; reopening an incomplete draft does not resume preparation automatically. Configured, verify checks DNS explicitly; successful confirmation closes the dialog, while failed checks retain records and errors.
The API task continues confirmed HTTPS setup. The page reads incomplete setup status every minute while visible; DNS dialogs and pending actions pause these reads. Opening confirmed details reads status without advancing setup. An incomplete confirmed setup with an error offers Retry, which sends one advance request and respects server backoff. Ready means setup is complete with an active subscription; Setup completed indicates completion without confirmed active eligibility. Neither label implies a bound Box port. Viewing and confirmed deletion remain available after subscription expiry. See the customer-domain guide for DNS configuration and ownership transfer.
Run make test:apps:dashboard for page/client tests and
make build:apps:dashboard for the production build and type check.
Sidebar billing summary
The desktop sidebar shows one funding summary above Quickstart: remaining plan allowance while funded, otherwise the wallet balance. Subscription-only accounts do not see an empty wallet row. When allowance is exhausted and the wallet has funds, a short note explains the switch. Exhausted or canceled plans fall back to Wallet even when its balance is zero. Overdrawn wallets take priority. Unsubscribed accounts show the actual wallet balance, including a new account with no funds. The summary does not infer separate promotional credit totals, remaining grant amounts, or a registration reward. Finite allowance usage uses the shared ASCII segmented bar without decorative brackets; wallet-only accounts have no progress bar because the balance has no fixed allowance denominator. It shares the existing owner-only billing queries and opens the existing Billing page. Compact navigation uses a billing icon with a balance tooltip. Missing billing configuration and non-owner membership hide the summary; loading and failed requests do not display a fabricated zero balance. Wallet warnings reuse the Billing page's existing allowance and auto-reload rules.
The summary reads GET /organization/:id/wallet (ongoingBalanceCents,
automaticTopUp) and GET /organization/:id/plan (planName, status,
includedQuotaCents, quotaRemainingCents). An empty plan response means no
subscription; a null allowance means unlimited. Both queries are scoped to the
selected organization and owner membership. Previous-organization placeholder
responses stay hidden until both current-organization reads finish.
Use /dashboard/boxes?preview=new-user for an unsubscribed new account with
zero wallet balance and no Boxes. Existing onboarding and payment flows are unchanged.
These billing fixtures persist through client-side navigation; reload a URL without
a preview parameter to restore defaults.
In the local mock preview, use ?preview=balance-subscription for subscription-only,
?preview=balance-wallet for wallet-only, or ?preview=balance-wallet-fallback
for an exhausted plan with wallet funding. Use ?preview=balance-empty for exhausted wallet and
plan allowance, or ?preview=balance-error for a failed wallet read. These fixtures
and the sidebar require no backend changes or new endpoints.
Neutral dark surfaces
Dark structural surfaces use zero-saturation gray: page background 4% lightness, card 7%, popover 9%, hover/accent 12% and borders 16%. Sidebar, input, code and scrollbar tokens follow the same neutral scale; brand and semantic status colors keep their hues. Use these tokens instead of blue-gray literal backgrounds. Light theme values are independent and unchanged by the dark palette.
For opt-in empty mock fixtures, see the desktop review section below.
Desktop review: code surfaces, payment identity and empty resources
Saved payment methods use an explicit allowlist of locally bundled brand SVGs in
src/assets/payment-brands (license and pinned source included); unknown brands
retain an accessible generic card icon. Amounts, expiry validation and default-card
selection are unchanged.
Quickstart code wrappers use quickstart-code-surface: a visible neutral outline
and a separate code surface in each theme. This is local to Quickstart; copy values
and code whitespace remain unchanged. Console templates scroll with the page.
The selected template panel keeps its content height, and sticky positioning is
only enabled on desktop windows at least 800px high; shorter windows use normal flow.
Resource lists share ResourceEmptyState: a neutral thin-line icon in a 48px slot, shared
heading, body copy below it, then optional secondary guide links. Creation stays
in the page toolbar under its existing permission guard. Images directs users to
Boxes; billing records have no creation CTA. Search misses, loading and errors
remain separate states. Quotas and other task-specific content above the list can
change its absolute vertical position without changing the empty-state anatomy.
For local mock review, localStorage['desktop-review-empty'] = '1' empties Boxes,
Images, Registries, Volumes, Domains, billing documents, credit activity and cost
series. API Keys are already empty by default. Set SkipOnboarding_mock-user-00000000
to 'true' to inspect the returning-user empty Boxes list. Use the separate
desktop-review-empty-members = '1' only to inspect an unavailable membership list:
this also removes the mock user's membership and correctly hides owner actions.
Reset the two desktop-review-empty* values to '0' and reload for normal fixtures.
The shared resource module provides consumed empty-state, status, and filter primitives. Regression checks cover optional guidance, accessible status labels, empty/loading credit history, both money-history retry paths, volume filter recovery, clipboard failures and the exact-name deletion guard.
Boxes use a cube and Images use stacked layers to distinguish instance from image. Resource lists use 24px thin-line icons from components/ui/icon; status stays in its own indicator. Quickstart environment logos and payment brands keep their brand assets. The compact image summary alongside the filter shows Custom images used / limit · Total image size bytes. Both metrics cover organization-owned images, excluding curated images. Total image size is the sum of declared ready-version sizes, not deduplicated physical storage or a billing measurement. Only the count changes color near its quota; per-image Size cells and limit guidance remain.
Box inbound state means the proxy tunnel gate, not organization scope: disabled rejects tunnel traffic; enabled applies the public/private tunnel policy. Private tunnels accept a valid access token or organization authentication. Do not describe disabled as organization-only. Detail switches reserve space for their expanded hit targets, and outbound values may wrap.
Desktop visual comparisons and reproduction steps: screenshot gallery.
Resource headers leave 24px before the next section. Desktop filters share a 380×36px field, 13px input text, solid border and explicit accessible name. Toolbars precede list headers by 14px; Images and Domains usage wraps only when needed. Private registries supports local host, prefix and username filtering with clear-filter recovery. Boxes shows total, running and stopped counts for fleets of at least ten Boxes, independently of list filters or pagination. Its overview has 24px gaps above and below.
Billing pagers retain Previous on a failed later page with unknown totals. Cached Images refresh failures identify the retained rows as previously loaded data. Unknown invoice statuses preserve the upstream text. Create Box pricing and validation scroll inside the body while header and action footer remain visible.
The signed-out landing state shares the registration entry header and top-aligned, left-aligned content layout, a semantic heading, and a primary Sign in action with a secondary Use another account recovery action. The compact authentication variant has a 360px inner content width. An explicit logout remains manual across reloads and Back until authentication succeeds. Ordinary unauthenticated visits and expired-session recovery start hosted sign-in once; cancellation or failure leaves the same retryable entry screen.
Expandable left navigation
Desktop navigation uses a 64px icon rail by default. Expand navigation reveals
labels in a 224px sidebar; the choice is saved as boxlite-navigation-expanded
in localStorage, with an in-memory fallback when storage is unavailable.
Hover the compact logo for 350ms to preview the full sidebar as an overlay;
content keeps its position. Moving into the menu keeps it open; leaving closes it
after 150ms, unless a child has keyboard focus. Escape dismisses the preview and
returns focus to the logo. The top Pin button keeps the preview expanded;
clicking the logo also pins the expanded sidebar.
Hover never changes the saved preference; touch uses the explicit click control.
Boxes discloses All Boxes and Checkpoints. Images discloses Image library and Private
registries. Child links use 14px thin-line icons, a shared inset and
full-width selection; primary icons remain 18px. Navigation data accepts
second-level children without adding speculative destinations. Entering a child route reveals its group; the active
route remains highlighted when the whole sidebar collapses.
The desktop sidebar spans the viewport height (minus any announcement). Its logo shows the full wordmark when expanded and the icon when compact. The right column contains a 64px header and route content; API Keys is separated from the account by 32px on desktop. Below 768px the header prioritizes organization context and the mobile menu. Welcome keeps its simplified header.
Management is a primary disclosure after Applications, with Billing and Organization
children. Clicking it in compact mode expands the sidebar and reveals the group;
entering a management route opens the group, while manual collapse remains possible.
Organization switching is in the header; theme and logout are in the account menu.
The account avatar keeps a fixed 23px box and displays name/email initials while
its image loads or after loading fails. Missing names and emails use the shared
account icon. Images appear only after load; error removes the image without
automatic retries. The avatar is keyed by OIDC issuer, subject and image URL, so
identity or URL changes start fresh and late image events cannot affect another
account. Avatar content is decorative; the profile-menu trigger retains its
accessible name and keyboard behavior.
Links retain accessible names in compact mode and show right-side tooltips on hover/focus. The middle navigation scrolls on short screens; the footer pins the Quickstart as the last action. Collapse sits beside the logo in pinned expansion; Pin occupies that position in hover preview. Both are hidden in the compact rail without a preview. Clicking the compact logo expands navigation without changing the route. Keyboard focus moves to the replacement toggle. Selected navigation uses a quiet neutral surface with icon feedback, distinct from transient hover.
Dashboard owns --app-header-height, --app-banner-height and
--app-content-height. List/detail/fullscreen layouts consume these variables
to reserve the actual header (48px desktop, 60px mobile/Welcome) and announcement
height consistently. Preserve min-w-0 on the content region when adding routes.
Infrastructure groups Boxes, Images, Volumes and Domains, with an expanded-only section label. Applications contains one CI destination, active on both the runner inventory and GitHub connections routes. The CI page exposes persistent Runners and GitHub connections tabs on desktop and mobile, backed by the existing routes. Both routes retain multi-resource inventories within the selected organization. Management remains a separate primary entry. Compact navigation keeps the group accessible name without squeezing in a visual label.
Expanded navigation highlights only the current child, using the same full row width as primary items. Active parents retain foreground emphasis without a second selection rectangle. Primary and secondary labels align; text scale and spacing distinguish hierarchy without a tree line.
Sidebar branding always renders the same 43.2px-high wordmark asset (20% above the original 36px). Compact mode clips the text area instead of substituting a differently padded icon image, so the visible symbol keeps the same size and position across expansion.
Neutral outlines use border, border-hover and border-selected tokens. In dark mode these are 16%, 23% and 30% neutral lightness, avoiding foreground-alpha outlines whose brightness jumps against dark cards. Selection also retains its text, fill or current badge; keyboard-focus indicators are unchanged.
Resource screen visual rules
The compact Box list exposes a named “Box cards” region; its filter-recovery checks locate that accessible region independently of responsive CSS classes.
True empty lists hide column headers and paging; filtered-empty lists retain context. Boxes and TanStack-backed tables share ResourcePagination. Totals and fetching stay with the caller; a later empty page always retains a Previous action, while a single page hides navigation arrows. Pagination follows the data rather than the viewport. Desktop image navigation lives in the expandable rail, with mobile-only page tabs. Clicking Images in a compact rail reveals its children. Quota metadata uses readable 12px type. Template columns use a 240px minimum in the available content width; short Quickstart code blocks expand naturally. Billing and box details retain all data and actions while removing excess whitespace and dotted leaders.
Measured visual rules
These rules came out of a full crawl of the console. Each has a check that keeps it true.
rule kept true by
─────────────────────────── ───────────────────────────────────────────────
six font sizes, no others src/design-language.test.ts (ceiling 0, plus 8 display numerals)
text contrast 4.5:1 scripts/ui-audit ──► axe-core color-contrast
24px hit targets scripts/ui-audit ──► axe-core target-size
no sideways page scroll scripts/ui-audit ──► page-hscroll at 390px and 320px
whole-pixel rows scripts/ui-audit ──► subpixel
one line per shared edge scripts/ui-audit ──► double-edge
Type scale. Text uses text-label, text-meta, text-body, text-em, text-section or
text-page. Tailwind's stock sizes (text-sm, text-xs, …) and arbitrary text-[Npx] sizes are
not allowed; the ratchet test counts both. The only exception is display numerals of 32px and over
on the welcome screens and the stat tile. Line heights in the scale are whole pixels (page 32px,
body 20px, meta 18px): a ratio such as 1.15 made the title 32.2px tall and blurred every 1px rule
below it.
Contrast. Enabled text reaches 4.5:1 on its surface in both themes.
| Token or surface | Rule |
|---|---|
--muted-foreground (light) |
42% lightness: 5.00:1 on --card, 4.66:1 on --accent |
--brand-foreground |
Dark text. White on the brand cyan is 2.5:1; the dark value is 7.3:1 |
--destructive-solid |
Fill for buttons with white text, 4.67:1 in both themes. --destructive stays for text and tints |
| Code blocks | readableCodeTheme in src/lib/readable-code-theme.ts moves each Prism token colour to the closest value that passes |
| Terminal | Its surface stays black in both themes; the separate header uses dashboard theme tokens for status and controls |
A row that is busy is not dimmed: opacity pulled its text under 4.5:1. The status cell shows the spinner.
Hit targets. A control is at least 24px in each direction. Small glyph buttons (copy, close) keep their glyph size and get a 24px box. Links inside a sentence are exempt.
Phone widths. A list that cannot fit keeps its columns with a min-w and scrolls sideways
inside its own box; the page never scrolls sideways. Volumes, Images, Private registries and API
keys do this. Hostnames and names truncate with a title; they do not break mid-word.
Segmented controls. Each segment carries a full border and overlaps its left neighbour by one pixel, so shared edges are one line. Compact choices mark selection with a neutral fill and stronger label. Page tabs use a persistent underline and semantic icons.
Wording. Buttons, headers, tabs, dialog titles and labels use sentence case, with product
nouns capitalised (Box, Volume, Checkpoint, API key). A dialog's title is the label of the button
that opens it: New Box, New Volume, New Checkpoint, New API key. Units are vCPU, GiB and MiB. A
destructive confirmation names its object, for example Delete “web-api”?.
Copy actions. Every copy goes through copyToClipboard (src/lib/copy-text.ts) or the
useCopyToClipboard hook, and shows success only when the write happened.
Page titles. Each page calls usePageTitle, so the tab reads Volumes · BoxLite.
Focus. src/index.css gives every focusable element a 2px ring-coloured outline by default.
Components that draw their own indicator still do; unifying those is not done yet.
To re-measure, see scripts/ui-audit/README.md. The crawl needs a
local Chrome and the mock preview, so it is a manual check and not part of make test.
GitHub CI dashboard and browser connect
Primary navigation places CI in Applications, after Infrastructure, in both
the sidebar and mobile menu. CI uses rail destinations on desktop and tabs on mobile.
Runners (/dashboard/ci)
lists actual JIT Boxes, with state, image, resources and links to Box details.
Resources shows vCPU, RAM in GiB and configured disk capacity in GiB.
It uses Box socket events and three-second polling during transitions, with a
five-second fallback during socket loss or errors and ten-second refresh for
journal-only capacity changes. It uses the same organization
access as Box reads. Each JIT Box row uses the same thin-line state-accented Box icon as the Boxes table.
Explicit status text remains separate from the icon.
The CI cube is also used in the empty runner view; the page title has no icon.
Name filtering shares a toolbar with the compact capacity summary, using the same
380×36px shared ResourceFilter as Boxes and Images, with a solid border, muted icon
and sans-serif input.
The 128-character limit and existing pagination remain. It searches case-insensitive literal substrings across
all pages, resets pagination on edits and preserves organization-wide capacity.
Clearing the input restores the inventory; matching count is independent of page size.
Capacity appears beside the Runners filter as CI slots used / limit, using Images'
compact monospace usage-summary styling with decorative quota ticks and no surrounding panel.
Edit limit opens a centered modal for owners.
It shows occupied scheduler slots against the effective shared limit; reservations
and workers awaiting Box cleanup count, even before a Box row exists. Confirmed
Box absence releases a slot even if GitHub runner cleanup remains pending.
Zero displays Paused, unlimited capacity has no percentage, and lowering the limit
below current usage preserves the actual count without terminating existing jobs.
Leave the maximum blank to inherit Commerce, or use zero to pause new workers.
Other Boxes consume the same commercial account allowance. Repository limits are
not exposed. GitHub owns job logs; use existing Box tools for worker inspection.
Connects (/dashboard/ci/connects) uses a registry-style table for GitHub accounts;
owners can connect a personal account or organization.
Each connection has a quiet Update action beside its trash control.
It edits private-repository permission on the existing verified binding; changing
GitHub account identity still requires authorization. A changed policy refreshes
the listener catalog. Delivered jobs continue and original cleanup remains available;
workers awaiting JIT configuration may be retired under the new policy.
Public repositories authorized for the App are enabled by default. Allow private
repositories additionally permits installed private repositories; it starts unchecked. For Organization accounts,
BoxLite automatically creates or synchronizes its dedicated GitHub runner group;
users do not repeat the setting in GitHub. The existing inventory wake performs
this asynchronously; the connection remains provisioning until remote policy and
repository membership pass readback. A GitHub failure retries with the saved
desired policy. Failed API saves retain the dialog and checkbox, and successful
saves refresh only the original organization.
Deleting a connection requires confirmation and waits for the server before removing
the row. It stops new admissions, cancels stored unfinished authorizations for that
matching CI App plus every unfinished browser grant in this BoxLite organization, and preserves running-worker cleanup and the shared capacity setting.
A new verified connection can reconnect later. Switching BoxLite organizations
does not redirect an in-flight delete. Legacy Organization ?tab=ci links and
successful browser authorization lead to Connects. start:mock includes synthetic
JIT Boxes and deletable connections for local presentation checks.
Neither CI page has a manual Refresh control. Connects fetches on entry and after
successful additions/updates/deletions; it does not poll the connection list.
How to run a job follows the stable CI page description as an underlined button that opens the guide sheet; it wraps below the description on narrow screens. Each Runners empty state uses a single title, concise explanation and at most one primary action. The empty inventory exposes the minimal workflow diff inline; the guide retains the complete test workflow and troubleshooting. Successful browser connection offers the same guide for the current BoxLite organization. The success entry survives removal of the authorization route parameter and clears when a new attempt starts, the organization changes, or a connection is successfully deleted. Failed deletion preserves the existing completion guidance. The callback guide uses the confirmed connection result without requiring dashboard organization context.
The guide shows a compact organization context and an example workflow diff:
replace runs-on: ubuntu-latest with runs-on: boxlite on the intended job.
The filename and job name are labeled as examples. The copy action copies only
runs-on: boxlite, never the diff or placeholder steps. No BoxLite API key is
needed; existing workflow triggers remain unchanged.
Try a test workflow optionally expands a complete manual test with default-branch instructions. Troubleshooting explains queueing, trigger and execution problems, and links to Connects for repository authorization or Runners for capacity. The guide has no repository selector or duplicate authorization inventory. Connection errors stay local and do not block reading or copying the configuration. Copying does not dispatch a job; results and logs remain in GitHub Actions.
In start:mock, open the workflow guide next to the CI page description. Use Connects
to inspect the installed repositories and private repository policy.
The empty Runners page checks owner-visible connection settings before choosing
its next step. No connections leads to Set up GitHub, which opens Connects in a new tab and preserves the current guide; existing
connections keep No active runners and show a collapsible Configure a workflow section, with repository checks still required. The empty inventory embeds the same copyable runner diff as the side sheet. No-connection owners see the existing new-tab Connects entry beside that diff. Loading, error, member and unavailable states retain their existing feedback. See inline setup.
Loading, permission uncertainty, members without owner access, failed reads
(including failed refreshes of cached empty data), and disabled CI have distinct
messages. They never imply that GitHub is connected or disconnected.
The header guide remains available for reading in every state.
Use /dashboard/ci?preview=ci-disconnected for an unconnected account,
?preview=ci-connected for a connected account without active runners,
?preview=ci-unknown for a failed connection lookup, and ?preview=ci-loading
for an eight-second lookup. ?preview=ci-empty also represents no connections.
The selected fixture persists per tab across navigation. Use ?preview=ci-default
to restore the populated demo. These fixtures do not execute GitHub Actions.
Connect GitHub starts dedicated identity OAuth immediately. While requesting the authorization URL, the existing button shows its loading state without adding a temporary Cancel beside it. Failures release the button for retry, and browser restoration invalidates late start results. After login, the normal CI page opens an account dialog using shared AsciiButton, form dialogs and thin-line icons. OAuth-visible personal/owner choices show Install, Connect, or a green Check for an existing connection. The Connects table contains only connections and has no redundant Status column. Switch account is clickable text beside Signed in as; it cancels the unfinished grant and forces GitHub's account picker. Committed connections remain intact. Closing, Escape, Back and browser restoration keep the UI usable and ignore obsolete asynchronous results.
Install sends the verified selected account ID and type to GitHub's account-specific permissions page, avoiding another account/organization picker. GitHub still asks for installation permissions and repository selection. Resume retains the selected target and fresh installation state; completion independently rechecks ownership, the installed account and matching CI App. Existing installations bind directly. The browser allows only the fixed GitHub installation routes and validates target ID/type, attempt-bound state and query uniqueness before redirecting.
Missing organization? explains organization OAuth approval and SSO prerequisites;
an installed CI App alone does not guarantee visibility. Review GitHub access,
then reconnect. Provider errors never imply an organization is uninstalled.
The API uses separate CI_GITHUB_OAUTH_CLIENT_ID and
CI_GITHUB_OAUTH_CLIENT_SECRET configuration for identity, requesting only
read:user read:org. Personal/Organization CI Apps supply runner permissions.
The BoxLite login stays unchanged when choosing another GitHub identity.
Only attempt ID, original BoxLite organization and expiry enter session storage. The bootstrap strips callback code/state before app and telemetry modules load. Code exchange runs once under StrictMode; authenticated resume supports reload without exchanging the code again. Installation state, selected App/account and user tokens stay on the API. The setup callback is verified before auto-binding. Sessions can connect several owned accounts within the same original five-minute window. Close/Switch cancels unfinished authorization; connected rows remain.
Run make test:apps:dashboard and make build:apps:dashboard from the repository
root. Local DOM/HTTP tests do not replace a real App connect and workflow run on
the deployed API and Dashboard.
Capacity design and verification plan: Runners capacity meter.
sequenceDiagram
actor U as Account owner
participant D as Dashboard
participant A as BoxLite API
participant P as PostgreSQL
participant G as Identity OAuth App
participant C as Selected CI GitHub App
U->>D: Connect GitHub account and private-repository policy
D->>A: Authenticated web start under original account
A->>P: Store actor, App, state hash and encrypted verifier
A-->>D: Fixed authorize URL with S256 challenge
D->>G: Authorize in browser
G-->>D: Fixed callback with code and state
D->>D: Scrub URL before app and telemetry load
D->>A: Complete under original BoxLite account
A->>P: Validate state and atomically claim once, erase verifier
A->>G: Exchange code with verifier and OAuth Client Secret
A->>G: Read OAuth-visible owner memberships
D->>A: Select owned account
A->>C: Verify installation with the corresponding App JWT
A->>P: Recheck owner and commit binding, default quota and wake
A-->>D: Connected with durable Listener setup state
Note over D,A: Browser metadata never grants binding authority
Browser connect recovery keeps routing metadata after an ambiguous network failure; Retry authorization status reads the existing grant without exchanging the OAuth code again. A late response can clear only its own attempt. Opening Back to Connects in another tab preserves the current grant. If browser storage cannot select the original BoxLite organization, the callback retains the result and offers an explicit retry. A failed cancellation offers Discard local authorization with a warning that the server grant may remain active until expiry.
A recovered pending connection checks authorization status once per second until GitHub completes it or the browser grant expires. Closing the dialog or switching organizations stops those checks. A failed status request pauses polling and offers Retry authorization status without repeating the OAuth code exchange.
CI tabs expose their corresponding tab panels to assistive technology. A failed later Runners page keeps Previous available so the user can return to loaded rows.
CI repository access
Expand an installed account in Connect GitHub, or a connected row in Connects,
to view repositories authorized for its original Personal or Org App. Lists load
one page on demand and show both Public and Private repositories, independently
of CI eligibility. The Update dialog shows only the installed repository total,
including zero, using the API total across all pages. Repository names and pagination
remain in the expandable account row. Update and expanded rows offer Install app for repos, opening
the existing installation configuration in GitHub. For example, add acme/api
there, return to BoxLite, and the account refreshes to page one without deleting
its connection or discarding an unsaved Private checkbox. Ordinary focus does
not poll repository lists. Errors retain Retry and the settings link; a failed
later page retains Previous. CI URLs and OAuth callback routes remain unchanged.
Interface typography
The console self-hosts Inter for interface text and Commit Mono for exact technical values and code. Navigation, labels, search fields and table headings use the sans role; identifiers and commands retain the monospace role. Font provenance and licenses are in public/fonts/README.md. Use the shared Tailwind font roles rather than hard-coded family names. Quickstart code surfaces use the structural border token in both themes. Terminal-specific font loading is handled in the Box terminal migration.
Desktop mock comparisons: list before, list after, Quickstart before, Quickstart after, and dark Quickstart. These 1440 × 900 screenshots isolate typography and code surfaces against main ed367805d; navigation and resource workflows are separate changes.
Sidebar navigation hierarchy
Checkpoints belongs to the Boxes group. Primary and secondary labels align; text scale and spacing communicate hierarchy. A quiet neutral fill and an accented icon identify the selected destination. The same Checkpoint outline is shared with existing list rows, which retain their status text and actions.
Hovering the compact logo temporarily expands the sidebar. Keyboard users activate Expand navigation to open it; focusing a rail link shows its tooltip. Pin keeps it open; leaving a preview restores the compact rail without changing routes. Only one compact tooltip can be visible, and tooltips clear when labels expand. Selected icon effects respect reduced motion.
Compact Boxes, Images, and Management icons are disclosure buttons. Clicking one opens a small nonmodal popover beside that icon without navigating or expanding the rail. Boxes offers All Boxes and Checkpoints; Images offers Image library and Private registries; Management offers Billing and Organization. Only one group popover is open at a time. A quiet background marks the open trigger, while current-section emphasis remains tied to the actual route.
Escape, another trigger click, outside interaction, or selecting a destination closes the popover. Escape restores trigger focus. Tab from the last child closes the popover and focuses the next rail control; Shift+Tab from the first child focuses the previous rail control. The sidebar handles these boundaries because the shared popover primitive loops Tab even in nonmodal mode. Destinations are ordinary links supporting modified clicks and new tabs. When sidebar labels are visible, Boxes/Images retain direct parent links with separate disclosure arrows, and Management retains inline disclosure. These actions preserve the saved layout preference and 64px compact reservation. Only explicit Expand, Pin, and Collapse controls change the saved preference; existing preferences are restored as-is on reload.
Preview activation cancels pending dismissal. Pointer exit closes the preview after 150ms unless a keyboard-focused child still needs it; focus exit permits closing once the pointer is outside. Escape dismisses the preview and restores focus to its activating entry. Parent navigation does not dismiss the overlay, so child links remain reachable with pointer and keyboard. Group disclosure remains independent from the saved layout and current route.
Compact navigation on the CI mock page: automatic pinning before the fix, then the independent Boxes, Images, and Management popovers. Each popup preserves the CI route, compact reservation, and saved collapsed preference. The sidebar regression suite covers compact group disclosure, child navigation, modified child clicks, persistence, hover preview, and Escape focus restoration. The Management trigger remains mounted across compact and hover-preview layouts so Escape restores focus to the same gear after an inline disclosure.
Desktop mock examples: expanded navigation and temporary hover preview. Captured at 1440 × 900 from the navigation topic preview; the accompanying Tab changes are delivered separately.
In the compact rail, an active group button describes its current child with
aria-description, such as “Current section: Checkpoints”. Group buttons are
disclosures; only the matching destination link is marked as the current page.
Tabs and selection feedback
Content tabs use a persistent underline. Compact choices, such as theme and chart/list mode, use a selected surface. Hover previews interaction without replacing selected feedback. Navigation links preserve route semantics; in-page tabs retain tab/panel keyboard behavior. Icon effects respect reduced motion. Billing, Organization and Quickstart use the same choice rules.
Desktop mock evidence: previous tabs, updated light tabs, and updated dark tabs. The comparison isolates this change against the sidebar parent; both versions already use Inter and Commit Mono. Billing tabs retain arrow-key navigation and their associated panels.
Finding resources and reading quotas
API keys use the shared list filter and match names case-insensitively after trimming whitespace. The result count reflects visible keys; a filter miss offers Clear filter while the first-use state retains creation guidance. Revocation still targets the selected key by user, name and organization.
The Domains toolbar reserves a separate column for Request domain; quota and limit explanations occupy the following row so they cannot displace the action on desktop. Decorative quota ticks accompany exact counts and are omitted for unknown or unlimited limits. Boxes fleet counts remain independent of the list filter and appear only at ten or more Boxes, in a compact summary strip.
Desktop mock comparisons: API keys before, after, filtered; Domains before and after; Boxes before and after. Both revisions use the same temporary synthetic fixtures (three keys, fourteen Boxes, one domain at its limit). These screenshots isolate toolbar changes against the navigation parent; fixture injection is not shipped.
Resource icon state accents
Box and Volume icons show restrained lifecycle accents while retaining adjacent status text and existing action rules. Only transitional work animates; pending Volume work stays static. Domain accents mean a binding exists, not that DNS or the endpoint is healthy. Unknown states remain neutral. Decorative SVGs are hidden from assistive technology, and reduced-motion preferences disable their animations.
Desktop mock comparisons use the same built-in fixtures on the toolbar parent and this revision: Boxes before and after; Volumes before, after, and dark. These static images illustrate state accents; transient motion is verified in the browser and suppressed under reduced motion.
Resource row layout
Resource names and icons share a single horizontal identity region. Boxes expose Image, CPU and Memory as separate desktop columns; full technical values remain available through their titles. Status and actions retain fixed space. Members show invitation sender and expiry in separate owner-only columns instead of stacking them below the email. API keys, Volumes and Domains use the same identity geometry and quiet row actions. Shared list rows are 48px high.
Name copying reuses the clipboard hook: success appears after the write completes, failure leaves the name uncopied, and the action does not navigate the row.
Desktop mock evidence: Boxes before, after, dark; Members before and after. Both revisions use the same built-in mock records; these screenshots isolate the row layout from the icon parent.
Image rows use full curated references with quieter registry/version context, shared identities and compact quota ticks beside exact custom-image counts; total image bytes remain separately visible. Registry rows follow the same identity and action treatment. Billing document and wallet transaction types use readable title case, with dates and amounts retaining monospace alignment; wallet statuses reuse the shared marker without changing their existing vocabulary. Image list before and after.
Resource request feedback
ResourceLayout owns the shared placement of loading, empty, and failed inventories. Initial requests use an assembling Box with a static reduced-motion fallback. Image and registry inventories distinguish missing data from an empty successful response: initial failures offer Retry, while refresh failures retain cached rows with an inline recovery notice. Transport details stay out of user-facing messages. Filters remain disabled until an inventory exists. Resource tables retain a minimum readable width in narrow desktop containers. Boxes keep the sticky header and records in one scrolling region so horizontal scrolling cannot misalign columns. Member tables use a wider minimum for owner-only invitation columns.
Boxes, Volumes, Domains, and API Keys use the same request-state distinction. First-request failures offer Retry instead of an empty inventory. Background refresh errors retain loaded records, and an active retry disables its recovery button. Domain permission messages remain separate from request failures.
Boxes filters query the server, so they remain editable after a failed request even when no inventory is cached. Changing a search can recover independently of Retry. Client-side inventory filters still wait for data.
Contextual documentation links
Feature guide links lead to the task named by their label, rather than the documentation landing page. Volumes opens the Cloud Volumes guide; image help and the template picker open Use your own image; SSH opens its Cloud connection guide. These destinations live in constants/ExternalLinks.ts so changes can be reviewed centrally.
API Key and Webhook empty states no longer advertise generic home-page links as setup instructions. The profile menu still offers the documentation home. Guide links use the shared colored, underlined treatment, keeping them distinct from secondary action buttons.
The source scan catches inline URLs and appended paths; it does not prove a destination's meaning or availability. When updating a guide, open the destination and check its content against the UI task.
Inspecting image versions
Image details presents Tags, Versions, referencing Boxes, and pin history as single-line rows beneath a compact summary. The detail page offers View SDK example instead of duplicate Box creation controls. Curated images retain their short reference in SDK examples; organization images use their existing start reference.
Select a version digest to inspect and copy its complete digest, original pull reference, first-seen timestamp, and recorded upstream status. A missing upstream digest remains a past observation: only runners that cached the version can still start it; other runners need an available version pinned under a new alias. The Versions table scrolls horizontally in narrow containers, reserving space for the digest and upstream marker. Full provenance remains available in the dialog.
Pinning guidance belongs in the Pin a tag dialog. Pin/unpin permissions, OCI tag validation, API error feedback, and running Box behavior are unchanged. Referencing Boxes retain their detail links and status indicators. The page scrolls naturally instead of placing its tables in a second vertical scrolling region.
Checkpoint controls and recovery
Checkpoint creation and Box restoration use the shared form dialog, field styles and footer actions. Source Box is a themed selector; eligibility filtering, fixed-source rechecks, permissions and organization-switch guards remain unchanged. Invalid names explain their accepted format without discarding the draft. Deletion requires the exact checkpoint name and retains the confirmation after a refusal.
The inventory uses the shared single-line row layout with source links, explicit status markers and a disk-and-clock glyph. A failed source lookup leaves the source identifier visible; only a successful lookup can identify a deleted source. Empty filtered results offer Clear filter.
Initial capability and inventory failures share one recovery region and Retry retries failed requests. Refresh failures retain cached inventory, including a previously empty result. Recovery buttons are disabled during their own requests. Capability-disabled feedback remains distinct from a request failure, and retains Retry capabilities if refreshing that cached result fails. The inventory scrolls locally below its minimum width so names and actions remain readable. Creating-state motion respects reduced motion; failed-status details remain available to keyboard users.
CI runner capacity and recovery
Runners use single-line resource rows, explicit status text and fixed 25-row pagination. Server-side search stays editable after a failed request. Initial failures show a retry state; refresh failures retain cached rows, including a successful empty inventory. Cached page counts remain available after a refresh failure, allowing navigation to another page. Paging stays locked during active requests; placeholder data does not provide a page count. Polling and socket invalidation remain active.
Owners edit the concurrency limit in a centered modal. Numeric text stays editable until submission validates it; zero pauses new jobs, and “Use account limit” clears the draft to inherit the account allowance. Cancellation discards the draft. Saving locks dismissal and duplicate submission, while failures keep the draft available for correction. Focus returns to Edit limit when the modal closes.
CI GitHub connection management
Connects filters account names locally and uses the shared table, empty, loading and retry states. Refresh failures retain existing connections. Repository details expand within the account row, and policy updates use the themed checkbox and form dialog. Failed updates retain the draft; pending mutations remain scoped to the original organization. The callback recovery screen keeps the same authorization and storage-recovery behavior with aligned typography and buttons.
Mock previews support ?preview=ci-empty and ?preview=ci-repositories; the latter includes enough repositories to exercise paging. These fixtures run only with dashboard mocking enabled and do not change production APIs.
The GitHub account picker keeps account names on their own full-width row below the small-screen breakpoint; account type and actions follow on a second row. Desktop rows retain aligned columns. Expanded repository details span both layouts.
Terminal viewport controls
Terminal text size uses the shared themed selector. Changing size refits the existing xterm instance without reconnecting or replacing its buffer. The terminal loads the configured monospace font before applying it; a failed font request keeps a usable fallback and the active shell.
Maximize expands the current terminal in place; Restore returns to its prior layout. Both actions return keyboard focus to the existing terminal so typing continues without an extra click. Covered application controls become inert, and page scrolling is restored when leaving maximized mode or unmounting. Press Ctrl+Shift+F6 inside the terminal to focus the Maximize/Restore button, then Enter to activate it. This shortcut is displayed while maximized; ordinary Escape, Tab and F6 remain available to terminal applications. These viewport controls do not change shell authentication, permission checks, reconnection, or runner lifecycle.
Stable Box detail views
Overview and Terminal share one Box header, lifecycle actions, SSH controls and tab position. The route selects the content pane; entering Terminal does not request the Overview image or volume catalogs. Leaving Terminal still unmounts its shell, while maximizing inside Terminal preserves it. Changing Box or organization resets Box-scoped UI state.
Overview presents provisioned CPU, memory and disk without implying measured usage. Configuration and activity share a compact panel; mounted volumes remain conditional. Long references wrap inside their fields. The status label reuses the list's presentation, including Pulling image. Existing lifecycle permissions and mutation behavior remain intact.
Inspecting Box network policy
The Overview Network section distinguishes disabled, unrestricted, restricted, and unknown outbound policies. Expand a restricted policy to inspect the exact API-reported destination rules; rules may contain hostnames or CIDRs. The console does not infer live traffic, reachability, or open guest ports.
Domains lists organization-owned bindings targeting this Box, including the destination port. Other Boxes, application targets, and unbound domains are excluded. Management permission is required to fetch and display bindings. Loading, empty results, and failures remain distinct; refresh failures retain known bindings with a retry action. Organization changes never reuse the previous organization’s bindings as placeholder data. Only HTTP(S) URLs without embedded credentials receive copy/open actions.
Explicit tunnel request contracts
ApiClient.prepareBoxTunnel(org, box, port, isPublic, signal) sends an explicit
public access mode and validates the returned URI and descriptor. Private
creation is unavailable in the Console: private requests are refused locally before
any HTTP request. A capability read cannot guarantee which server handles a subsequent
write during rolling deployments. This frontend change uses existing API endpoints.
revokeBoxTunnel deletes the declaration for a port without checking Box state
or inbound access. Both methods reject ports outside 1–65535 before making a
request and apply bounded request timeouts. They do not automatically retry
mutations. Refusals are distinguished from uncertain outcomes: transport failures
or malformed creation responses may follow a successful server mutation. Error
objects never retain the response or token. URI values must be strings; URL-parser
coercion cannot turn a malformed response into a usable descriptor. Public descriptors
must have a null token.
The Overview Create tunnel action uses these methods directly.
Creating and revoking tunnels
Create tunnel first checks whether the Box can serve a tunnel and whether inbound access is enabled. Enabling inbound also restores previously configured tunnels under their existing access policies. Unknown inbound state offers Refresh status; the console never guesses that a failed enable request succeeded.
The port form explicitly discloses public access before submission: anyone with the URL can access the port. It offers no Private option or access-token controls. The configured result shows its exact port and public access mode. Closing the dialog does not revoke access. The console clears its local result on Box, organization, client, or permission changes and aborts outstanding requests, including inbound enablement. Cancellation stops the client from waiting; it cannot undo a mutation already accepted by the server. Reopen the Box to read its current inbound state.
Revoke by port remains available for stopped Boxes and disabled inbound access. A result-specific revoke targets that exact port. Uncertain creation locks the submitted port and offers revocation instead of retrying creation. Existing connections can survive revocation; new requests are blocked after cache expiry.
Shared control surfaces
Text fields, selectors and resource filters share a neutral inset surface. Floating menus and tooltips use the same shallow elevation; dialogs and sheets use a deeper shadow. Hard corners, structural borders, and existing keyboard-focus rings remain. Form bodies show subtle scroll edges only when more content is available. Resource names use the technical-value font while preset labels remain interface text.
Grouped inputs and textareas inherit their InputGroup surface and focus ring; the inner controls remain transparent without an inset shadow. Standalone fields retain their subtle inset surface.
Content tabs and template filters
Image views, SDK example languages and Webhook views use the shared underline tabs and semantic icons. Template categories remain compact selected choices, with category icons and wrapping at constrained widths. Selecting a language still changes only the displayed example; selecting an Image view preserves its existing route behavior. The SDK example's Quickstart link uses the shared link color.
Billing history refresh feedback
The Wallet tab retains loaded invoices and credit activity while refreshing. A failed refresh shows a retry notice above the cached table; first-load failure uses the shared resource error state instead of an empty table. Pagination remains available when the cached response includes its page count.
An unsuccessful refresh does not mean the wallet has no records. Both histories keep their existing query keys and payment operations; Retry repeats only the read request.
Management section hierarchy
Billing and Organization section headings share the resource heading layout: a quiet uppercase label, optional count, divider and optional action. Existing SectionTitle callers delegate to the shared heading so dense management panels use one hierarchy.
Interface labels use the sans-serif role. Currency, quota and plan-comparison values use monospace with tabular figures for scanning; this does not change amounts or billing behavior.
Resource review scenarios
With mock mode enabled, add ?preview=resource-empty, ?preview=resource-error, or ?preview=resource-loading to a resource page. These opt-in handlers produce empty collections, failed reads, or pending reads across the resource families. Remove the parameter and reload to return to normal fixtures. Empty CI responses retain zero-used capacity and valid account/CI limits, so the summary and Edit limit remain available.
/dashboard/boxes?preview=fleet adds seven Boxes on initial load, allowing review of the fleet statistics threshold. The web-api fixture includes outbound allow rules for Network inspection. Preview handlers run only through the mock worker; they do not change backend behavior.
A filtered Box list with no matches uses the same clear-filter state as other resources. Clear filter preserves unrelated filters and returns to the list; a truly empty account retains its creation guidance.
Recovery regression coverage
The dashboard suite exercises clipboard success and refusal, public tunnel descriptor validation and actionable errors, lifecycle labels, and keyboard access to checkpoint and runner failure reasons. CI tests also cover repository disclosure without changing the selected account, missing runner metadata, and explicit retries that retain cached connections and runners. These tests use the existing frontend API contracts.
Organization context
After authentication, users with multiple organizations select an organization before organization business providers mount. One organization enters directly; zero organizations offers refresh and another-account recovery. Invitation and email verification URLs complete their existing scoped flow before this gate applies.
The 64px Console header displays the active organization. Multiple memberships open a compact switcher showing names and complete IDs; search appears above five memberships. The profile menu contains account actions, not another organization list. On mobile, API Keys remains available in the navigation menu while its header shortcut is hidden.
Selection is stored in tab-local sessionStorage with the authenticated user ID. Reload and token renewal restore a valid confirmation; explicit logout clears it. The legacy localStorage ID is a compatibility hint, not a login confirmation. A missing or removed selection returns multiple-membership users to the chooser. The server remains responsible for authorizing every organization API request.
Switching validates membership without changing the current permission context, saves the session, then performs a full document navigation. This discards in-memory query state and connections. Resource lists retain their section without query/hash; Box, Image and App details return to their lists. In Applet, the destination shows the selected organization's Apps or its access request page. Settings and billing switches land on Boxes, avoiding a destination that may require permissions the new member lacks. Non-list pages ask before discarding edits or terminal connections. Running Boxes continue running. This conservative route warning is not general form-dirty tracking; list-page modal editors already block access to the header.
A failed membership request or session write leaves the current context intact and shows a retryable error. Failed invitation entry can be retried through the header. Email verification waits for organization selection and does not replay the token when React effects rerun. GitHub CI authorization callbacks save the authenticated user’s organization session before returning to Connects, including attempts started before the session selection rollout. Storage failure keeps a retry action on the callback.
Local organization review
From apps/, run:
VITE_MOCK_MULTIPLE_ORGANIZATIONS=true node scripts/start-dashboard.mjs --target=mock --host 127.0.0.1 --port 3187
The existing MSW worker supplies three synthetic memberships. Without the flag, mock mode has one organization. Mock resource fixtures are shared: these previews verify navigation and UI, not backend resource isolation. Review with real accounts having distinct memberships and resources before production rollout.
Signing out and switching accounts
Automatic account transitions share the Console's BoxCube loading surface: session restoration, hosted sign-in navigation, registration checks, default-entry checks, sign-out and account switching. Pending surfaces contain no account-setup headings or account actions. A successful redirect keeps loading visible until navigation; returning through the browser's back/forward cache restores manual entry.
Verification, organization selection and failure recovery remain interactive pages. Account checks retain their request timeouts, and admitted Console sessions stay mounted during background refreshes. The existing LoadingFallback is reused without changing its animation, wording, layout or long-wait feedback timing.
The profile menu separates Switch account from Sign out. Switching warns
that unsaved edits and Console terminal connections will close; running Boxes
continue running. It clears the local identity, organization selection and query
cache before requesting standard OIDC prompt=login. Onboarding and
no-organization recovery use this same account-switch entry. Authentication returns
through the existing registration and organization gates: one membership enters
directly; multiple memberships restore a validated per-user preference or require selection.
Sign out clears the Console session first, then requests RP-initiated logout with the captured ID-token hint. If local storage cannot be cleared, the page offers retry without claiming success. If provider logout fails after local clear, it reports that BoxLite is signed out and offers account choice. Browser Back never replays an account-switch URL. No global Google/GitHub logout is requested.
Authentication-error recovery preserves the full local destination, including query parameters and fragments, even without saved intent. For example, an invitation link retains its invitation ID after retrying sign-in. The destination still passes through the same local-route validation.
Interactive intent is stored per tab until a successful callback. Read operations
do not consume it, and unsuccessful redirects retain a usable Sign in
button. Sign in uses ordinary provider authentication. Use another account requests prompt=login; account switching is optional rather than a mandatory step. Cancelling returns quietly to manual entry. Only local Console return destinations are accepted; the GitHub recovery route
retains its path without callback credentials. OIDC callback parameters and logout
routes are not used as return destinations. Explicit account exits also discard
pending GitHub connection metadata; ordinary reauthentication preserves it. Silent renewal
and ordinary reload preserve the current organization. Authentication document
navigation resets connections and in-memory state before another identity enters.
The hosted identity provider owns the login page. prompt=login requests
reauthentication. This opens the provider login instead of a Console-owned account
chooser. Verify changing the identifier and social/enterprise connections against
the deployed provider; forcing reauthentication does not prove every upstream
connection supports account switching.
For local review, the mock dashboard signs in with its default fixture and does not render an account chooser or simulate an identity provider's login page. It cannot validate entering arbitrary credentials or switching real provider accounts.
To test another identity, explicitly open /dashboard?authDebug=1 and expand
Developer fixtures. The fixture buttons are development tools, not saved login
accounts; they reload the document using the selected test identity. Normal mock
sign-in returns to the default fixture. Resources remain shared fixtures and do not
test server-side data isolation. The panel is absent without the explicit flag;
normal previews show only the Preview marker. Authentication failure and cancellation
are covered by the auth flow tests rather than a simulated provider page.
Organization entry remembers the last explicitly selected organization per user in local storage as a preference, separately from the active tab session. After login, a remembered organization is restored only if it is in the current organization list and membership is confirmed. Failure falls back to selection. Logout clears the active session, while the preference remains; it never grants access. First-time multi-organization users still choose, and single-organization users enter directly.
In mock mode explicit account switching reports that real authentication is required and does not sign in a default identity. Use the dev target for hosted-login verification.
For local authentication transition review, the mock target accepts
/?authPreview=loading to hold the shared loader, and
/logout?authPreview=slow or /logout?switch=1&authPreview=slow to delay
mock navigation by 2.5 seconds. Account switching still reports that the real
sign-in service is required; these fixtures do not simulate an identity provider.
Existing Box lifecycle policy
Overview includes a read-only Lifecycle group within Configuration. Values come
from the current Box response, with no creation defaults: zero intervals and
false are Disabled, while missing fields are Not available. Durations preserve
seconds using mixed day/hour/minute/second units. Auto-delete shows the idle
threshold measured from last activity and explicitly requires the Box to be
stopped; it is not a delay measured from the stop time. Auto-resume reports only
the stored configuration, without promising which access channels wake a Box.
A failed detail refresh retains the last known values with a retry message;
initial failures continue to offer Retry. The mock preview's web-api demonstrates
15-minute auto-stop and a 75-minute auto-delete threshold; batch-worker has all
three options disabled, and other existing fixtures exercise missing fields.
Local trial discovery preview
Run the mock Dashboard and open /dashboard/welcome?preview=trial-onboarding. The entry starts at organization naming, continues through the existing use-case selection, then offers Starter/Team selection, simulated card verification, explicit activation confirmation and immediate navigation to the existing Quickstart. Add &step=plans to inspect the third step directly. Returning from plan choice preserves the use-case selection. Use &scenario=ineligible or &scenario=unavailable to review alternative fixtures; the default is eligible. Product UI contains no preview tooling or simulation labels. Refresh resets the prototype.
This entry requires development mode and VITE_ENABLE_MOCKING=true. The prototype module is excluded from production builds. It never invokes payment APIs or writes simulated subscription results to the Billing cache. Prices and plan concurrency reuse the prototype's presentation data. The production flow uses Billing confirmation before card setup.
The choice step also offers “Explore console — no card required”, completing Welcome without verifying a card or activating a plan. “Have a coupon? Redeem code” expands an independent form: use ACME50 for simulated success, an empty code for required-field feedback, or another code for invalid/expired feedback. Successful trial confirmation and coupon redemption complete Welcome immediately and enter Quickstart, without a separate success screen or another click. Coupon balances are not persisted to the shared mock wallet. Both alternative paths use existing Welcome completion and lead to Quickstart.
Box detail workspace sizing
Overview and Terminal share the available workspace width and page gutters, so the return link, title, actions and tabs stay anchored when switching views. Overview uses a responsive two-column grid with adjacent field labels and values. Only a running Box reserves a viewport-height terminal shell. The existing terminal ResizeObserver refits rows and columns without replacing the session, including when navigation is expanded or the viewport changes.
A stopped Box shows a compact bordered panel with guidance and Start Box, replacing the header Start in this view. The action uses the existing permission check and start mutation. The action stays disabled through the post-start detail refresh; starting waits for the Box state, and a failed start retains a local notice alongside the existing API error notification. Startup progress uses a polite status region; failures use a separate alert. Read-only members receive permission guidance. Overview keeps its header Start.
For mock layout review, open /dashboard/boxes/mock-box-stopped and its
/terminal route. Compare desktop, ultrawide, narrow and zoom-equivalent CSS
viewports with expanded and collapsed navigation. Mock fixtures verify layout
and action wiring, not guest connectivity.
Subscription cancellation
Owners can cancel from Billing Overview or the Plans current-plan card using one shared dialog with optional feedback. See subscription cancellation for the request contract, retry behavior, release dependency and local mock review instructions.