style: format gateway health state and ui render

This commit is contained in:
Peter Steinberger
2026-02-19 08:49:38 +00:00
parent d1cb779f5f
commit 34ddf0edc0
2 changed files with 6 additions and 4 deletions

View File

@@ -2,8 +2,8 @@ import { resolveDefaultAgentId } from "../../agents/agent-scope.js";
import { getHealthSnapshot, type HealthSummary } from "../../commands/health.js";
import { CONFIG_PATH, STATE_DIR, loadConfig } from "../../config/config.js";
import { resolveMainSessionKey } from "../../config/sessions.js";
import { getUpdateAvailable } from "../../infra/update-startup.js";
import { listSystemPresence } from "../../infra/system-presence.js";
import { getUpdateAvailable } from "../../infra/update-startup.js";
import { normalizeMainKey } from "../../routing/session-key.js";
import { resolveGatewayAuth } from "../auth.js";
import type { Snapshot } from "../protocol/index.js";

View File

@@ -188,8 +188,9 @@ export function renderApp(state: AppViewState) {
</div>
</aside>
<main class="content ${isChat ? "content--chat" : ""}">
${state.updateAvailable
? html`<div class="update-banner callout danger" role="alert">
${
state.updateAvailable
? html`<div class="update-banner callout danger" role="alert">
<strong>Update available:</strong> v${state.updateAvailable.latestVersion}
(running v${state.updateAvailable.currentVersion}).
<button
@@ -198,7 +199,8 @@ export function renderApp(state: AppViewState) {
@click=${() => runUpdate(state)}
>${state.updateRunning ? "Updating…" : "Update now"}</button>
</div>`
: nothing}
: nothing
}
<section class="content-header">
<div>
${state.tab === "usage" ? nothing : html`<div class="page-title">${titleForTab(state.tab)}</div>`}