Files
archie/ui/src/logs/logs-empty.ts
T
sam 924b02a1b0 feat(controlplane): runtime administration over the State Store's gRPC server
The Web UI and messaging channels now read and write Archie's runtime
settings through one versioned, audited control-plane API hosted on the
State Store's existing gRPC server: catalog, query, command, watch. Each
feature owns its resource, validation and commands; storage only writes
versions and audit records.

Workflows move with it. Definitions become portable YAML compiled through
a closed, typed step registry and stored as a control-plane resource, so
the yaegi interpretation paths (internal/gate, wfeval, wfextract,
gateeval, gateextract, skillbuild) are deleted rather than carried.

The UI process reads definitions as data: the JSON projection lives in
internal/domain/workflow/task so a dashboard decodes the stored
collection without linking the workflow engine, which cmd/archie-ui's
deletion gate forbids. Shipped definitions ride the catalog descriptor
rather than a bespoke REST route, keeping the API to its four operations.

archie-messaging gains -state-store-target/-state-store-token and reads
channel settings from the database, failing closed when the State Store
is unreachable: the database is authoritative for those settings.
2026-09-21 08:17:42 +10:00

30 lines
1.1 KiB
TypeScript

// What the logs list says when it has nothing to show.
//
// Three different situations produced one message, which is how the page ended
// up promising that "live daemon logs will appear here" while the stream that
// would deliver them had already given up (archie-core-c5bz).
/**
* logsEmptyTitle names the situation: a dead stream, a deployment with no
* durable history, or filters that match nothing.
*/
export function logsEmptyTitle(durableUnavailable: boolean, streamState: string): string {
if (streamState === "unavailable") return "Log stream unavailable";
if (durableUnavailable) return "No logs yet";
return "Nothing matches";
}
/**
* logsEmptyDetail says what to expect next, and never promises live logs from
* a stream that has stopped.
*/
export function logsEmptyDetail(durableUnavailable: boolean, streamState: string): string {
if (streamState === "unavailable") {
return "The log stream will reconnect automatically.";
}
if (durableUnavailable) {
return "This deployment keeps no durable history. Live daemon logs appear here while the page is open.";
}
return "Try a wider level or clear the search.";
}