Introducing a new way to review your PRs.

Read the announcement

gotempsh / temps

AI-native open-source alternative to Vercel + Sentry + PostHog + Pingdom + Resend + E2B. 440+ CLI operations with drop-in skills for Claude Code, Codex & OpenCode — deployments, analytics, session replay, error tracking, OpenTelemetry, email, sandboxes & AI gateway in one self-hosted Rust binary.

View on GitHub

25 documents · Updated Oct 21, 2026

docs / web-console-application

Web console application

The web console is the browser application for operating a Temps instance. It connects signed-in users to the Temps API and turns server resources into pages for deployment, storage, delivery, observation, AI work, access control, and platform administration. The API owns durable state. The console owns navigation, view state, short-lived form drafts, and a shared cache of server reads.

The console sits below the broader console experience and uses the shared design system for its visual language and UI primitives.

Application boundary

Browser entry point

The browser entry point mounts TempsConsole into the page root. The client can run as the full web application or as an embedded console with a supplied API base URL and extra routes. The production build can also be served by the Temps command-line binary.

References: web/…/index.tsx• L4-11 web/…/App.tsx• L1143-1168 web/README.md• L1-3

Console shell

The authenticated shell gives protected pages a stable frame. It combines navigation, the header, breadcrumbs, the page area, global alerts, the command palette, error boundaries, and operation feedback. The AI assistant dock stays beside the page area, so it remains available during navigation without covering page content.

References: web/…/App.tsx• L541-650 web/…/AiAssistantDock.tsx• L190-220 web/…/Sidebar.tsx• L273-295

Routing and access

Route boundary

The router separates public account actions and special access from protected console work. Password reset, required password change, MFA, CLI approval, and sandbox preview have dedicated surfaces. Other URLs enter the protected layout, which decides whether to show loading, login, an API failure, or the authenticated shell.

The route tree groups work by resource and task. Projects use /projects/:slug/*; project groups use /p/:slug/*; storage uses /storage/:id/*; and workspaces and sandboxes use their own identities. Project routes also expose feedback, cron jobs, releases, SDK outcomes, source-map artifacts, telemetry logs, metrics, and error setup as distinct task surfaces.

This diagram shows how a browser URL becomes an account action, an access surface, or a protected console page.

flowchart TD
    A[Browser URL] --> B[Browser router]
    B --> C{Public or special route?}
    C -->|Yes| D[Account, CLI, or preview surface]
    C -->|No| E[Protected layout]
    E --> F{Current-user read}
    F -->|Loading| G[Loading state]
    F -->|Unauthenticated| H[Login surface]
    F -->|API failure| I[Actionable failure]
    F -->|Authenticated| J[Console shell]
    J --> K[Resource route]
    J --> L[Project or group route]
    J --> M[Settings or access route]

References: web/…/App.tsx• L653-1091 web/…/ProtectedLayout.tsx• L205-359 web/…/ProjectDetail.tsx• L495-652

The sidebar presents common build, data, and observe tasks. The all-tools view and command palette expose less frequent work. Project, group, workspace, AI, and settings areas replace the common navigation with local navigation for that context. Project navigation groups analytics, observation, configuration, and service settings while feature flags hide unavailable tools. Breadcrumbs and safe return parameters preserve the path back to the task that started the current flow.

Navigation is a contract between route registration and entry points. Nested project paths, group repository paths, legacy aliases, and extension links must resolve to the intended page.

References: web/…/Sidebar.tsx• L100-216 web/…/CommandPalette.tsx• L201-269 web/…/ProjectSectionLayout.tsx• L39-165 web/…/project-tools.ts• L45-220 web/…/ProjectDetail.tsx• L719-1040

Session access

The protected layout starts with a current-user request. An unauthenticated request stores a safe destination and shows login in place. A successful login returns the user to that destination or to Projects. The same boundary handles SSO, MFA, required password change, and MFA enrollment. A later unauthorized response invalidates the user read so access is checked again.

Account pages let a user update identity fields, change a password, revoke other sessions, and enable or disable MFA. Sensitive account changes can require fresh verification, and an ended MFA challenge keeps the server's reason visible before returning to sign-in.

References: web/…/AuthContext.tsx• L22-87 web/…/ProtectedLayout.tsx• L205-359 web/…/Account.tsx• L123-173 web/…/MfaVerify.tsx• L41-101

API and data integration

Typed API boundary

The generated client turns the server contract into request functions, response types, query options, and mutation options. It uses /api by default and supports another base path for an embedded console. Pages use queries for reads and mutations for actions. The lower-level SDK remains available for uploads, downloads, streams, terminal sessions, and requests that need a custom lifecycle.

The boundary covers projects, deployments, storage, domains, providers, email, backups, observation, AI, security, users, teams, keys, nodes, plugins, and instance settings. It also covers Sentry-compatible error ingestion, release and source-map workflows, session replay, feedback, cron monitors, telemetry release correlation, SDK outcome reports, AI applications and workspaces, and project telemetry filters. Generated query keys include the request inputs that define each result.

Source-map support separates public DSNs used by application SDKs from build credentials used for artifact upload. Release creation and finalization preserve Sentry CLI compatibility while Temps manages source maps as its own artifacts.

References: web/…/index.ts• L4-7 web/…/sdk.gen.ts• L24-107 web/…/sdk.gen.ts• L173-205 web/…/react-query.gen.ts• L12-61 web/…/types.gen.ts• L1261-1371

Server-state boundaries

TanStack Query is the shared server-state layer. Pages read from its cache instead of copying resource data into unrelated local state. Query scope follows the resource identity and the question being asked, such as user, project, environment, time range, page, cursor, release, trace, or workspace.

Filters that change the question stay in the URL where a shared link or reload should preserve them. Changing a filter resets the related page or cursor so the result belongs to the new question. Long-running work refreshes while active and settles into a stable detail view when complete. Mutations invalidate the list and detail reads that the action can change.

References: web/…/react-query.gen.ts• L20-61 web/…/LogsList.tsx• L86-192 web/…/ClientOutcomes.tsx• L25-41 web/…/TelemetryReleases.tsx• L27-52

Read and write states

The console distinguishes loading, verified empty, missing, forbidden, unavailable, and stale-but-usable data. A confirmed missing resource gets a not-found view. A permission error or server failure keeps the resource identity visible and offers a retry instead of pretending that the resource does not exist.

Writes follow the same rule. A successful mutation invalidates or refreshes affected server state. A failed mutation keeps the page context and reports the server reason. Forms keep their values after a failed request so the operator can correct or retry without reconstructing the work.

References: web/…/ErrorEventDetail.tsx• L105-169 web/…/CronMonitors.tsx• L733-785 web/…/SettingsLoadFailure.tsx• L1-80

Platform settings boundary

Platform settings are one server-owned settings document. The settings service reads the complete document, merges a page's partial change, validates it, and sends the complete update back. This prevents an unrelated settings page from resetting fields that the current page does not edit. Secret values are masked on reads and write-only values stay out of the client cache.

Monitoring settings treat retention as a data policy. They keep separate windows for metrics, proxy logs, traces, OTel logs, OTel metrics, container logs, page views, error events, visitors, and unreferenced IP addresses. An empty optional window means keep the data, while shortening a window makes old data eligible for later background deletion.

References: web/…/platformSettings.ts• L260-359 web/…/MonitoringSettingsPage.tsx• L264-371 web/…/MonitoringSettingsPage.tsx• L635-1117 web/…/analytics-retention.ts• L6-89

State and context layers

Application contexts

React contexts hold cross-page state with a clear owner. Authentication owns the session and logout. Projects and presets expose shared catalogs. Platform access and feature hooks expose instance capability. Breadcrumbs own the header trail. Plugin and console-extension contexts provide optional routes and navigation. AI contexts provide shell-wide assistant actions.

These contexts do not replace server state. They give shell elements and pages a stable way to consume query results, extension state, and shared UI actions without passing them through every component.

Context or layerMain concernTypical consumers
AuthenticationCurrent user and session actionsProtected layout and account pages
Projects and presetsShared service catalog and deployment choicesProject shell and setup pages
Platform access and featuresInstance capability and limitsPlatform-aware pages
BreadcrumbsCurrent route trailHeader and page headers
Plugins and extensionsOptional routes, links, and brandingShell and settings
AI assistantPersistent chat and guided actionsShell and project pages

References: web/…/App.tsx• L12-27 web/…/AuthContext.tsx• L12-20 web/…/ProjectsContext.tsx• L9-17 web/…/context.tsx• L10-32

Local form state

Forms keep drafts local until the operator submits them. Schema validation and page-specific state turn input into an API request. After a successful write, the page resets its draft from the accepted values or refreshes the related query. This keeps unsaved choices separate from server data.

The pattern supports import, domain, DNS, user, source-map, cron, feedback, and settings flows. Read failures stay separate from empty choices so an unavailable list cannot look like a valid empty selection. Numeric values that can exceed JavaScript's safe integer range remain text until the API boundary.

References: web/…/CronMonitors.tsx• L617-785 web/…/LogAttributeFilter.tsx• L43-146 web/…/SourceMaps.tsx• L501-554

Extension state

Console extensions let another edition add routes, navigation, header actions, project links, and branding without forking the shell. External plugins use a separate catalog and install path. The console can show usable plugins with per-plugin or registry failures. Persistent-storage capability gates installation.

References: web/…/extensions.tsx• L66-120 web/…/usePlugins.ts• L8-47 web/…/PluginsPage.tsx• L63-130

Workspace state

An AI workspace is a persistent user-owned area for conversations, files, previews, linked services, and replaceable compute. A global workspace serves user-wide work. An application workspace groups deployable services with shared files and data-service links. Sleeping or replacing compute does not remove persistent files.

Workspace pages keep readiness, selected thread, file changes, import progress, panel state, and terminal view local. The API remains authoritative for workspace identity, resources, lifecycle, and linked services.

References: web/…/AgentSandboxSandboxPage.tsx• L51-117 web/…/ApplicationProjectsPanel.tsx• L42-115 web/…/WorkspaceTerminalPanel.tsx• L101-169

Access and capability state

Pages use the current user's role and server capability reads to decide which actions can work. They keep a visible explanation when a capability is forbidden or unavailable. This prevents a refused read from becoming a misleading empty state and prevents a page from sending requests that the current role cannot use.

References: web/…/DnsProviders.tsx• L80-106 web/…/PluginsPage.tsx• L63-93 web/…/CronMonitors.tsx• L116-175 web/…/CronMonitors.test.tsx• L27-118

Pages and components

Project discovery and creation

Projects is the entry point for service discovery and onboarding. It combines project groups with standalone services, keeps search and pagination in the URL, and changes to first-service guidance on an empty instance. A group supplies shared variables and repository context while each service keeps its own deployment identity.

Creation accepts templates, managed services, Git repositories, public Git URLs, manual settings, and uploaded files. Import is staged so the operator can discover workloads, select a repository or directory, review variables and services, and then create the service.

References: web/…/Projects.tsx• L74-179 web/…/ImportProject.tsx• L27-100 web/…/CreateServiceNew.tsx• L54-83

Project operation pages

The project route is the main work area for a deployed application. Its header connects identity, health, deployment, visitors, repository, URLs, and the next action. Nested sections cover environments, deployments, analytics, metrics, observation, services, automation, security, storage, and configuration under one project identity.

Deployment detail pages show source, stages, logs, screenshots, public URLs, failure guidance, and recovery actions. The selected deployment determines the valid next action, so recovery does not accidentally use a newer or unrelated source.

References: web/…/ProjectDetail.tsx• L119-203 web/…/ProjectDetail.tsx• L659-1040 web/…/DeploymentDetails.tsx• L139-190 web/…/ProjectSectionLayout.tsx• L94-165

Storage service pages

Storage pages provision and operate managed databases and object stores. Creation combines service type, engine settings, placement, and optional project linking. Service detail joins readiness, health, resources, linked projects, backups, logs, upgrades, and lifecycle actions.

The data browser provides a safe view of containers and entities. Its path and selected entity define the browser question. Downloads and data queries use the API boundary while logs, query performance, import, restore, and cluster views remain tied to the same service identity.

References: web/…/Storage.tsx• L44-85 web/…/ServiceDetail.tsx• L4-48 web/…/ServiceDataBrowser.tsx• L6-26

Delivery and provider pages

Delivery pages connect a hostname, DNS account, certificate, route, and delivery profile without merging those resource identities. DNS provider pages manage external credentials, zones, managed domains, hostname mode, conflicts, and verification. Certificate pages show on-demand TLS attempts and their outcomes.

Git pages manage provider records, connections, repository sync, credentials, and safe deletion. Email pages manage providers, domains, DNS records, verification, sending facts, analytics, and SDK guidance.

References: web/…/DomainDetail.tsx• L127-140 web/…/DnsProviders.tsx• L80-170 web/…/Certificates.tsx• L97-135 web/…/GitSources.tsx• L51-149 web/…/Email.tsx• L16-74

Analytics and observation pages

Analytics and observation pages answer traffic, product, and runtime questions for a project or the whole instance. They cover analytics, metrics, dashboards, alerts, logs, traces, errors, replay, and AI activity. Project tools group these tasks into Analytics and Observe so an operator can move from a signal to related detail without leaving project scope.

Search, severity, service, attributes, time range, trace correlation, pagination, historical bounds, metric aggregation, label filters, and group-by choices stay tied to the URL or detail link. A collection failure remains different from an empty result.

The logs explorer supports trace links and typed attribute predicates. Numeric predicates preserve signed 64-bit values as text. The metrics explorer supports aggregation, label and group-by views, thresholds, anomaly bands, deployment markers, and histogram percentiles.

References: web/…/LogsList.tsx• L86-216 web/…/LogAttributeFilter.tsx• L43-146 web/…/MetricsExplorer.tsx• L249-418 web/…/MetricsExplorer.tsx• L420-628 web/…/project-tools.ts• L45-143

Error tracking pages

Error tracking connects a project SDK to error groups, individual events, browser policy reports, source maps, feedback, releases, session replays, and SDK ingestion health. The setup page recommends a platform, creates or reuses a project DSN, presents SDK guidance, and waits for the first event before sending the operator to the error dashboard.

Error event detail supports Sentry-shaped events and native browser reports. Sentry events expose exceptions, stack traces, spans, breadcrumbs, request and runtime context, tags, measurements, and raw data. CSP reports show the blocked resource, policy, source location, and report-only status even when no SDK metadata exists.

Source-map pages separate release selection from file inspection. Operators can upload or delete source maps and use Sentry CLI with a build token. Feedback pages support triage and links to an associated error or replay. Release pages correlate one release across retained errors, traces, logs, metrics, feedback, and cron check-ins.

This diagram shows the main path from SDK setup to an investigation record and its related evidence.

flowchart LR
    A[Choose platform] --> B[Create or reuse project DSN]
    B --> C[Install SDK and send test event]
    C --> D{Signal received?}
    D -->|No| E[Review setup or SDK outcomes]
    D -->|Yes| F[Error group]
    F --> G[Event detail]
    G --> H[Stack trace, CSP report, replay, feedback, or release context]
    H --> I[Upload source maps when traces are minified]

References: web/…/ErrorTrackingSetup.tsx• L554-669 web/…/ErrorEventDetail.tsx• L38-89 web/…/SentryEventDetail.tsx• L34-118 web/…/CspReportDetails.tsx• L7-59 web/…/SourceMaps.tsx• L80-214 web/…/ProjectFeedback.tsx• L55-197 web/…/TelemetryReleases.tsx• L61-133 web/…/ClientOutcomes.tsx• L43-169

Session replay pages

Session replay turns recorded browser events into a player and an event timeline. The detail page keeps the visitor and session identity in the route, loads session metadata and events separately, and lets the operator select an event through the URL.

The player fits the recorded viewport to the available space and preserves playback position when the layout changes. The event panel groups adjacent incremental events and expands selected raw data. Loading, error, and no-event states remain visible in the same detail frame.

References: web/…/SessionReplayDetail.tsx• L217-309 web/…/SessionReplayDetail.tsx• L413-567 web/…/SessionReplayPlayer.tsx• L52-138

Project monitoring pages

Project monitoring pages turn application signals into checks and operator action. Cron monitors record SDK check-ins, compare them with a configured schedule, and report late starts, failures, timeouts, recovery, and run history. Temps detects the schedule state but does not execute the scheduled job.

The list, detail, and edit routes share one monitor identity. A monitor can use project or environment scope, and its slug and scope stay fixed after creation so SDK check-ins keep reaching the same monitor. Configuration saved in Temps becomes authoritative over SDK settings and resets the health window.

The project also exposes status pages, uptime monitors, alert rules, feedback, release correlation, and SDK discard reports. These pages use the same project identity but keep their data contracts separate.

References: web/…/CronMonitors.tsx• L109-177 web/…/CronMonitors.tsx• L180-303 web/…/CronMonitors.tsx• L305-615 web/…/CronMonitors.test.tsx• L27-118

Security and access pages

Security pages show environment scans, searchable findings, exports, and finding detail. Access pages manage users, teams, roles, API keys, SSO providers, and audit history. A team groups users, but project access changes only after an explicit project grant. API key secrets appear only at creation.

User creation can create the account first and then assign team membership. If the second action fails, the page keeps the account result and offers a safe retry instead of implying that the account was not created.

References: web/…/CreateUser.tsx• L117-180 web/…/Users.tsx• L15-72 web/…/Teams.tsx• L4-19 web/…/ApiKeys.tsx• L26-75

AI gateway pages

AI gateway pages manage provider keys, model catalogs, defaults, usage, costs, traces, and limits. Provider model state can be refreshed, enabled, disabled, or selected as a key default. Usage pages show requests, tokens, latency, errors, estimated cost, and provider and model breakdowns. The limits page adds instance defaults, project overrides, monthly spend, and reset-to-inherit behavior.

References: web/…/AiGateway.tsx• L313-455 web/…/AiGateway.tsx• L924-1082 web/…/AiGatewayUsagePage.tsx• L11-29 web/…/AiGatewayLimitsPage.tsx• L126-260

AI workspace pages

Workspace and harness pages connect a workspace to an external coding or agent tool. They support provider sign-in sessions, credentials where allowed, runtime limits, previews, files, linked services, and terminal tools. Global skills and MCP server pages provide reusable AI resources.

References: web/…/AgentSandboxProviderDetail.tsx• L48-113 web/…/AgentSandboxSandboxPage.tsx• L20-59 web/…/WorkspaceTerminalPanel.tsx• L147-180

Platform settings pages

Settings pages expose instance-wide behavior and operational state. Dedicated pages cover authentication, OIDC, rate limits, request timeouts, build limits, monitoring and disk retention, analytics retention, registries, cloud links, nodes, plugins, telemetry, service discovery, and version state.

Capability and status reads shape the available action. A node can be drained before removal. Cloud setup reports enrollment and backup state. Plugin catalogs can remain readable when installation is blocked by storage capability. Settings pages show whether a change is immediate, affects future work, needs a restart, or runs asynchronously.

References: web/…/Settings.tsx• L124-199 web/…/MonitoringSettingsPage.tsx• L419-505 web/…/MonitoringSettingsPage.tsx• L635-1117 web/…/NodesPage.tsx• L53-74 web/…/PluginsPage.tsx• L63-130

Shared components

Shared components provide stable ways to move, read, act, and recover. Page containers, headers, breadcrumbs, detail views, tables, forms, dialogs, status views, empty states, read-failure views, operation trays, and responsive regions keep page behavior consistent. The design-system primitives provide the common visual and interaction language.

Pages remain responsible for the product question. Shared components carry repeated behavior such as loading, retry, confirmation, one-time secret display, sensitive-action verification, URL state, toasts, and operation progress.

References: web/…/PageContainer.tsx• L7-88 web/…/read-failure.tsx• L1-20 web/…/LogsEmptyState.tsx• L9-31 web/…/index.ts• L4-53 docs/design-system.md• L1-20

End-to-end user flows

Sign-in flow

Sign-in connects a browser session to the protected route tree. The browser checks the current user, shows the required account step, and returns to the saved destination after credentials, SSO, MFA, or a required password change succeeds.

sequenceDiagram
    participant U as User
    participant W as Web console
    participant A as Temps API
    U->>W: Open protected URL
    W->>A: Read current user
    A-->>W: Unauthenticated or next step
    W-->>U: Show login, MFA, or password change
    U->>W: Complete account step
    W->>A: Authenticate or verify
    A-->>W: Session ready
    W-->>U: Return to saved page or Projects

References: web/…/ProtectedLayout.tsx• L205-241 web/…/Login.tsx• L71-124 web/…/MfaVerify.tsx• L63-101

Project creation flow

Project creation starts from Projects, a group, the command palette, a repository, an import wizard, or an upload. The operator chooses a source, reviews detected services and variables, confirms deployment settings, and waits for the API to create the service and begin its first deployment.

flowchart LR
    A[Projects, group, repository, or upload] --> B[Choose source]
    B --> C[Detect services and settings]
    C --> D[Review variables and deployment plan]
    D --> E[Create service]
    E --> F[Open project and follow deployment]

References: web/…/Projects.tsx• L95-148 web/…/ImportProject.tsx• L81-100 web/…/ProjectConfigurator.tsx• L288-439

Deploy and operate flow

After a service exists, the project route supplies stable context for delivery and operation. The operator chooses a source-aware action, the API starts work, and the console watches deployment and environment state before exposing URLs, runtime details, recovery actions, and observation links.

flowchart LR
    A[Project route] --> B[Choose deployment action]
    B --> C[Temps API starts work]
    C --> D{Deployment state}
    D -->|Active| E[Poll progress]
    D -->|Complete| F[Inspect URLs and runtime]
    D -->|Failed| G[Review report and recover]
    F --> H[Observe, configure, or operate]

References: web/…/ProjectDetail.tsx• L172-203 web/…/ProjectDetail.tsx• L291-330 web/…/DeploymentDetails.tsx• L1042-1332

Storage operation flow

Storage operation starts with a service type and ends with a managed data or object-storage resource. The same service identity then leads to health, monitoring, logs, browsing, query performance, backups, restore, import, and upgrade.

flowchart LR
    A[Choose service type] --> B[Configure engine and placement]
    B --> C[Create service]
    C --> D{Runtime state}
    D -->|Provisioning| E[Track readiness]
    D -->|Running| F[Health and operations]
    D -->|Failed| G[Review or retry]
    F --> H[Browse, backup, restore, import, or upgrade]

References: web/…/Storage.tsx• L44-85 web/…/ServiceDetail.tsx• L4-48 web/…/ServiceDataBrowser.tsx• L6-26

Analytics and observation flow

Analytics and observation start with a project or all-project scope and a time window. Filters change the API question, result pages reset their cursor or page when needed, and detail links carry enough scope and time bounds to explain the record that the operator opened.

flowchart LR
    A[Choose analytics or observation surface] --> B[Set scope and time]
    B --> C[Add search or filters]
    C --> D[Query Temps API]
    D --> E{Result state}
    E -->|Data| F[Inspect chart or table]
    E -->|Empty| G[Change scope or range]
    E -->|Failure| H[Retry with reason]
    F --> I[Open event, trace, session, or project detail]

References: web/…/LogsList.tsx• L103-192 web/…/MetricsExplorer.tsx• L249-418 web/…/TelemetryReleases.tsx• L27-52 web/…/SessionReplayDetail.tsx• L238-259

Error tracking flow

Error tracking starts with an SDK setup choice and ends with a linked investigation. The console creates or reuses a DSN, guides the SDK install, waits for a first event, and then connects the event to source maps, release identity, feedback, replay, or SDK-reported discard data.

flowchart LR
    A[Select SDK platform] --> B[Create or reuse DSN]
    B --> C[Install and initialize SDK]
    C --> D[Send event]
    D --> E{Received by Temps?}
    E -->|No| F[Review setup, logs, or SDK outcomes]
    E -->|Yes| G[Open error group]
    G --> H[Inspect event and stack trace]
    H --> I[Correlate release, feedback, replay, or source maps]

References: web/…/ErrorTrackingSetup.tsx• L564-619 web/…/ErrorEventDetail.tsx• L47-65 web/…/ProjectFeedback.tsx• L200-360 web/…/ClientOutcomes.tsx• L43-169

AI gateway flow

AI gateway work starts with provider setup or a usage and limits view. The operator configures a provider, selects usable models, reviews traffic and spend, and sets instance or project limits. The page then refreshes server state so the next gateway request uses the accepted configuration.

flowchart LR
    A[AI gateway] --> B[Configure provider key]
    B --> C[Refresh and select models]
    C --> D[Review usage and cost]
    D --> E[Set instance or project limits]
    E --> F[Gateway enforces accepted limits]

References: web/…/AiGateway.tsx• L459-555 web/…/AiGatewayUsagePage.tsx• L11-29 web/…/AiGatewayLimitsPage.tsx• L135-260

Domain and delivery flow

Domain setup begins with a hostname and verification method. DNS setup connects an external account and checks its records. Delivery setup chooses how traffic reaches the service. Certificate, provider, route, and delivery state remain separate so a change in one does not silently change the others.

References: web/…/DomainDetail.tsx• L127-140 web/…/DnsProviders.tsx• L80-170 web/…/Certificates.tsx• L97-135

AI workspace flow

AI setup begins in the gateway, harness setup, or a workspace. The operator configures a provider or creates scoped access, verifies readiness, and then uses conversations, previews, files, linked services, or terminal tools. Workspace compute can sleep while persistent files and service links remain available for the next turn.

flowchart LR
    A[AI gateway or workspace] --> B[Configure provider or harness]
    B --> C[Create or save credential]
    C --> D[Verify readiness]
    D -->|Ready| E[Use threads, files, previews, or terminal]
    D -->|Not ready| F[Show reason and retry]
    E --> G[Wake or reconnect compute when needed]

References: web/…/AgentSandboxProviderDetail.tsx• L48-113 web/…/AgentSandboxSandboxPage.tsx• L51-117 web/…/WorkspaceTerminalPanel.tsx• L147-180

Platform administration flow

Platform administration begins with a capability or status read. The page shows the current effective state, accepts a validated change or guarded action, and reports whether the change is immediate, restart-bound, or asynchronous. Related queries refresh after the server accepts the change.

This pattern covers access, security, nodes, cloud links, registries, retention, timeouts, build limits, telemetry, plugins, service discovery, and version updates. It keeps an unavailable capability visible with a reason and recovery path.

References: web/…/NodesPage.tsx• L53-74 web/…/CloudSettingsPage.tsx• L65-129 web/…/MonitoringSettingsPage.tsx• L338-387 web/…/PluginsPage.tsx• L63-130

Change checklist

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

  • Keep route registration aligned with the sidebar, project tool groups, all-tools catalog, command palette, breadcrumbs, redirects, and extension-provided links.
  • Preserve service, group, project, environment, workspace, visitor, session, release, trace, and resource identity across nested routes and safe return paths.
  • Keep protected-route changes aligned with current-user invalidation, saved destinations, MFA, required password change, and public special routes.
  • Keep generated API exports, response types, query keys, and mutation options aligned with the server contract. Regenerate the client before changing page assumptions.
  • Include every result-defining input in a query key, including URL filters, time bounds, pagination, cursor, release, trace, and workspace scope.
  • Keep active-operation polling aligned with terminal states, retry behavior, cache refresh, and the difference between stale data and a confirmed missing resource.
  • Preserve the complete platform settings document on partial saves. Keep masked and write-only credential fields out of the client cache.
  • Keep source-map setup aligned with public DSNs, build-only credentials, release names, file paths, artifact deletion, and Sentry CLI compatibility.
  • Keep typed log filters aligned with the API's declared types, signed 64-bit text values, comparison operators, byte limits, and page reset behavior.
  • Keep error setup aligned with platform presets, DSN creation, browser policy report links, first-event polling, and safe navigation to errors, logs, and SDK outcomes.
  • Keep metrics, alerts, logs, traces, analytics, replay, alarms, releases, feedback, SDK outcomes, and proxy views aligned with URL filters, time windows, pagination, and detail-link bounds.
  • Keep storage pages aligned with engine family, hierarchy capabilities, service links, import and backup compatibility, restore plans, readiness, and terminal run states.
  • Keep DNS, domain, certificate, route, delivery, Git, and email flows separate while preserving links between provider state, verification, records, and project authorization.
  • Keep AI provider, model, usage, limits, and harness flows aligned with provider readiness, one-time secrets, project overrides, budget attribution, safe return paths, and cache invalidation.
  • Keep persistent workspace files separate from replaceable compute. Preserve the distinction between global, application, and standalone workspace identities.
  • Keep capability-gated settings aligned with forbidden reads, restart-required changes, node drain state, partial plugin failures, cloud status, retention semantics, and discovered-route conflicts.

Important failure modes

TriggerConsequenceGuard
A navigation entry has no matching routeA valid-looking action opens a not-found pageKeep route registration and navigation registries aligned and cover nested paths with route tests
A protected query does not invalidate current-user state after unauthorized accessStale protected content remains visibleLet the protected layout own the access decision
A query key omits a resource, scope, or URL filterData from another scope appears on the pageInclude all result-defining inputs in generated and page query keys
A filter changes without resetting page or cursor stateResults belong to the old question or use an invalid continuationReset pagination and cursor state when the query changes
An active deployment, monitor, backup, restore, import, scan, upgrade, or sign-in stops polling too earlyProgress and recovery actions become stalePoll active states and stop only at terminal state or confirmed unavailability
A settings page sends only its edited fieldsUnrelated platform settings reset to server defaultsRead, merge, validate, and send the full settings document
A write-only credential enters cached settings stateA secret remains in browser memory or appears in later UIMask reads and strip write-only fields before caching the updated view
A failed read is rendered as an empty listOperators misread outage or forbidden access as no resourcesKeep loading, empty, forbidden, missing, and failure states separate
A source map is uploaded for the wrong release or file pathError stacks remain unreadable even though an artifact existsMatch the release and minified file path used by the SDK event
A log attribute filter converts an int64 value to a JavaScript numberA valid large integer changes before the API receives itKeep numeric input as text and validate signed 64-bit bounds
A trace-pinned log query still applies the selected time rangeRelated logs disappear because they predate the rangeLet the trace identity replace the time-window constraint
A cron monitor changes slug or scope after SDK setupCheck-ins stop reaching the configured monitorKeep monitor identity fixed after creation
A retention field turns an empty optional input into NaNA save fails or data is changed unexpectedlyConvert empty optional values to null and preserve write-only fields
A limit override is saved from blank or stale project valuesExisting project caps are cleared or the wrong project is changedLoad the selected project's current limits and invalidate all AI-limit queries after writes
Workspace compute is treated as durable workspace dataSleep, pause, or rebuild appears to destroy filesPresent persistent files and replaceable compute as separate states
A node is removed before it is drainedWorkloads can be lost or the cluster can retain an unsafe stateRequire completed drain and watch the server state
Plugin installation is offered without persistent storagePlugin files or data disappear after restartGate installation by capability while keeping catalog discovery available

Key files

FileWhy to read it
web/…/App.tsxDefines providers, the authenticated shell, route families, redirects, lazy page boundaries, and extension routes.
web/…/ProtectedLayout.tsx, web/…/AuthContext.tsx, and web/…/MfaVerify.tsxExplain session gating, saved return paths, MFA, and the protected-route decision.
web/…/Sidebar.tsx, web/…/CommandPalette.tsx, web/…/ProjectSectionLayout.tsx, and web/…/project-tools.tsExplain global navigation, project navigation, feature-gated tools, and alternative route entry points.
web/…/index.ts, sdk.gen.ts, types.gen.ts, and @tanstack/react-query.gen.tsDefine the generated request, type, query, mutation, upload, stream, and cache-key contract.
web/…/platformSettings.ts, web/…/useSettings.ts, web/…/MonitoringSettingsPage.tsx, and web/…/analytics-retention.tsDefine the settings boundary, retention policy, masking, validation, and write behavior.
web/…/Projects.tsx, ImportProject.tsx, and CreateServiceNew.tsxShow service discovery, import, and onboarding entry points.
web/…/ProjectDetail.tsx, DeploymentDetails.tsx, and web/…/ProjectSectionLayout.tsxExplain project scope, deployment actions, nested operation areas, and runtime inspection.
web/…/Storage.tsx, ServiceDetail.tsx, and ServiceDataBrowser.tsxShow storage creation, readiness, safe data access, and service operations.
web/…/LogsList.tsx, web/…/LogAttributeFilter.tsx, and web/…/MetricsExplorer.tsxShow URL-backed observation filters, typed log search, metric exploration, and result states.
web/…/ErrorEventDetail.tsx, web/…/SentryEventDetail.tsx, CspReportDetails.tsx, and SourceMaps.tsxExplain error event inspection, browser policy reports, and source-map artifacts.
web/…/ErrorTrackingSetup.tsx, web/…/ProjectFeedback.tsx, TelemetryReleases.tsx, and ClientOutcomes.tsxExplain SDK onboarding, feedback triage, release correlation, and ingestion health.
web/…/CronMonitors.tsx and web/…/CronMonitors.test.tsxExplain monitor identity, schedule configuration, check-in health, run history, and retry-preserving form behavior.
web/…/SessionReplayDetail.tsx and web/…/SessionReplayPlayer.tsxExplain session identity, replay playback, event grouping, and selected-event context.
web/…/AiGateway.tsx, AiGatewayUsagePage.tsx, and AiGatewayLimitsPage.tsxExplain provider setup, model state, usage, spend, instance limits, and project overrides.
web/…/Settings.tsx, settings/MonitoringSettingsPage.tsx, settings/NodesPage.tsx, and settings/PluginsPage.tsxExplain platform settings, retention, node lifecycle, extension management, and capability gates.
web/…/AiGatewayLimitsPage.test.tsx, web/…/ProjectDetail.routes.test.ts, web/…/LogAttributeFilter.test.tsx, and web/…/analytics-retention.test.tsShow how AI limit state, route intent, typed filters, retention defaults, and URL-preserving navigation are protected.