Web application experience
The web application is Arcane's browser control surface for Docker resources, projects, environments, and platform work. It turns route changes into focused work areas and joins environment scope, access rules, server data, live operations, and responsive controls into one operator experience.
Product surface
The application presents Arcane as connected management areas. Each area helps an operator inspect state, change a resource, or follow work that continues after the page action.
Management areas
The navigation groups the product around fleet view, workload control, resources, Swarm, and administration. This grouping lets an operator move from an all-environment view to a single resource while keeping the selected environment in scope.
| Area | User goal |
|---|---|
| Dashboard | See environment health, resource totals, updates, and quick actions across the visible fleet. The page also gives the signed-in user a time-aware entry point. |
| Updates | Find affected containers and projects, check image state, and apply available updates. |
| Security | Review vulnerability risk, scan state, findings, ignored items, and image patch targets when enabled. |
| Projects | Manage Compose-style applications, files, services, deployment state, archived projects, and Git-backed work. Operators can also check for image updates and redeploy affected projects. |
| Environments | Add, select, inspect, connect, update, and configure Docker targets. Bulk removal and fleet update actions are available when the user has the matching access. |
| Containers | Inspect, create, edit, monitor, and control container runtime state. |
| Images | Pull, upload, build, prune, inspect, tag, and check Docker images for updates. Registry search lets an operator find image names before a pull and shows official-image status and popularity context. |
| Networks and volumes | Manage connectivity, ports, persistent data, workspaces, and backups. |
| Swarm | Operate services, nodes, tasks, stacks, cluster settings, configs, and secrets when available. Cluster setup, joining, token handling, and leave or unlock actions are part of this area. |
| Customize and settings | Configure templates, registries, variables, Git repositories, users, access, jobs, backups, notifications, diagnostics, and system behavior. |
| Events and activity | Review system events and follow work that is queued, running, or complete. |
Resource views connect control with operational detail. A container view joins lifecycle actions with health, logs, metrics, network data, storage, processes, and inspection. A project view joins application files, services, logs, deployment, and Git backup state. Image and security views connect image state with update checks, scan results, risk data, and patch work.
References: frontend/…/navigation-config.ts• L38-58 frontend/…/navigation-config.ts• L60-145 frontend/…/navigation-config.ts• L147-269 frontend/…/image-registry-search-dialog.svelte• L24-107 frontend/…/+page.svelte• L9-30 frontend/…/all-environments-view.svelte• L271-347 frontend/…/+page.svelte• L333-345 frontend/…/+page.svelte• L472-485 frontend/…/+page.svelte• L57-67 frontend/…/+page.svelte• L300-350
Route-driven work areas
Routes provide the product structure. Collection routes such as /containers, /projects, and /images show managed sets. Dynamic routes show one resource or one focused task. Nested routes extend an area for builds, topology, GitOps, backups, settings, registries, and workspace files.
The first page load supplies the initial route data. Client queries then keep the view current as the user changes filters, pages, environments, or resource state. URL tabs and search parameters make focused views shareable and restorable, such as a selected image tab, registry repository, registry tag page, or project view.
The frontend is a client Svelte application served as Arcane's web surface. SvelteKit loads establish the first view, while TanStack Query manages shared reads and refreshes after the page becomes interactive.
References: frontend/…/+page.svelte• L21-32 frontend/…/+page.svelte• L347-355 frontend/…/+page.ts• L26-61 frontend/…/+page.svelte• L25-43 frontend/…/+page.svelte• L151-158 frontend/…/+page.svelte• L37-84 frontend/…/+page.svelte• L183-191 frontend/…/+page.svelte• L524-528
Environment-focused operations
An environment is the Docker target that owns the resources shown by a page. Pages use the selected environment when they read or change containers, projects, images, networks, volumes, backups, and Swarm resources.
Environment changes reset selection and prevent old results from presenting as data from the new target. Detail pages and long actions keep the intended environment with the request. Destination controls can target another permitted environment without changing the page's selected environment. This lets an operator switch targets without sending a late response or mutation to the wrong place.
The dashboard keeps the fleet view broad. Resource pages narrow the same model to one selected target. Environment detail then exposes connection state, Docker settings, storage limits, security controls, jobs, version data, edge connection state, and GitOps work. New environments can use a direct agent address or an edge connection. After creation, the application presents the API key and the agent setup commands. Optional mutual TLS assets can be generated for edge setup and downloaded from the same flow.
References: frontend/…/+layout.svelte• L61-85 frontend/…/+page.svelte• L23-64 frontend/…/+page.svelte• L55-82 frontend/…/+page.svelte• L20-39 frontend/…/+page.svelte• L41-66 frontend/…/+page.svelte• L99-129 frontend/…/+page.svelte• L214-280 frontend/…/+page.svelte• L23-47 frontend/…/environment-destination-select.svelte• L16-69 frontend/…/create-network-sheet.svelte• L22-31 frontend/…/create-volume-sheet.svelte• L17-27 frontend/…/image-pull-sheet.svelte• L14-72
Application coordination
Shared application state sits above route pages. It gives every page a stable session, environment, capability, and presentation context instead of making each page rebuild those concerns.
Application shell and access
The application shell supplies the authenticated frame around route content. It chooses desktop or mobile navigation, filters links by the current user and environment, starts shared status observation, and redirects users away from surfaces they cannot reach. The shell logo and OIDC status surface also follow the active theme, branding mode, and user animation preference.
Navigation entries describe product areas and can require an access surface, an administrator role, or an environment feature. The same access model drives the sidebar, mobile navigation, landing-page choices, shortcut keys, and route redirects. The activity center appears only when the user can read activity.
For the detailed shell, route areas, authentication boundaries, theme entry points, and service-worker boundary, see Web app shell and routing.
References: frontend/…/+layout.svelte• L30-69 frontend/…/+layout.svelte• L75-115 frontend/…/+layout.svelte• L153-188 frontend/…/sidebar.svelte• L58-71 frontend/…/sidebar-logo.svelte• L11-35 frontend/…/mobile-nav.svelte• L30-58 frontend/…/oidc-status-panel.svelte• L19-55 frontend/…/navigation-config.ts• L284-331
Environment and feature scope
Feature state describes which optional capabilities an environment supports and enables. The current product-level feature set includes vulnerability management and Swarm. Navigation and page content use this state with permissions before they expose related work.
When an environment is offline or a feature becomes unavailable, the client marks the capability unavailable and removes related security reads. When the environment returns online, the shell refreshes feature state so newly available work can appear without a full sign-in cycle.
Environment settings use the same capability state when they save feature changes. The form checks support and write access, then refreshes the feature state before the affected pages use the new value. An active Swarm cluster remains visible even when its stored toggle is not the source of truth.
References: frontend/…/features.ts• L3-13 frontend/…/features.ts• L1-13 frontend/…/features.store.svelte.ts• L7-86 frontend/…/features.ts• L5-31 frontend/…/+layout.svelte• L75-85 frontend/…/+page.svelte• L269-280 frontend/…/+page.svelte• L341-380
Identity and presentation state
Identity state represents the signed-in user and the permissions that apply globally and within each environment. Presentation state represents account and device choices such as locale, theme, display behavior, environment colors, and mobile navigation preferences.
These roles are linked. Permissions decide which surfaces and actions appear. Preferences decide how those surfaces read and behave. Account security joins password change, passkeys, session sign-out, and the OIDC distinction in one user-facing area. Settings pages use the same shared form pattern for system policy and administration work.
The sign-in surface supports local credentials, OIDC, passkeys, and multi-factor authentication when the matching methods are enabled. A successful sign-in restores the requested or preferred landing area. The locale picker applies a new language at once and also saves it to the signed-in user's profile when one is present. Accent colors can use a preset, the active theme color, or a validated custom color.
Settings have two scopes. UI settings belong to the Arcane manager, while operational settings belong to the selected environment. The settings service merges these scopes for the normal application view and writes each changed part to its owning target. The configuration store loads that merged view only when the user can read settings for the selected environment; otherwise it loads public settings and applies a result only if that environment is still selected.
The version information surface joins release and build identity with permitted platform switches. It shows the active branding and build context, while settings permissions control whether experimental or development presentation options can be changed.
References: frontend/…/account-security-panel.svelte• L14-24 frontend/…/account-security-panel.svelte• L26-67 frontend/…/+page.svelte• L51-117 frontend/…/locale-picker.svelte• L27-82 frontend/…/accent-color-picker.svelte• L23-81 frontend/…/custom-color.svelte• L19-39 frontend/…/oidc-status-panel.svelte• L19-55 frontend/…/sidebar-logo.svelte• L11-35 frontend/…/settings-service.ts• L17-43 frontend/…/settings-service.ts• L65-109 frontend/…/config-store.svelte.ts• L8-24 frontend/…/environment-colors.store.svelte.ts• L40-75 frontend/…/+page.svelte• L113-129 frontend/…/+page.svelte• L230-284 frontend/…/version-info-dialog.svelte• L44-65 frontend/…/version-info-dialog.svelte• L84-167
Live client updates
Live updates keep fleet state, events, activity, logs, and long-running work useful without requiring each page to poll every source on its own. The browser uses shared live connections and targeted resource streams for the active feeds.
The shared transport owns reconnect, heartbeat, page visibility, and stream generations. Environment-facing stores then keep per-environment snapshots and errors. A stream reconnect clears stale connection errors but does not resurrect an environment that is no longer available to the current user.
The dashboard uses live system statistics for visible environments. Resource pages use targeted refreshes when an event or activity changes their data. Log views use a resource-specific stream and keep bounded, searchable output while they follow new messages. This separates fast live status from the more deliberate reads needed for tables and detail views.
References: frontend/…/stream-service.ts• L6-49 frontend/…/client-stream.svelte.ts• L20-63 frontend/…/client-stream.svelte.ts• L65-139 frontend/…/environment-stream.svelte.ts• L57-83 frontend/…/environment-stream.svelte.ts• L137-181 frontend/…/sse-stream.svelte.ts• L1-28 frontend/…/activity-center.svelte• L33-85 frontend/…/log-viewer.svelte• L161-196 frontend/…/log-viewer.svelte• L199-365 frontend/…/+page.svelte• L42-79 frontend/…/all-environments-view.svelte• L169-224
Client data flow
The frontend separates server communication from page presentation. Services express Arcane operations, query keys identify reusable reads, and page state holds choices that do not belong to one server response.
Client services and queries
Client services are the product-facing gateway from a page to the Arcane API. They resolve or receive the target environment, perform a domain operation, and return data that a route can display or use for the next action.
The common API boundary also owns response parsing, server error messages, access-denied feedback, session cancellation, and recovery from an expired session. Protected work stops when the user signs out, while sign-in and other session-free paths remain available. Mutations started as one activity batch carry a shared activity identity. A short server restart during an Arcane update can recover through token refresh instead of forcing a login.
Query keys keep cached reads separate by domain, environment, and request shape. This lets a page refresh one list, count, detail, or filtered result without mixing it with another environment or another view. Route loads can seed the first response, while active queries refetch after mount, focus, reconnect, or a related mutation.
The same model covers Docker resources, registries, templates, GitOps, settings, backups, vulnerability data, Swarm, diagnostics, and scheduled jobs. Container, image, project, network, port, and volume services keep collection and detail work tied to an environment. Image and project operations can also consume newline-delimited progress streams for pulls, deploys, builds, and related work. Workspace services support file browsing and transfer for builds, projects, and volumes. The diagnostics service supplies runtime health data for the diagnostics surface.
References: frontend/…/api-service.ts• L85-121 frontend/…/api-service.ts• L150-177 frontend/…/api-service.ts• L238-367 frontend/…/api-service.ts• L398-433 frontend/…/auth-service.ts• L103-160 frontend/…/auth-service.ts• L253-270 frontend/…/query-keys.ts• L4-14 frontend/…/query-keys.ts• L58-81 frontend/…/query-keys.ts• L112-195 frontend/…/container-service.ts• L35-75 frontend/…/image-service.ts• L40-73 frontend/…/image-service.ts• L106-172 frontend/…/project-service.ts• L19-73 frontend/…/project-service.ts• L277-317 frontend/…/network-service.ts• L17-69 frontend/…/port-service.ts• L10-27 frontend/…/settings-service.ts• L9-15 frontend/…/diagnostics-service.ts• L5-9 frontend/…/build-workspace-service.ts• L8-69 frontend/…/volume-backup-service.ts• L18-132 frontend/…/+page.svelte• L55-77 frontend/…/+page.svelte• L25-40
Scheduled jobs
Scheduled jobs expose recurring platform work as a managed product surface. An operator can see whether a job is enabled, inspect its next run and recent result, open its settings, run it on demand, review durable run history, and restart a continuous worker when the environment supports those controls.
The job list row keeps status, worker health, errors, timing, and action availability visible. A detail panel then adds schedule data, prerequisites, child target runs, settings, and durable history without losing the selected job. Run history separates a paged list from selected-run detail and can link output back to the activity center. Past runs stay readable while a job is disabled. Manual runs, retries, cancellations, worker restarts, and schedule changes remain limited by the job state, target type, and current access.
Job status labels and tones give run, worker, and workflow-step states one shared meaning. Pending runs continue to refresh until they reach a terminal state.
References: frontend/…/job-row.svelte• L41-68 frontend/…/job-row.svelte• L112-164 frontend/…/job-detail-panel.svelte• L52-85 frontend/…/job-detail-panel.svelte• L99-167 frontend/…/job-detail-panel.svelte• L175-285 frontend/…/job-run-history.svelte• L34-63 frontend/…/job-run-history.svelte• L135-239 frontend/…/job-status.ts• L4-21 frontend/…/job-status.ts• L61-88 frontend/…/job-schedule-service.ts• L15-40
Actions and long-running work
Mutations represent changes such as starting a container, deploying a project, creating a network, pulling an image, running a backup, scanning an image, or applying updates. Project update checks first find images with newer versions and then target only the projects that use them. The page keeps the operator's action state visible while the service carries the request to Arcane.
Image pulls and project deployments can stream progress until a terminal result arrives. The registry search dialog turns a search result into a tagged image pull, while the image pull sheet accepts a repository and tag directly. Both close the input surface while work runs and report success, cancellation, or an error to the owning page. Create-network and create-volume sheets use the same destination choice for multi-environment work.
Some work continues after the request returns. Activity identifiers connect the page action to a shared activity record. The activity center starts and stops its shared activity view with the surface, groups batch work, separates running work from history, and lets permitted users search, refresh, cancel, or clear history. Job activity can also open the related run history when the viewer has job access. Deploy, build, pull, scan, patch, backup, prune, and upgrade surfaces can therefore close or change route without hiding the work they started.
Fleet update work has its own recovery view. It can adopt an already-running job after a conflict, keep polling through a manager restart, show stage and elapsed-time state for each environment, and return a terminal summary without treating offline or failed targets as successful updates.
The shared action model presents primary actions inline, secondary actions beside them, and grouped or destructive actions in a menu. It adapts labels, loading state, disabled reasons, links, and rich menu content to the available width. Resource pages can add domain actions without changing the common action contract.
References: frontend/…/types.ts• L5-41 frontend/…/action-button-group.svelte• L28-63 frontend/…/action-button-group.svelte• L258-347 frontend/…/action-buttons.svelte• L192-223 frontend/…/action-buttons.svelte• L229-321 frontend/…/action-buttons.svelte• L490-623 frontend/…/arcane-button.svelte• L60-147 frontend/…/activity-center.svelte• L88-155 frontend/…/activity-center.svelte• L164-305 frontend/…/update-all-dialog.svelte• L83-225 frontend/…/update-all-dialog.svelte• L236-332 frontend/…/update-all-elapsed.svelte• L5-20 frontend/…/image-registry-search-dialog.svelte• L78-107 frontend/…/image-pull-sheet.svelte• L38-72 frontend/…/create-network-sheet.svelte• L81-131 frontend/…/create-volume-sheet.svelte• L53-68 frontend/…/image-service.ts• L116-172 frontend/…/project-service.ts• L39-73 frontend/…/project-service.ts• L277-305 frontend/…/+page.svelte• L91-155 frontend/…/+page.svelte• L435-501 frontend/…/+page.svelte• L153-197
Page state and refresh behavior
Page state holds filters, selected rows, tabs, loading state, drafts, and the environment for which a response was requested. Pages compare that requested scope with current scope before applying the result. This keeps a slow request from one environment from replacing the current view for another.
After a change, a page refreshes every visible result that depends on the changed state. That can include a list, count summary, detail view, activity link, security overview, workspace tree, or settings-derived status. The URL carries state that should survive navigation, while local state carries short-lived editing and selection choices.
Security and registry views show the pattern clearly. Security maps display filters to the service contract and refreshes overview, findings, and patch targets. Registry detail keeps repository search and tag paging in the URL, while still allowing a configured repository to open when a registry catalog is not available.
References: frontend/…/+page.svelte• L23-64 frontend/…/+page.svelte• L37-89 frontend/…/+page.svelte• L166-191 frontend/…/+page.svelte• L98-160 frontend/…/+page.svelte• L50-74 frontend/…/+page.svelte• L122-157 frontend/…/arcane-table.utils.ts• L14-123 frontend/…/registry.ts• L53-77
Shared interface
The shared interface gives resource pages a common language for actions, lists, status, forms, and responsive use. It reduces repeated product behavior while each route keeps its domain meaning.
Shared layouts and actions
Shared layouts make a route's purpose clear before the operator reaches its data. Resource pages pair a title and purpose with actions, summary cards, and main content. Detail pages add a return path, badges, focused actions, and a header that remains useful after scroll. Settings pages separate form work from management work.
The action group is the common boundary for route actions. It keeps lifecycle, deploy, manage, and danger actions distinct. It promotes a single useful menu action into the row and folds labeled actions into a menu when space is tight. This gives containers, projects, environments, settings, registries, and Swarm pages the same action behavior.
ArcaneButton is the shared control for these actions and links. It maps an action to a consistent label and visual tone, then exposes loading, disabled, icon-only, shortcut, and accessible-name behavior across navigation links and state-changing controls.
Tabbed layouts keep related detail views together. Container, image, volume, network, project, service, stack, build, and environment pages use tabs to move between overview, runtime data, files, logs, security, and configuration without losing the resource identity.
References: frontend/…/index.ts• L1-3 frontend/…/resource-detail-layout.svelte• L9-35 frontend/…/resource-detail-layout.svelte• L64-95 frontend/…/settings-page-layout.svelte• L14-42 frontend/…/settings-page-layout.svelte• L80-126 frontend/…/tabbed-page-layout.svelte• L9-39 frontend/…/tabbed-page-layout.svelte• L41-107 frontend/…/arcane-button.svelte• L60-147
Collection views
The Arcane table presents one collection as a desktop table or a mobile card view. It supports the common collection needs: search, filters, sorting, selection, bulk actions, grouping, pagination, saved view choices, and refresh.
It keeps the collection request and the visible view aligned. Search, filters, sorting, page size, selection, grouping, row expansion, and saved display choices can therefore move through one table contract. Page controls support fixed page sizes and an all-rows choice. Desktop and mobile views preserve the same row meaning while changing presentation, so a route does not need a separate product flow for smaller screens.
The toolbar keeps those choices close to the data. Desktop shows filter controls beside search. Mobile moves filters into a popover and exposes view and sort choices in a compact menu. Column visibility, mobile fields, text wrapping, and sort direction remain part of the same view model. Large collections keep the same meaning while the desktop view locks usable column widths and virtualizes the visible rows.
Merged collections add an environment column when more than one environment is shown. The cell can show a name or a stable color dot. This gives fleet preview a clear target cue without changing the collection's resource actions.
Port badges give container and Swarm views a compact view of published and exposed bindings. Published ports link to the configured application base address, while the badge detail keeps protocol, host address, and container target context available.
Collection pages use this pattern for containers, projects, images, networks, ports, volumes, events, registries, users, roles, backups, Git repositories, templates, and updates. This lets an operator learn one list interaction model while the route supplies the domain-specific rows and actions.
References: frontend/…/arcane-table.svelte• L47-83 frontend/…/arcane-table.svelte• L327-358 frontend/…/arcane-table.svelte• L513-645 frontend/…/arcane-table-desktop-view.svelte• L96-220 frontend/…/arcane-table-desktop-view.svelte• L340-475 frontend/…/arcane-table.utils.ts• L77-167 frontend/…/arcane-table-mobile-view.svelte• L50-79 frontend/…/arcane-table-mobile-view.svelte• L136-203 frontend/…/arcane-table-pagination.svelte• L44-116 frontend/…/arcane-table-toolbar.svelte• L53-108 frontend/…/arcane-table-toolbar.svelte• L169-252 frontend/…/arcane-table-view-options.svelte• L27-45 frontend/…/arcane-table-view-options.svelte• L77-128 frontend/…/environment-column.ts• L9-23 frontend/…/environment-cell.svelte• L9-47 frontend/…/port-badge.svelte• L29-105 frontend/…/port-badge.svelte• L108-185 frontend/…/table-cell.svelte• L6-40 frontend/…/table-head.svelte• L6-41 frontend/…/table-row.svelte• L6-31 frontend/…/virtual-rows.svelte• L7-34 frontend/…/+page.svelte• L186-207 frontend/…/+page.svelte• L201-213 frontend/…/+page.svelte• L135-149
Specialized editors and workspaces
Some product work needs more than a list. The frontend provides focused surfaces for Compose and Swarm source editing, project and volume workspaces, image builds, registry browsing, GitOps backup, vulnerability review, diagnostics, logs, and backup restore.
Editors help operators work with files and configuration while keeping validation, original content, permissions, and deployment state visible. Project and volume workspaces load files on demand and keep draft changes separate from the server copy. GitOps-managed files can remain read-only when the repository owns them, while operator-owned workspace files stay available for local work. The code panel can show validation, outline, search, and a diff, and can link read-only Git-backed content to its source.
Compose editing combines standard Docker Compose guidance with Arcane project and service extensions. The editor can validate against the current Compose schema and explain fields, defaults, examples, and Arcane metadata while the operator edits a project.
Template selection turns local and remote template catalogs into reusable project starting points. Operators can search and sort templates, group them by registry, load one into the current flow, or download a permitted remote template for local use.
Operational surfaces connect control to its result. A build shows context, configuration, streamed output, and history. A backup surface joins policy, recovery key, destination, file selection, restore, and activity state. Backup policy editing validates schedule and retention choices. It keeps a configured destination visible when destination listing is not allowed. A Git backup summary shows whether a project has a backup, its recent history, file count, and actions allowed by the environment.
Logs provide a common operational view for containers, projects, and Swarm services. They support follow mode, bounded output, search, timestamps, stream labels, structured JSON or logfmt display, adjacent-line grouping where it is useful, and virtualized rendering for large output.
References: frontend/…/+page.svelte• L289-322 frontend/…/+page.svelte• L727-815 frontend/…/+page.svelte• L145-197 frontend/…/+page.svelte• L982-1043 frontend/…/+page.svelte• L235-334 frontend/…/+page.svelte• L786-859 frontend/…/code-panel.svelte• L14-89 frontend/…/code-panel.svelte• L92-182 frontend/…/compose-schema.ts• L10-13 frontend/…/compose-schema.ts• L33-142 frontend/…/compose-schema.ts• L479-629 frontend/…/template-selection-dialog.svelte• L44-74 frontend/…/template-selection-dialog.svelte• L143-203 frontend/…/template-selection-dialog.svelte• L302-413 frontend/…/backup-policy-dialog.svelte• L64-113 frontend/…/backup-policy-dialog.svelte• L127-169 frontend/…/project-git-backup-summary.svelte• L57-95 frontend/…/project-git-backup-summary.svelte• L159-338 frontend/…/log-viewer.svelte• L64-155 frontend/…/log-viewer.svelte• L199-365 frontend/…/log-viewer.svelte• L422-475 frontend/…/log-viewer.utils.ts• L27-117
Form and administration surfaces
Forms turn management actions into guided changes. They keep resource scope, validation, related choices, and permission limits visible before a request reaches the service boundary.
Container editing groups runtime, environment, ports, volumes, networks, resources, security, and health settings. It also gives image suggestions while the operator types and converts the form's human-readable values into create or edit requests. Network and volume creation use destination-aware sheets. User and role editors connect identity, environment assignments, permission presets, and built-in role limits. This gives administration flows the same clear scope as resource flows.
References: frontend/…/container-form.svelte• L30-139 frontend/…/container-form.svelte• L174-461 frontend/…/container-form-state.ts• L77-105 frontend/…/container-form-state.ts• L180-207 frontend/…/container-form-state.ts• L263-437 frontend/…/create-network-sheet.svelte• L41-131 frontend/…/create-network-sheet.svelte• L153-358 frontend/…/create-volume-sheet.svelte• L36-79 frontend/…/create-volume-sheet.svelte• L82-157 frontend/…/image-pull-sheet.svelte• L88-123 frontend/…/environment-destination-select.svelte• L33-69 frontend/…/user-form-sheet.svelte• L46-150 frontend/…/role-assignments-editor.svelte• L31-109 frontend/…/role-editor.svelte• L25-120 frontend/…/permission-picker.svelte• L28-122
Diagnostics
Diagnostics provide an operator-facing view of Arcane runtime health. The surface combines current runtime and memory state with live connection counts, actor and log views, leak checks, dumps, and downloadable profiles.
The page keeps the view live through a dedicated connection and lets the operator pause display updates without disabling on-demand refresh or diagnostic commands. URL tabs preserve the selected diagnostic area when the operator moves between views.
References: frontend/…/+page.svelte• L36-52 frontend/…/+page.svelte• L113-138 frontend/…/+page.svelte• L201-215 frontend/…/+page.svelte• L288-297 frontend/…/+page.svelte• L318-335
Domain work surfaces
Security, registry, Swarm, and event views add domain meaning to the shared page model. Security presents risk, scan phases, findings, and fixes. Registry detail presents repositories, tags, digests, platforms, and image references. Swarm presents cluster state, services, tasks, stacks, configs, and secrets. Events present category, action, severity, icon, and filter labels in one language.
Optional domain work stays behind the same environment and permission rules as the rest of the application. A security action requires vulnerability capability and access. A Swarm action requires an active or enabled cluster and the matching Swarm permission. A registry tag action requires tag access. This keeps a visible control aligned with what the selected target can accept.
References: frontend/…/+page.svelte• L55-65 frontend/…/+page.svelte• L341-380 frontend/…/+page.svelte• L384-438 frontend/…/vulnerability-scan-item.svelte• L41-169 frontend/…/vulnerability-scan-panel.svelte• L103-153 frontend/…/vulnerability-service.ts• L22-87 frontend/…/swarm-service.ts• L53-95 frontend/…/swarm-service.ts• L164-227 frontend/…/swarm-service.ts• L275-302 frontend/…/+page.svelte• L54-76 frontend/…/+page.svelte• L30-48 frontend/…/+page.svelte• L26-71 frontend/…/+page.svelte• L172-298 frontend/…/+page.svelte• L178-234 frontend/…/events-labels.ts• L20-33 frontend/…/events-labels.ts• L63-103 frontend/…/events-labels.ts• L140-153
Responsive interaction
The interface adapts the same management capability to the available screen. Desktop uses a sidebar and table-oriented views. Mobile uses permission-aware navigation, compact resource views, responsive dialogs, touch-friendly tooltips, and controls that remain reachable around the mobile navigation area.
Mobile navigation can float or dock, show labels or icons, hide on scroll, and expose pinned product areas. The shared action group folds labels into menus when the row is narrow. Select content keeps its anchor width and available-height limit so menus stay usable on small screens. Tooltips become popovers on touch devices so their content does not depend on hover.
The layout choice is separate from physical content space. A forced navigation mode can change the shell, but editors and other content surfaces still use the actual viewport when they need to decide how much room is available.
References: frontend/…/mobile-nav.svelte• L30-58 frontend/…/mobile-nav.svelte• L79-117 frontend/…/sidebar.svelte• L83-151 frontend/…/action-button-group.svelte• L37-75 frontend/…/action-button-group.svelte• L258-347 frontend/…/arcane-tooltip.svelte• L10-48 frontend/…/select-content.svelte• L20-44 frontend/…/+layout.svelte• L153-181
Change checklist
When these files or sections are changed, remember to consider these:
- Navigation entries, route access surfaces, feature gates, landing-page selection, and shell redirects must stay aligned. A route can be hidden or selected as a landing page without being reachable.
- Environment-scoped query keys must include the environment identity and the full request shape. Otherwise cached rows, counts, or details can cross targets.
- Destination selectors must keep their permission filter, selected-environment behavior, route-environment behavior, and service target aligned. A create or pull action must not silently change the page scope.
- Every mutation must refresh each visible result that depends on it. Lists, counts, detail data, activity links, security summaries, and workspace trees can otherwise disagree.
- Shared action definitions must keep placement, group, permission, loading state, disabled reason, destructive state, and localized labels aligned with the operation they expose.
- Shared button changes must keep action configuration, link-versus-button semantics, loading feedback, keyboard shortcuts, disabled behavior, and accessible labels aligned.
- Settings changes must keep manager UI settings separate from environment operational settings. A merged read must still write each field to its owning target.
- Configuration reloads must keep permission checks, public fallbacks, selected-environment guards, and change listeners aligned.
- Feature changes must keep support checks, navigation, page content, settings forms, and feature-specific query cleanup aligned. Disabled vulnerability work must not remain cached or active.
- The shared client stream must keep channel selection, reconnect state, page visibility, heartbeat handling, generation guards, and per-environment filtering aligned.
- Environment colors must stay unique across saved and generated colors. Display style changes must keep name, icon, dot, tooltip, and merged-list behavior aligned.
- Registry changes must keep host and namespace parsing aligned with catalog names, tag requests, displayed references, copy actions, and deletion requests.
- Image pull changes must keep repository and tag normalization aligned between direct pulls, registry search results, streamed progress, cancellation, and completion refreshes.
- Backup and workspace changes must keep environment scope, recovery-key rules, file selection, request generations, draft state, and activity refreshes aligned.
- Scheduled job changes must keep environment scope, enabled state, manual-run rules, manager-only limits, schedule settings, worker status, run-history actions, and activity links aligned.
- Activity changes must keep activity detail loading, streamed output, job metadata, environment scope, permission checks, retries, cancellations, and durable run-history links aligned.
- Fleet update changes must keep conflict adoption, manager restart recovery, per-environment stages, elapsed-time display, terminal counts, and post-update refresh aligned.
- Shared table changes must preserve search, filters, sort fallback, stable row identity, selection, grouping, saved preferences, mobile fields, and desktop and mobile rendering.
- Table pagination changes must keep page count, shown-item totals, fixed page sizes, the all-rows choice, navigation limits, and the request that supplies visible rows aligned.
- Table preference encoding must remain reversible for filters, search, sort, page size, hidden columns, mobile fields, and custom settings. Restored values must also update the request that supplies the visible rows.
- Environment cell changes must keep the single-environment omission, merged-list label style, color contrast, icon choice, tooltip name, and row interaction behavior aligned.
- Port badge changes must keep published and exposed port meaning, host-IP grouping, protocol display, base-URL links, and expandable counts aligned for container and Swarm data.
- URL tab and query-parameter changes must keep loader state, client state, aliases, default tabs, and back links aligned.
- Diagnostic tab, live-connection, pause, dump, and profile changes must keep the live snapshot and on-demand actions tied to the selected diagnostic session.
- New event categories, action labels, feature messages, busy labels, and error paths need matching localized messages in every message catalog.
- Compose editor changes must keep remote schema loading, cached fallback, unavailable state, standard Compose paths, Arcane extension paths, completion values, and validation feedback aligned.
- Template dialog changes must keep search fields, tag normalization, registry grouping, sort order, selection loading, remote-download permission, and refresh callbacks aligned.
- Version information changes must keep build metadata, release links, branding and theme state, settings permission, update feedback, and local settings state aligned.
- Environment creation changes must keep direct and edge connection forms aligned with API-key display, optional mTLS assets, deployment snippets, and environment-list refreshes.
- Session changes must keep logout cancellation, token refresh, unauthorized recovery, protected request signals, and query or store reset behavior aligned.
- Container form changes must keep validation, edit round-tripping, shell-word parsing, health modes, mounts, ports, networks, capabilities, and create-versus-edit request ownership aligned.
- Log viewer changes must keep stream identity, restart generations, bounded retention, structured parsing, grouping rules, auto-scroll, and large-output rendering aligned.
- Read-only code editor changes must keep validation state, diff state, Git edit links, mobile sizing, and lazy editor loading aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The selected environment changes while a list, detail, scan, build, backup, or workspace request is running. | A late response can replace the new target's view or affect the wrong resource. | Carry the requested environment and resource identity through the operation and apply the result only when both still match. |
| A destination selector returns the selected environment after the user picked another permitted target. | A pull, create, or scan action runs on the wrong Docker target. | Keep destination state separate from selected-environment state and pass the resolved destination to the service. |
| A query key omits the environment or a filter, page, sort, repository, or tag value. | Different views can share cached data and show the wrong rows or details. | Build keys from the complete scope and stable request shape. |
| A route permission, feature state, and navigation entry disagree. | A user can see a link that fails after navigation or be sent to an unreachable landing page. | Derive navigation and redirects from the same access and feature state as the route. |
| A feature becomes unavailable while its queries or polling remain active. | Old security or Swarm data can appear as an active capability. | Mark the environment unavailable, stop related work, and cancel or remove feature-specific queries. |
| A streamed or background action returns without its activity identity. | The page can report completion while the real work is still running. | Preserve activity identifiers through service result, toast, page refresh, and activity center. |
| A job activity opens history without checking its current job and environment scope. | A user can inspect the wrong run history or see a control for a target they cannot manage. | Require job metadata, resolve the target environment, and enforce the job permission at the history boundary. |
| A stream reconnect or channel change leaves an old generation active. | Superseded events can update current state or keep a hidden tab consuming server work. | Abort the old reader, advance the generation, and reject late events. |
| A destructive action is placed outside its permission or confirmation rule. | An operator can see an invalid action or remove data without the expected warning. | Derive action visibility from the selected target permission and keep destructive actions confirmed. |
| Registry namespace handling differs between browsing and reference creation. | Copy, pull, browse, or delete can target a different repository or tag than the one shown. | Split the host and namespace once and use the same normalized identity for all registry actions. |
| A registry search result or direct pull does not normalize its tag before streaming. | The UI can display one image reference while the server pulls another or completion refreshes the wrong image. | Normalize the repository and tag once and pass the full reference through the pull callback and refresh path. |
| A backup or restore action lacks its required recovery key, destination, or file selection. | The action fails before it starts or restores more data than intended. | Validate action-specific prerequisites and keep the selected target and file scope visible. |
| A backup policy destination cannot be listed and the form treats the saved destination as missing. | An existing policy cannot be edited safely by a user without destination-list access. | Preserve the configured destination as read-only and avoid replacing it with an empty choice. |
| A project or volume workspace applies a late file response after a rename, delete, environment switch, or restore. | A stale file or draft can return to the editor and overwrite current work. | Bind file responses to the current environment, resource, path generation, and workspace revision. |
| A mobile or narrow action row is not folded into a usable menu. | Controls become clipped, hidden, or impossible to reach on small screens. | Use the shared action placement and overflow behavior instead of page-specific width rules. |
| A risk score is unavailable but is displayed as a clean result. | Missing security data looks like a safe environment or image. | Keep unavailable score state distinct from a none risk band. |
| A job action uses a different environment or enabled state than the job row or detail panel displays. | A run, schedule change, or worker restart can target the wrong environment or appear available when it is not. | Carry the displayed environment and capability state through the job service and refresh the owning job view after the action. |
| A diagnostic view keeps using a closed or superseded live connection. | Runtime data can stop updating or a late snapshot can replace the current diagnostic state. | Close the connection on page exit, bind snapshots to the active session, and keep paused display state separate from command access. |
| Logout does not abort protected requests or clear shared stores. | Data from the prior user can remain visible or a late request can repopulate an authenticated view. | End the session first, clear query and feature state, stop shared stores, and allow only session-free paths to continue. |
| Environment creation succeeds but deployment snippets or generated mTLS assets are not tied to the created environment. | An operator can install the wrong agent configuration or cannot complete the new connection. | Fetch snippets by the created environment identity and show the API key, commands, and assets as one completion state. |
| A table restores a saved view without applying its filters, sort, or page size to the request. | The controls show one view while the rows come from another, often with an empty page after a refresh. | Restore the view into the request model before the first table refresh and reset pagination when the request shape changes. |
| Desktop and mobile collection views use different row or group identity. | Selection, expansion, or group state changes when the operator changes screen size. | Derive both presentations from the same stable item identity and display-entry model. |
| Two environments receive the same saved color or a color is shown without its environment label mode. | Merged lists lose a clear target cue or show conflicting environment identity. | Keep saved colors unique and let the environment cell use the configured name or dot style consistently. |
| A published port link uses a stale or wrong base server URL. | An operator opens the wrong host or cannot reach the published service from the badge. | Build the link from current settings and show the resolved URL context in the port detail. |
| The Compose schema cannot be fetched and no usable cached schema exists. | Standard Compose validation and completion become unavailable while the editor still accepts the draft. | Keep schema state explicit, use the cached schema when available, and show unavailable feedback instead of presenting incomplete validation as valid. |
| A fleet update dialog closes or restarts its poll after a stale status response. | The operator can see a completed dialog while the backend job continues, or lose the update result after reopening. | Bind polling to the current dialog attempt, adopt active jobs after conflicts, and restore status from the backend when reopened. |
| A container edit form drops an empty owned section or changes shell-word conversion during round-trip editing. | Existing ports, mounts, networks, health settings, or commands can remain unexpectedly or change on save. | Keep create and edit contracts distinct and preserve every form-owned section through parse and serialize. |
| A log stream accepts messages from an old resource or keeps unbounded output. | Logs from another target can appear, or a long stream can exhaust browser memory. | Bind messages to the current stream session and compact output against the configured line limit. |
| Structured log parsing treats ordinary text as data or grouping merges a new record with a prior record. | Operators can misread output or lose the start of an error record. | Require valid structured syntax and group only matching non-structured continuation lines. |
Key files
| File | Why to read it |
|---|---|
| frontend/…/+layout.svelte | Shows the authenticated shell, environment-aware navigation, shared status observation, and activity boundary. |
| frontend/…/navigation-config.ts | Shows product areas, access surfaces, feature gates, landing-page inputs, and mobile navigation inputs. |
| frontend/…/features.ts | Shows the optional capabilities that shape the visible product surface. |
| frontend/…/features.store.svelte.ts | Shows how capability state is loaded per environment and how disabled security work is removed from client state. |
| frontend/…/environment.store.svelte.ts | Shows selected and shown environment scope, fleet preview, and environment-change navigation. |
| frontend/…/settings-service.ts | Shows how manager UI settings and environment settings form the normal application settings view. |
| frontend/…/api-service.ts | Shows the shared request boundary, session cancellation, error translation, activity batching, and unauthorized recovery. |
| frontend/…/auth-service.ts | Shows login completion, refresh-token recovery, logout cleanup, and shared authenticated-state reset. |
| frontend/…/query-keys.ts | Shows how client reads are separated by domain, environment, and request shape. |
| frontend/…/stream-service.ts | Shows the shared live stream boundary and its channel model. |
| frontend/…/client-stream.svelte.ts | Shows the shared live connection and its channel model. |
| frontend/…/sse-stream.svelte.ts | Shows the separate live stream boundary used by server-sent updates. |
| frontend/…/activity-center.svelte | Shows the shared activity surface for grouped work, filters, cancellation, retry, and history cleanup. |
| frontend/…/action-button-group.svelte | Shows the common responsive action surface for primary, secondary, grouped, and menu actions. |
| frontend/…/action-buttons.svelte | Shows shared container and project lifecycle actions, permissions, confirmation, and activity-aware work. |
| frontend/…/arcane-button.svelte | Shows the shared button and link contract for action labels, loading, disabled state, shortcuts, and accessibility. |
| frontend/…/update-all-dialog.svelte | Shows fleet update confirmation, job adoption, restart recovery, per-environment progress, and terminal results. |
| frontend/…/image-registry-search-dialog.svelte | Shows registry search, tag normalization, destination selection, streamed image pulling, and completion feedback. |
| frontend/…/image-pull-sheet.svelte | Shows direct image pull input, repository and tag parsing, destination selection, and asynchronous pull feedback. |
| frontend/…/environment-destination-select.svelte | Shows the distinction between page environment selection and an action's permitted destination. |
| frontend/…/new-environment-sheet.svelte | Shows direct and edge environment creation, API-key handoff, agent setup snippets, and optional mTLS assets. |
| frontend/…/locale-picker.svelte | Shows immediate locale selection and profile preference persistence. |
| frontend/…/resource-detail-layout.svelte | Shows the common detail page frame and scroll-aware header. |
| frontend/…/settings-page-layout.svelte | Shows the common settings form and management page frame. |
| frontend/…/tabbed-page-layout.svelte | Shows how resource detail tabs retain identity and actions across large and small screens. |
| frontend/…/arcane-table.svelte | Shows the shared collection contract for request state, selection, preferences, responsive views, and refresh. |
| frontend/…/arcane-table-pagination.svelte | Shows page-size choices, all-rows mode, item totals, and responsive page navigation. |
| frontend/…/arcane-table-desktop-view.svelte | Shows the desktop collection view for grouped, expandable, selectable, and large result sets. |
| frontend/…/arcane-table-mobile-view.svelte | Shows the mobile card view and its group and expansion behavior. |
| frontend/…/arcane-table.utils.ts | Shows how saved table choices become request state and how rows become shared display entries. |
| frontend/…/arcane-table-toolbar.svelte | Shows shared search, filter, selection-action, and table-view controls. |
| frontend/…/environment-column.ts | Shows when merged collections expose environment identity as a sortable column. |
| frontend/…/environment-cell.svelte | Shows name, icon, color, and dot presentations for environment identity. |
| frontend/…/port-badge.svelte | Shows the shared display and link model for published and exposed container or Swarm ports. |
| frontend/…/table-cell.svelte | Shows cell variants and the pinned action-column contract. |
| frontend/…/table-head.svelte | Shows sticky headers and the pinned-column contract. |
| frontend/…/table-row.svelte | Shows shared row states for hover, selection, expansion, detail, and static content. |
| frontend/…/virtual-rows.svelte | Shows the common large-list rendering boundary. |
| frontend/…/code-panel.svelte | Shows validation, outline, diff, command access, responsive sizing, and Git-backed read-only editing. |
| frontend/…/compose-schema.ts | Shows Compose schema loading, cached fallback, validation context, and Arcane-specific editor guidance. |
| frontend/…/template-selection-dialog.svelte | Shows template search, registry grouping, local and remote selection, and download actions. |
| frontend/…/version-info-dialog.svelte | Shows release and build information, branding links, and permission-aware settings toggles. |
| frontend/…/log-viewer.svelte | Shows resource log streaming, session guards, bounded output, grouping, structured display, and virtualization. |
| frontend/…/log-viewer.utils.ts | Shows log grouping and structured JSON or logfmt interpretation. |
| frontend/…/arcane-tooltip.svelte | Shows the shared desktop tooltip and touch popover behavior. |
| frontend/…/container-form.svelte | Shows the user-facing container create and edit areas, related resource queries, and validation flow. |
| frontend/…/container-form-state.ts | Shows container form validation and the conversion between form state and Docker create or edit contracts. |
| frontend/…/job-run-history.svelte | Shows paged job run history, selected-run detail, activity links, and retry or cancel controls. |
| frontend/…/job-status.ts | Shows shared labels, tones, workflow-step names, and pending-run behavior. |
| frontend/…/project-git-backup-summary.svelte | Shows project-level Git backup state, history, file count, and permission-aware actions. |
| frontend/…/+page.svelte | Shows the dashboard entry point and its user-aware greeting passed into the fleet view. |
| frontend/…/all-environments-view.svelte | Shows the fleet view, live statistics, environment actions, and activity-linked refreshes. |
| frontend/…/+page.svelte | Shows the configured sign-in methods, multi-factor step, and post-login landing behavior. |
| frontend/…/+page.svelte | Shows environment collection actions, bulk removal, fleet updates, refresh, and environment-store synchronization. |
| frontend/…/+page.svelte | Shows an environment-scoped collection page with counts, permissions, query refresh, and late-response guards. |
| frontend/…/+page.svelte | Shows a resource detail surface that joins lifecycle actions, runtime tabs, logs, shell, metrics, and URL tabs. |
| frontend/…/+page.svelte | Shows archived-project URL state, status counts, image-driven update checks, deployment actions, and environment-safe query refresh. |
| frontend/…/+page.svelte | Shows Compose editing, workspace files, validation, GitOps limits, deployment state, and draft refresh behavior. |
| frontend/…/container-service.ts | Shows the environment-scoped client boundary for container reads, lifecycle actions, updates, and log downloads. |
| frontend/…/image-service.ts | Shows image inventory, registry search, streamed pulls, updates, uploads, builds, and patch work. |
| frontend/…/project-service.ts | Shows project reads, streamed deploy and build work, workspace-aware creation, and update actions. |
| frontend/…/job-row.svelte | Shows the scheduled-job list row, status, timing, and action choices. |
| frontend/…/job-detail-panel.svelte | Shows scheduled-job detail, prerequisites, child runs, settings, and history. |
| frontend/…/job-schedule-service.ts | Shows the client boundary for schedules, job runs, retries, cancellation, and worker restart operations. |
| frontend/…/+page.svelte | Shows the build workspace, registry target, provider choice, streamed output, and build history. |
| frontend/…/+page.svelte | Shows feature-gated security overview, vulnerability filters, scan progress, and patch targets. |
| frontend/…/vulnerability-scan-panel.svelte | Shows scan summaries, risk insight, paginated findings, and the shared table contract. |
| frontend/…/vulnerability-scan-item.svelte | Shows scan status, phase feedback, severity summary, and environment-safe scan actions. |
| frontend/…/vulnerability-service.ts | Shows image and fleet vulnerability reads, scans, exports, and ignore actions. |
| frontend/…/+page.svelte | Shows URL-driven repository browsing, tag detail, normalized image references, and tag actions. |
| frontend/…/+page.svelte | Shows environment connection, feature, Docker, security, job, edge, and GitOps settings. |
| frontend/…/+page.svelte | Shows live runtime diagnostics, connection inspection, leak checks, dumps, and profile downloads. |
| frontend/…/swarm-service.ts | Shows the environment-scoped client boundary for Swarm cluster and resource operations. |
| frontend/…/+page.svelte | Shows cluster setup, join, unlock, leave, token rotation, and cluster specification management. |
| frontend/…/volume-backup-service.ts | Shows the client boundary for volume backup, restore, browse, upload, and download work. |
| frontend/…/+page.svelte | Shows recovery-key, policy, destination, restore-selection, and activity-linked backup work. |