Introducing a new way to review your PRs.

Read the announcement

getarcaneapp / arcane

Modern Docker Management, Designed for Everyone

View on GitHub

26 documents · Updated Oct 19, 2026

docs / web-app-shell-and-routing

Web app shell and routing

The web app shell gives each browser session one shared frame for identity, environment scope, navigation, appearance, data access, and feedback. It separates public authentication routes from protected application routes while keeping route changes and client state consistent. See also Web application for the broader product view.

Route hierarchy

The route tree turns URL areas into product surfaces. Parent layouts provide shared rules and presentation, while page routes focus on one management task.

Root application context

The root layout is the first client-side coordination point. It checks the current user and auto-login state before it loads settings, environments, feature state, permissions, version data, and Swarm status for a signed-in user. The /logout path receives a public-safe context instead of waiting for authenticated requests.

The root layout also creates the shared client query context. It keeps the environment store usable for public and private sessions, preserves a known user during a transient session-check failure, resets authenticated state when the user changes, and applies redirect decisions after shared data is ready. When several environments are shown, it holds selection while child routes load and changes selection only for the page that is actually opening.

The browser shell adds global feedback and safety controls around the route tree. It provides navigation progress, toast and confirmation surfaces, and a first-login password dialog for an eligible signed-in user. It keeps the document title tied to the active resource and its environment, and registers the service worker only in a production browser.

References: frontend/…/+layout.ts• L31-49 frontend/…/+layout.ts• L68-111 frontend/…/+layout.ts• L112-137 frontend/…/+layout.ts• L144-188 frontend/…/+layout.ts• L191-249 frontend/…/+layout.ts• L263-310 frontend/…/+layout.svelte• L27-50 frontend/…/+layout.svelte• L52-85 frontend/…/+layout.svelte• L94-125

Authentication route area

The (auth) route group contains public entry points such as login, logout, OIDC, and mobile passkey flows. The group changes the route structure without adding an auth segment to the URL. Its layout stays small so authentication pages can use the global shell without receiving protected application navigation. Login also accepts an optional backup mode for recovery access.

The login surface shows only the authentication methods enabled by current settings. It supports local credentials, passkeys, MFA, and OIDC. A successful flow uses a validated same-origin target or the user’s effective landing page, then refreshes shared user and query state before the protected application area renders. OIDC does not receive the signed-out default landing page as an explicit target, so a signed-in user’s saved preference remains authoritative.

The mobile passkey page is a browser bridge for a mobile client. It reads a bounded, versioned request from the URL fragment, runs a WebAuthn registration or authentication ceremony, and returns either a credential or a login transaction through the arcane-mobile:// callback scheme. Invalid, unsupported, cancelled, and failed ceremonies return distinct error results to the mobile client.

The logout surface shows a busy state, signs the user out only after the page mounts, and replaces the browser history with /login. This keeps route preloading from performing a sign-out as a side effect.

References: frontend/…/+layout.svelte• L1-7 frontend/…/+page.ts• L10-49 frontend/…/+page.svelte• L55-177 frontend/…/+page.svelte• L43-126 frontend/…/passkey-bridge.ts• L3-25 frontend/…/passkey-bridge.ts• L116-180 frontend/…/+page.svelte• L26-190 frontend/…/+page.svelte• L1-18

Authenticated application route area

The (app) route group provides the protected frame for management pages. Its layout chooses desktop or mobile navigation, keeps the selected or shown environments active, and checks the current URL against the user’s reachable access surfaces. An access surface is a named route capability supplied by the permission model.

When a user has no session, the shell sends protected paths to login. When a signed-in user cannot reach a path, it selects an allowed fallback or the no-access page. The same access check drives visible navigation, so a link and its route use one boundary.

The shell derives management, resource, settings, and shortcut navigation from the current environment and permission data. It starts environment status and version tracking for signed-in users, refreshes feature state when the browser returns online or gains focus, and sends mobile or tablet pages to the top after navigation. The page subtree stays at one render point and is keyed by user identity, which protects in-progress page work during normal layout changes.

References: frontend/…/+layout.svelte• L30-75 frontend/…/+layout.svelte• L77-117 frontend/…/+layout.svelte• L119-190 frontend/…/auth.ts• L35-52 frontend/…/auth.ts• L93-145 frontend/…/access-policy.ts• L33-68

Shared page layouts

Shared page layouts give route pages a common shape without owning their product data. Resource pages present lists with actions and summary cards. Detail pages present a back link, title, status badges, and actions. Settings pages present form actions, while tabbed pages keep a resource header and its tab content together.

These layouts also carry small-screen behavior. Detail and tabbed pages can move the header into a floating bar after scroll. The settings route layout maps each settings URL to a page title and adds a mobile breadcrumb for subpages. It exposes the active settings form through shared context, so mobile controls can save or reset an editable form without knowing its page implementation. Read-only settings do not show those form actions. The settings loader also supplies the OIDC status needed by authentication settings and records which environment supplied the settings, so a change of environment rebuilds forms with the right values.

References: frontend/…/resource-detail-layout.svelte• L9-38 frontend/…/resource-detail-layout.svelte• L63-155 frontend/…/settings-page-layout.svelte• L14-45 frontend/…/settings-page-layout.svelte• L101-225 frontend/…/tabbed-page-layout.svelte• L9-99 frontend/…/+layout.svelte• L20-135 frontend/…/+layout.ts• L5-25

Dashboard and environment route areas

The dashboard gives a user a cross-environment view of access, health, resource counts, and system activity. It limits each environment to the user’s dashboard permission and can show live system stats, Docker information, upgrade state, and permitted cleanup actions without changing the selected environment.

Environment routes manage the targets that the shell can select. The environment list supports create, remove, refresh, and upgrade actions. An environment detail page brings connection state, feature flags, storage, Docker settings, security settings, jobs, and GitOps into one environment-scoped surface. URL tabs let a copied link open the same area again.

The detail page separates saved environment identity from live connection state. It can test a connection, refresh status and version data, sync an environment, regenerate a remote API key, and show edge connection health, transport, security, and session details. It keeps settings tabs reachable while an environment is offline, so an operator can repair the connection. The jobs tab shows scheduled work, worker health, prerequisites, container exclusions, and environment-specific controls. Job status continues to refresh at a faster rate while work is running and at an idle rate otherwise.

Environment settings use one validated form for identity, connection, feature switches, runtime policy, security, update, healing, and maintenance choices. The save flow separates environment identity changes from agent settings and feature changes, then refreshes feature and environment state after the update. A direct remote URL change requires a new access token, and the token is cleared when the user leaves the route.

References: frontend/…/+page.svelte• L7-31 frontend/…/all-environments-view.svelte• L119-204 frontend/…/+page.svelte• L20-84 frontend/…/+page.ts• L12-67 frontend/…/+page.svelte• L101-131 frontend/…/+page.svelte• L216-298 frontend/…/+page.svelte• L369-489 frontend/…/+page.svelte• L534-667 frontend/…/environment-form-schema.ts• L5-89 frontend/…/jobs-tab.svelte• L39-77 frontend/…/jobs-tab.svelte• L149-250 frontend/…/jobs-tab.svelte• L482-565

Resource route areas

Resource routes use the selected environment or the set of shown environments as their data scope. List pages combine counts, search, filters, actions, and refresh controls. Detail pages add resource state, related objects, activity, and operations while keeping permission and environment checks close to the action.

The main resource areas are:

  • Containers show runtime state, projects, logs, metrics, shell access, configuration, networks, storage, health, inspection, and lifecycle actions. The detail tabs appear only when the resource has the needed data and the user has the needed permission. A Compose tab can locate the service in the root or an included Compose file, loading included content only when needed. The edit route uses a recreate-based form and returns to the refreshed detail route after success.
  • Images support inventory, upload, pull, registry search, pruning, update checks, builds, history, attestations, tags, and vulnerability work. Image actions use one destination environment even when the list spans several environments. Vulnerability scans update detail and list views through scoped polling, and local images cannot use the patch action.
  • Networks show usage, topology, ports, connected containers, and network inspection. Users can create and remove networks, but predefined networks cannot be removed. Detail views can sort connected containers through a fresh environment-scoped request.
  • Volumes show usage and detail state. A volume detail page also provides a lazy-loaded editable workspace and backup history when the user has the matching volume permissions. The workspace supports file changes and staged backup restores. Backup volumes remain protected from rename and remove actions.

Resource pages guard against late results from a previous environment or shown-environment scope. Requests and cached results carry the scope identity, and the page accepts results only when that identity still matches the active scope. Container list metrics use one stream per environment and stop sampling rows that are no longer visible.

References: frontend/…/+page.ts• L12-45 frontend/…/+page.svelte• L19-99 frontend/…/+page.svelte• L147-180 frontend/…/+page.svelte• L287-356 frontend/…/+page.svelte• L609-667 frontend/…/+page.svelte• L31-67 frontend/…/+page.svelte• L71-104 frontend/…/container-network.svelte• L27-125 frontend/…/container-stats-manager.svelte.ts• L8-18 frontend/…/container-stats-manager.svelte.ts• L42-145 frontend/…/container-table.svelte• L123-202 frontend/…/+page.ts• L11-49 frontend/…/+page.svelte• L57-117 frontend/…/image-table.svelte• L88-123 frontend/…/image-table.svelte• L295-367 frontend/…/+page.svelte• L58-117 frontend/…/+page.svelte• L121-293 frontend/…/+page.ts• L10-47 frontend/…/+page.svelte• L23-101 frontend/…/+page.svelte• L57-135 frontend/…/+page.ts• L10-45 frontend/…/+page.svelte• L22-100 frontend/…/+page.svelte• L83-215 frontend/…/+page.svelte• L238-427 frontend/…/+page.svelte• L646-736

Workload and deployment route areas

Project routes manage Compose workloads in the selected or destination environment. The project list shows lifecycle state, archived projects, tags, and image updates. The project detail surface joins service status and logs with Compose files, environment content, override files, included files, and workspace files.

The project editor keeps drafts, open files, validation state, and layout preferences tied to the project and environment. GitOps-managed or archived projects limit edits according to ownership and state. Workspace files can be browsed and edited beside Compose content, while read-only files remain visible with their source reason. The editor loads workspace content lazily, keeps file tabs valid as files change, and commits workspace changes with a file-tree revision before updating project configuration. A project or environment change creates a fresh editor so a draft cannot move to another workload.

The updates route gathers image update candidates for standalone containers and projects. It keeps the two views under URL-tab state and applies checks or updates only to resources in the shown environments. Update checks and update-all actions refresh the related container, project, and image scopes without allowing a late result to replace another environment’s view. Environment GitOps routes manage deploy and backup sync definitions, imports, and project-linked actions.

Swarm routes provide cluster control and environment-scoped views for nodes, tasks, services, and stacks. Stack detail can show live services and tasks or a saved source when a stack is not deployed. Stack authoring supports Compose, override, environment, and extra source files with deploy options such as pruning, registry credentials, and image resolution.

References: frontend/…/+page.svelte• L52-124 frontend/…/+page.svelte• L162-245 frontend/…/+page.svelte• L124-182 frontend/…/+page.svelte• L199-327 frontend/…/+page.svelte• L359-493 frontend/…/+page.svelte• L599-657 frontend/…/+page.svelte• L733-825 frontend/…/+page.svelte• L996-1022 frontend/…/+page.svelte• L69-150 frontend/…/+page.svelte• L193-240 frontend/…/projects-table.helpers.ts• L17-25 frontend/…/+page.ts• L14-61 frontend/…/+page.svelte• L27-105 frontend/…/+page.svelte• L122-224 frontend/…/+page.svelte• L74-139 frontend/…/+page.svelte• L260-395 frontend/…/+page.svelte• L56-145 frontend/…/+page.svelte• L199-245 frontend/…/+page.svelte• L337-505

Customization route areas

Customization routes manage shared inputs for deployment. Git repositories provide source connections. Container registries provide image sources and tag management. Template registries provide local and remote Compose templates. Global variables provide values that can be used across environments and templates.

Template pages separate browsing from registry management through a URL-backed tab. A remote template is a read-only marketplace-style view until it is downloaded. A local template opens a workspace for name, description, Compose content, and environment content. The workspace validates both editable documents, can show differences from the original content, and locks identity fields for folder-backed templates. A local template can be saved, reset, deleted, or used to start a project. Cards keep detail, download, delete, and project-creation actions permission-aware.

Variable changes can apply across environments. The page reports per-environment sync failures so a successful change is not mistaken for a fully applied change.

References: frontend/…/+page.svelte• L21-69 frontend/…/+page.svelte• L15-43 frontend/…/+page.svelte• L21-55 frontend/…/+page.svelte• L21-42 frontend/…/+page.svelte• L164-218 frontend/…/+page.svelte• L46-145 frontend/…/+page.svelte• L147-261 frontend/…/+page.svelte• L274-326 frontend/…/+page.svelte• L327-501 frontend/…/template-card.svelte• L29-36 frontend/…/template-card.svelte• L51-97 frontend/…/template-editor-workspace.svelte• L16-59 frontend/…/template-editor-workspace.svelte• L61-168 frontend/…/+page.svelte• L25-103

Security and administration route areas

The security route gives a view of image risk across environments where vulnerability management is enabled. The page separates risk overview, vulnerability findings, and image patch targets into URL-backed tabs. Scans refresh progress in the background and stop when the page, feature, or environment no longer matches the scan. Vulnerability actions clear stale selection before refresh and apply permission checks per target environment. Patch actions remain tied to the image and its scan result.

The account page combines personal profile, avatar, API key, security, and preference surfaces. Its tabs keep account, preferences, and preview settings shareable. OIDC users cannot change identity fields or a local password, but passkeys remain available. Local users can also revoke other sessions when automatic login is disabled. Appearance, landing page, shortcut, mobile navigation, all-environment preview, environment label style, and environment colors are user preferences. The all-environment limit is an administrator setting, while device layout mode remains local to the browser.

Settings pages manage instance policy and operator functions. They cover authentication, notifications, builds, activity retention, API keys, backups and S3 destinations, diagnostics, roles, users, and webhooks. Authentication settings keep OIDC mappings, federated credentials, roles, and environments together. Build settings choose between local and configured remote providers and hide fields that an older agent cannot support. Notification provider forms use a shared field description to render inputs, selects, switches, and text areas while provider-specific validation enforces credentials and destination rules. Role creation and editing are limited to global administrators. User administration loads roles and environments so profile changes and access assignment remain separate.

Events provide a global activity view with severity filters and stream-triggered refresh. Diagnostics provide live runtime, connection, log, profiling, and goroutine views over a dedicated diagnostic connection.

References: frontend/…/+page.ts• L19-98 frontend/…/+page.svelte• L42-103 frontend/…/+page.svelte• L129-177 frontend/…/+page.svelte• L186-241 frontend/…/security-patch-table.svelte• L16-23 frontend/…/security-patch-table.svelte• L62-91 frontend/…/security-vulnerability-table.svelte• L87-124 frontend/…/security-vulnerability-table.svelte• L133-211 frontend/…/+page.svelte• L31-196 frontend/…/account-preferences-panel.svelte• L115-275 frontend/…/all-environments-preferences.svelte• L30-71 frontend/…/all-environments-preferences.svelte• L79-157 frontend/…/+page.ts• L9-39 frontend/…/+page.ts• L11-58 frontend/…/+page.svelte• L15-90 frontend/…/built-in-provider-form.svelte• L66-117 frontend/…/built-in-provider-form.svelte• L372-407 frontend/…/built-in-provider-form.svelte• L1107-1145 frontend/…/dynamic-provider-form-builder.svelte• L24-82 frontend/…/dynamic-provider-form-builder.svelte• L85-152 frontend/…/+page.ts• L8-30 frontend/…/+page.ts• L10-40 frontend/…/+page.ts• L9-26 frontend/…/+page.ts• L10-46 frontend/…/+page.svelte• L112-167 frontend/…/+page.svelte• L38-53 frontend/…/+page.svelte• L23-84

Navigation is a view of the access model. The same route definitions drive desktop navigation, mobile navigation, landing-page choices, keyboard shortcuts, and permission filtering.

Desktop and mobile navigation

Desktop uses a collapsible sidebar with environment switching, activity access, version information, and permission-filtered route groups. Mobile replaces it with pinned items and a menu sheet. Mobile navigation can float or dock, show labels, and hide while the user scrolls.

The application layout keeps the page subtree at one stable render point while it changes the surrounding chrome for the viewport. This protects in-progress work when the browser crosses the mobile breakpoint. It also scrolls mobile pages to the top after navigation and reserves space for the selected mobile navigation mode. Keyboard shortcuts use the same filtered navigation items and stay inactive in editable fields, on touch layouts, or when disabled by the user.

References: frontend/…/+layout.svelte• L43-50 frontend/…/+layout.svelte• L39-75 frontend/…/+layout.svelte• L119-184 frontend/…/sidebar.svelte• L31-75 frontend/…/mobile-nav.svelte• L33-51 frontend/…/is-mobile.svelte.ts• L1-8 frontend/…/is-tablet.svelte.ts• L1-10

Permission-aware route visibility

Navigation items can name an access surface or require global administration rights. Filtering removes links that the current user cannot reach in the selected environment and removes parent groups whose available children are all hidden.

Route checks use the same access-surface relationships as navigation. A surface can require one permission, all listed permissions, or access through a child surface. Global permissions apply across environments, while environment-scoped permissions use the selected target.

References: frontend/…/navigation-config.ts• L36-54 frontend/…/navigation-config.ts• L282-329 frontend/…/access-policy.ts• L9-20 frontend/…/access-policy.ts• L71-131

Environment liveness

The application shell starts environment status tracking while a user is signed in. This shared state lets the dashboard, environment switcher, and other surfaces show an agent reconnect without a full route load. When a known environment returns online, the shell refreshes feature state for that environment.

The selected or shown environments change the management links built for the shell. Environment-specific GitOps navigation uses the selected environment identity, while Swarm navigation appears only when its feature is enabled. Resource pages can aggregate the shown environments, while destination actions such as create, upload, build, and network or volume changes still resolve one target. All-environment preview preferences can also color or label each shown environment. Environment-scoped pages refresh or clear their data when that identity changes.

References: frontend/…/+layout.svelte• L77-100 frontend/…/+layout.svelte• L147-153 frontend/…/navigation-config.ts• L345-350 frontend/…/navigation-config.ts• L412-424 frontend/…/all-environments-preferences.svelte• L30-71 frontend/…/all-environments-preferences.svelte• L112-157 frontend/…/+page.svelte• L21-92 frontend/…/+page.svelte• L57-87 frontend/…/+page.svelte• L52-85

Theme and global styling

The styling entrypoints establish the visual language before route content renders. They combine shared utility styles, semantic color tokens, named application themes, typography, focus behavior, responsive layout, surface effects, and motion preferences.

Global style entrypoints

frontend/…/layout.css is the global style entrypoint imported by the root layout. It imports shared style layers, fonts, and named theme definitions, then maps semantic variables such as background, foreground, card, border, primary, surface, and glass effects to the utility theme.

The entrypoint also sets page sizing, base font size, focus rings, scrollbar behavior, reduced-motion rules, surface effects, safe-area spacing, and responsive layout variants. These rules apply to authentication and application routes. The root layout sets the effective data-layout value so the shell can follow the user’s device layout choice as well as the viewport.

References: frontend/…/+layout.svelte• L27-29 frontend/…/+layout.svelte• L44-50 frontend/…/layout.css• L1-10 frontend/…/layout.css• L12-160 frontend/…/layout.css• L162-209 frontend/…/layout.css• L211-330 frontend/…/layout.css• L332-433 frontend/…/layout.css• L435-516 frontend/…/layout.css• L518-575

Application appearance

frontend/…/themes.css defines light and dark token sets for the named application themes. The theme utility applies the selected theme and related appearance choices such as OLED mode, accent color, blur, animation, and root font size.

Appearance state is copied to local storage so the document can restore it before the first paint. frontend/…/app.html applies the saved classes, theme attributes, and token overrides before the client starts. The root layout then mounts the mode watcher and keeps browser theme color aligned with the active appearance. Account preferences provide the user-facing controls and save user-owned appearance choices for later sessions.

References: frontend/…/themes.css• L1-65 frontend/…/themes.css• L463-479 frontend/…/theme.ts• L208-292 frontend/…/theme.ts• L403-477 frontend/…/app.html• L15-27 frontend/…/account-preferences-panel.svelte• L115-203

Client hooks and feedback

Client hooks provide small shared behaviors that need route or browser state. They keep repeated concerns such as URL tabs, environment changes, responsive layout, settings forms, and unexpected API errors out of individual pages.

Browser and view hooks

Responsive hooks expose the mobile and tablet breakpoints used by the shell and shared controls. A URL-tab hook keeps the selected tab in the query string without a full page load. An environment-refresh hook tells a page to reload or clear data after the selected target changes. Environment settings hooks let detail pages use the settings for the environment named in the URL rather than the currently selected environment.

These hooks connect browser state to route state without owning product data. Detail pages use the URL-tab contract for resource-specific views. Account, environment, security, update, project, template, Swarm stack, image, and volume pages use the same contract for shareable subviews and resource-scoped state.

References: frontend/…/is-mobile.svelte.ts• L1-8 frontend/…/is-tablet.svelte.ts• L1-10 frontend/…/use-url-tab.svelte.ts• L13-92 frontend/…/use-environment-refresh.svelte.ts• L5-23 frontend/…/use-environment-settings.svelte.ts• L1-80 frontend/…/+page.svelte• L31-45 frontend/…/+page.svelte• L266-298 frontend/…/+page.svelte• L64-75 frontend/…/+page.svelte• L153-193 frontend/…/+page.svelte• L532-536 frontend/…/+page.svelte• L74-91 frontend/…/+page.svelte• L26-42 frontend/…/+page.svelte• L274-286 frontend/…/+page.svelte• L61-70 frontend/…/+page.svelte• L100-109

Client error boundary

frontend/…/hooks.client.ts is the client error boundary for unknown errors. It records the error for telemetry. When an error has an API response, it extracts the server message and status for the route error system and logs the request URL. Other errors are logged for diagnosis.

This boundary gives route pages a useful error result without making each page decode transport errors in its own way. It complements the root shell’s loading, error, toast, and confirmation surfaces.

References: frontend/…/hooks.client.ts• L1-26 frontend/…/+layout.svelte• L5-15 frontend/…/+layout.svelte• L94-125

Service-worker boundary

The service worker improves availability for versioned static assets without becoming a cache for live application data. The root layout registers it only in a production browser and loads it as a module, so development stays outside the worker boundary.

Asset cache boundary

On install, the worker stores the generated static asset set in a cache named for the application version. On activation, it removes older version caches and takes control of open clients. During fetches, it handles only same-origin GET requests for known assets.

API requests are never intercepted. This includes long-lived event streams, which must remain separate network connections for separate browser tabs. An uncached asset falls back to the network and returns a 503 response if that request fails.

The boundary can be summarized as follows.

flowchart LR
    B[Browser request] --> M{Same-origin GET?}
    M -- No --> N[Network]
    M -- Yes --> A{Known static asset?}
    A -- No, including API --> N
    A -- Yes --> C[Versioned asset cache]
    C -- Hit --> R[Cached response]
    C -- Miss --> F[Network or 503]

References: frontend/…/+layout.svelte• L32-35 frontend/…/index.ts• L6-10 frontend/…/index.ts• L12-50 frontend/…/index.ts• L53-83

Change checklist

When these files or sections are changed, remember to consider these:

  • A new protected URL must stay aligned across the route access model, authentication redirect rules, navigation items, and landing-page choices.
  • The logout route must remain outside authenticated loading and must perform sign-out on page entry rather than during route preload.
  • A navigation item with an access-surface ID must match the route surface and its environment scope. A mismatch can hide a valid page or show a link that always redirects.
  • Root loader changes must preserve the data contracts used by public login pages and protected application layouts. Public settings and private settings are not interchangeable.
  • Login success paths must preserve explicit redirect targets, saved landing-page preferences, shared user state, and auth query refresh behavior for each method.
  • Mobile passkey bridge changes must keep request version, size limits, state, callback scheme, and error codes compatible with the mobile client.
  • Shared page layout changes must preserve the action, snippet, tab, and settings-form contracts used by composing pages.
  • Environment-scoped pages must keep request keys, selected or shown-environment identity, displayed data, and action targets aligned.
  • All-environment preview changes must keep preview limits, label style, color ownership, shown-environment feature loading, and destination selection aligned.
  • Environment connection changes must keep online state, edge transport and heartbeat details, certificate controls, and API-key regeneration under the same permission and environment checks.
  • Environment form changes must keep identity updates, agent settings, feature support, validation rules, access-token clearing, and post-save refresh behavior aligned.
  • Job settings changes must keep job IDs, prerequisite links, enable switches, feature gates, polling rates, and container exclusion values aligned.
  • Conditional detail tabs must keep permission checks, resource state checks, URL-tab defaults, and content branches in agreement.
  • Container detail changes must keep environment identity aligned across tabs, included Compose source lookup, live stats, terminal URLs, and permission-gated actions.
  • Container edit changes must keep the load-time form snapshot, recreate warning, mutation payload, cache invalidation, and destination detail route aligned.
  • Image build provider choices must stay aligned with destination settings, provider availability, supported fields, push and load behavior, streamed completion state, and build history.
  • Image scan changes must keep feature gating, scan scope, polling lifetime, summary freshness, list row keys, and detail results synchronized.
  • Network and volume actions must keep the selected destination, protected default or backup resources, row keys, and refresh scope aligned.
  • Workspace editors must keep resource and environment identity, file-tree revisions, draft state, tab state, read-only reasons, staged files, and save payloads synchronized.
  • Project editor changes must keep project identity, environment identity, dirty drafts, workspace revisions, file tabs, validation state, ownership, and save payloads synchronized.
  • Stack editor changes must keep source files, override state, deploy options, source permissions, and detail navigation aligned.
  • Image, update, security, and activity pages must keep filters, query keys, polling or stream refresh, and late-result guards scoped to the same environment or shown-environment scope.
  • Security changes must keep feature gating, overview scope, scan polling, patch targets, filter toggles, bulk ignore or restore actions, selection clearing, and export scope synchronized.
  • Template changes must keep remote read-only behavior, local download identity, editor validation, global variables, permission-gated actions, and project-creation links aligned.
  • Notification provider changes must keep provider keys, form field schemas, value types, credential retention, validation errors, event subscriptions, and test payloads aligned.
  • Authentication settings must keep OIDC mappings, federated credentials, roles, and environment choices in one coherent admin flow.
  • Build settings must keep provider availability, credential retention, older-agent support, and the saved settings payload in agreement.
  • Role and user administration must keep global-admin guards, role manifests, environment lists, profile updates, and manual versus OIDC-derived assignments separate.
  • Semantic theme token changes must cover the base style, named themes, early page-load restoration, browser theme color, and reduced-motion behavior.
  • Mobile shell changes must preserve the stable page render point and the bottom-space variables used by floating and docked navigation.
  • Service-worker fetch changes must keep API requests and live streams outside the asset cache. A cache key or scope change also needs a version cleanup path.

Important failure modes

TriggerConsequenceGuard
A protected route is added without an access rule or redirect prefix.A signed-out user may reach a protected surface, or a signed-in user may receive no useful fallback.Update the route access model and authentication redirect rules together.
The logout page is allowed to use authenticated loading or sign out during preload.A preload can revoke a session before the user opens the page.Return public-safe root data for /logout and call sign-out from the mounted page.
A navigation item uses an access surface that does not match the selected environment.The user can select a link that immediately redirects to another surface or a no-access page.Derive navigation visibility and route redirects from the same permission model and environment.
A transient root session-check failure clears the known user.A brief network fault can sign the user out of the SPA and discard client state.Treat only an explicit authentication rejection as logout; retain the known user for other failures.
A page accepts data from a request for an old environment or shown-environment scope.Rows, live stats, or actions can refer to the previous target.Tag requests and cached results with the active scope and reject stale generations.
A container Compose lookup uses a stale project or environment identity.The detail view can show the wrong source file or mount an editor for another workload.Scope lazy source reads and rendered keys to both project and environment identity.
A container edit saves a load-time snapshot after the detail route has changed.The mutation can update the wrong container or return to a stale detail page.Keep the form and mutation tied to the route data identity and invalidate that detail cache after success.
A container stats stream keeps rows from a prior scope or exceeds the supported subscription size.The table can show wrong metrics or overload the agent stream.Rebuild subscriptions from current row keys, close unused streams, and cap each environment batch.
A conditional tab is shown without its data or permission guard.A user can open an empty or unauthorized detail surface.Build tab items and tab content from the same resource and permission conditions.
An environment form sends a feature or setting that the target agent does not support.The save can fail or leave the form state different from the effective environment state.Validate supported features and permissions before save, then refresh feature and environment state.
A jobs tab keeps polling after its environment, permission, or capability changes.The page can show stale worker state or repeatedly request a disabled surface.Enable queries only for the current environment and permission, and use pending-run state to choose the poll interval.
An image scan poll continues after the page, feature, or image scope changes.A late summary can overwrite another image’s result or keep a dead page active.Stop polling on destroy and scope changes, and accept summaries only for the requested environment and image.
A network or volume mutation refreshes a list without its destination environment.A successful action can leave the visible list stale or update another environment’s view.Carry the destination identity through the mutation, cache key, and refresh.
A workspace save omits the file-tree revision or ignores staged file content.Concurrent changes can be lost, or an upload can appear saved without reaching the target.Send the current revision with file changes and keep text and binary staged payloads in one save operation.
A workspace restore ignores unsaved changes or resource identity.Restore can overwrite live data or show another project’s or volume’s draft.Check the active resource and dirty state before destructive work.
A vulnerability scan poll continues after the page is destroyed or the feature is disabled.A dead page can keep refreshing data or report progress for the wrong environment.Stop polling on destroy, feature change, environment change, completion, and idle timeout.
A template editor treats a remote template as writable or loses the local copy identity.Remote content can be changed incorrectly, or a download can open the wrong template.Keep remote and local views separate and route downloads by the returned local template identity.
A notification provider field is rendered with the wrong value type or credential rule.A saved provider can reject valid input, erase a retained secret, or send an invalid payload.Keep provider schema, renderer conversion, validation, and credential retention aligned.
OIDC role assignments are sent through the manual assignment endpoint.Provider-derived access can be duplicated or changed as manual access.Filter OIDC assignments before editing and send only manual role tuples.
A service worker intercepts an API or event-stream request.Tabs can share stale data or a live connection can replace another tab’s stream.Bypass API paths and cache only generated static asset paths.
The early appearance cache is stale or malformed.The first paint can use the wrong theme, font size, or effect settings.Treat the cache as a hint and let the client reapply current settings after startup.
A settings page registers no active form or ignores the read-only state.Mobile controls can be missing, or a user can be offered save actions that cannot succeed.Keep form registration and mobile actions conditional on an editable subpage form.
A build provider is shown without valid credentials or with unsupported fields.A build can fail after the user selects a provider or silently drop requested options.Gate provider choices by credentials and keep provider-specific fields and payloads aligned.
A project or stack editor merges data from another resource or environment.A save can overwrite another workload or discard current edits.Scope workspace requests, drafts, and cache updates to both resource and environment identity.

Key files

FileWhy to read it
frontend/…/+layout.tsShows shared session, environment, settings, permission, query, scope, and redirect context.
frontend/…/+layout.svelteShows global providers, feedback surfaces, page title, appearance watcher, telemetry hooks, and worker registration boundary.
frontend/…/+layout.svelteShows the small public route frame.
frontend/…/+page.svelteShows authentication method selection, MFA handoff, recovery login mode, and post-login navigation.
frontend/…/+page.svelteShows the mobile passkey ceremony and handoff boundary.
frontend/…/passkey-bridge.tsShows the mobile request and callback contract.
frontend/…/+page.svelteShows provider callback, MFA handoff, shared-data refresh, and safe redirect handling.
frontend/…/+page.svelteShows the mounted logout boundary and replacement navigation to login.
frontend/…/+layout.svelteShows the protected shell, permission-filtered navigation, environment liveness, responsive boundary, and page render point.
frontend/…/all-environments-preferences.svelteShows all-environment preview, administrator limit, labels, and environment colors.
frontend/…/+page.svelteShows environment status, feature-gated settings, URL tabs, connection controls, and save actions.
frontend/…/environment-form-schema.tsShows the validated contract for environment identity, agent settings, feature switches, security, jobs, and maintenance.
frontend/…/environment-connection-details.svelteShows direct and edge connection state, heartbeat health, transport, and session details.
frontend/…/jobs-tab.svelteShows environment-scoped job status, prerequisites, polling, exclusions, and operator controls.
frontend/…/+page.svelteShows conditional detail tabs, included Compose source lookup, live views, network operations, terminal access, and resource actions.
frontend/…/+page.svelteShows the recreate-based container edit flow and its scoped cache refresh.
frontend/…/container-table.svelteShows scoped list refresh, live metrics, sorting, grouping, and row actions.
frontend/…/container-stats-manager.svelte.tsShows the per-environment live metrics boundary for container rows.
frontend/…/+page.svelteShows image detail tabs, vulnerability scan polling, image actions, and environment scope.
frontend/…/image-table.svelteShows image actions, vulnerability scan progress, and environment-safe row updates.
frontend/…/build-config-panel.svelteShows destination-aware build inputs and provider-specific options.
frontend/…/+page.svelteShows network detail, connected-container sorting, environment scope, and protected deletion.
frontend/…/+page.svelteShows volume workspace, backup restore boundary, file tabs, permissions, and environment-safe saves.
frontend/…/volume-table.svelteShows backup-volume protection, size loading, rename, and delete actions.
frontend/…/+page.svelteShows environment-scoped project listing, archive filtering, status counts, tags, and update actions.
frontend/…/+page.svelteShows project services, logs, Compose editing, workspace files, drafts, preferences, and environment-safe refresh.
frontend/…/+page.svelteShows project authoring from templates, Compose content, Docker run input, Git, and container-derived content.
frontend/…/projects-table.helpers.tsShows how project tag choices are merged across environments and how failures remain visible.
frontend/…/+page.svelteShows the shared update view for standalone containers and projects.
frontend/…/+page.svelteShows stack service, task, and saved-source views.
frontend/…/+page.svelteShows stack authoring, source files, override state, and deployment options.
frontend/…/+page.svelteShows local template editing, remote template browsing, download, deletion, validation, and project creation.
frontend/…/template-card.svelteShows template discovery and permission-aware card actions.
frontend/…/template-editor-workspace.svelteShows the shared template editor surface and Compose or environment document validation.
frontend/…/+page.svelteShows security tabs, scan progress, scope guards, and environment selection.
frontend/…/security-vulnerability-table.svelteShows vulnerability filters, export, bulk ignore or restore, selection clearing, and environment-safe refresh.
frontend/…/security-patch-table.svelteShows image patch targets and permission-aware patch actions.
frontend/…/+layout.svelteShows settings page framing, mobile breadcrumbs, form context, environment rebuilds, and read-only action behavior.
frontend/…/built-in-provider-form.svelteShows provider-specific validation, field descriptions, retained credentials, subscriptions, and test actions.
frontend/…/dynamic-provider-form-builder.svelteShows how shared provider field descriptions become typed controls.
frontend/…/+page.tsShows the combined OIDC mapping, federated credential, role, and environment data load.
frontend/…/+page.svelteShows build provider choice, credential rules, and version-aware settings.
frontend/…/+page.tsShows the global-admin guard for role editing.
frontend/…/+page.tsShows user administration’s role and environment data boundary.
frontend/…/navigation-config.tsShows how route groups, landing pages, shortcuts, and mobile choices share one navigation model.
frontend/…/auth.tsShows the session and route-access redirect boundary.
frontend/…/access-policy.tsShows how permission scope and access-surface relationships decide reachability.
frontend/…/layout.cssShows the global style, semantic tokens, responsive variants, surfaces, and reduced-motion entrypoint.
frontend/…/themes.cssShows the named light and dark application themes.
frontend/…/theme.tsShows how appearance choices reach the document and early-load cache.
frontend/…/app.htmlShows pre-paint appearance restore and global browser metadata.
frontend/…/hooks.client.tsShows client API error normalization and telemetry capture.
frontend/…/index.tsShows the versioned static asset cache and API bypass boundary.