From 5f19a95a9e033e14bc2d6dfa5351062a97728053 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 15:00:35 +1100 Subject: [PATCH] fix(ui): trim workflow and log captions, select components for event binding --- ui/src/logs/LogStatus.vue | 3 +- ui/src/logs/logs-empty.ts | 19 +++-------- ui/src/workflows/BindEvent.vue | 45 +++++++++++++++++--------- ui/src/workflows/StageFailuresCard.vue | 4 --- ui/src/workflows/StepRun.vue | 2 +- ui/src/workflows/WorkflowEditor.vue | 2 +- ui/src/workflows/WorkflowsPage.vue | 5 ++- ui/src/workflows/work-request.ts | 8 ++--- ui/src/workflows/workflow-rows.ts | 11 ++----- ui/src/workflows/workflow-yaml.ts | 2 +- 10 files changed, 47 insertions(+), 54 deletions(-) diff --git a/ui/src/logs/LogStatus.vue b/ui/src/logs/LogStatus.vue index 62b34b8cf..e7805ac7f 100644 --- a/ui/src/logs/LogStatus.vue +++ b/ui/src/logs/LogStatus.vue @@ -4,8 +4,7 @@ import { meta, streamKind, streamState } from "./state"; /** * What the list is showing, and the state of the stream that is supposed to be - * adding to it. The two belong together: "Live only" says nothing on its own - * when the stream behind those lines has stopped. + * adding to it: the lines mean nothing without it. */ diff --git a/ui/src/logs/logs-empty.ts b/ui/src/logs/logs-empty.ts index 3c0823931..e19babfc0 100644 --- a/ui/src/logs/logs-empty.ts +++ b/ui/src/logs/logs-empty.ts @@ -1,13 +1,7 @@ -// 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). +// What the logs list says when it has nothing to show: a dead stream, a +// deployment with no durable history, or filters that match nothing. -/** - * logsEmptyTitle names the situation: a dead stream, a deployment with no - * durable history, or filters that match nothing. - */ +/** logsEmptyTitle names the situation. */ export function logsEmptyTitle( durableUnavailable: boolean, streamState: string, @@ -17,10 +11,7 @@ export function logsEmptyTitle( return "Nothing matches"; } -/** - * logsEmptyDetail says what to expect next, and never promises live logs from - * a stream that has stopped. - */ +/** The line under the title: what to expect next. */ export function logsEmptyDetail( durableUnavailable: boolean, streamState: string, @@ -29,7 +20,7 @@ export function logsEmptyDetail( return "This process is not delivering live daemon logs."; } if (durableUnavailable) { - return "This deployment keeps no durable history. Live daemon logs appear here while the page is open."; + return "This deployment keeps no durable history."; } return "Try a wider level or clear the search."; } diff --git a/ui/src/workflows/BindEvent.vue b/ui/src/workflows/BindEvent.vue index 7e538b193..077db8eef 100644 --- a/ui/src/workflows/BindEvent.vue +++ b/ui/src/workflows/BindEvent.vue @@ -1,6 +1,6 @@