fix(webui): drop ok badge from stage rail, pack run tabs, scope note on changed files
This commit is contained in:
1 parent
459bbcd5fc
commit
55ad93e8e3
6 files changed
+25
-11
No files matched your search
@@ -56,6 +56,10 @@ const nothingRecorded = computed(
|
||||
</Empty>
|
||||
|
||||
<div v-else class="flex flex-col">
|
||||
<p class="mb-3 text-xs text-fg-muted">
|
||||
Captured when the attempt's work was committed, so this covers the whole
|
||||
attempt, not one stage.
|
||||
</p>
|
||||
<ChangeCapture
|
||||
v-for="(capture, i) in captures"
|
||||
:key="`${capture.captured_at || ''}:${i}`"
|
||||
|
||||
@@ -129,11 +129,6 @@ const startedAt = computed(() => {
|
||||
<EmptyTitle>No stages recorded for this attempt</EmptyTitle>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
<p class="mt-3 max-w-[70ch] text-xs text-fg-muted">
|
||||
<strong>ok</strong> means the stage returned without error. Archie
|
||||
records no exit code and does not verify that the work was correct, so
|
||||
this is a progress status, not a check result.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Rendered in every loaded state, the empty ones included: a deployment
|
||||
|
||||
@@ -54,7 +54,12 @@ const nodeClass = computed(() =>
|
||||
class="relative grid grid-cols-[1.75rem_1fr] gap-2 pb-4 before:absolute before:top-4 before:bottom-0 before:left-[0.6875rem] before:w-px before:bg-border-strong last:before:hidden max-[700px]:grid-cols-1 max-[700px]:border-b max-[700px]:border-border max-[700px]:pb-3 max-[700px]:before:hidden"
|
||||
:class="props.selected ? 'rounded-md bg-primary-soft' : ''"
|
||||
>
|
||||
<span :class="nodeClass" aria-hidden="true" class="max-[700px]:hidden" />
|
||||
<span
|
||||
:class="nodeClass"
|
||||
:title="meta.label"
|
||||
aria-hidden="true"
|
||||
class="max-[700px]:hidden"
|
||||
/>
|
||||
<div class="min-w-0" :class="props.selected ? '-my-2 rounded-md py-2' : ''">
|
||||
<!--
|
||||
Selecting a stage commands the inspector to this stage's log (the
|
||||
@@ -75,7 +80,12 @@ const nodeClass = computed(() =>
|
||||
:class="props.selected ? 'text-primary' : ''"
|
||||
>{{ stage.name || "(unnamed stage)" }}</span
|
||||
>
|
||||
<Badge :variant="meta.kind">{{ meta.label }}</Badge>
|
||||
<!-- The node's colour already says ok; only a status that needs
|
||||
attention gets a word. -->
|
||||
<Badge v-if="stage.status !== 'ok'" :variant="meta.kind">{{
|
||||
meta.label
|
||||
}}</Badge>
|
||||
<span v-else class="sr-only">ok</span>
|
||||
<span class="text-xs text-fg-muted">{{
|
||||
ran ? `ran for ${ran}` : "duration not recorded"
|
||||
}}</span>
|
||||
|
||||
@@ -19,7 +19,12 @@ import { RUN_TABS } from "./task-run";
|
||||
|
||||
<template>
|
||||
<TabsList variant="line" class="w-full justify-start">
|
||||
<TabsTrigger v-for="tab in RUN_TABS" :key="tab.id" :value="tab.id">{{
|
||||
<TabsTrigger
|
||||
v-for="tab in RUN_TABS"
|
||||
:key="tab.id"
|
||||
:value="tab.id"
|
||||
class="flex-none px-3"
|
||||
>{{
|
||||
tab.label
|
||||
}}</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* A stage fails when its Go function returned an error. There is NO exit code,
|
||||
* no pass/fail verdict, and no notion of "the work was correct" -- a stage that
|
||||
* returned nil after producing a poor diff is `ok`. So the rail never renders
|
||||
* a checkmark, a badge or an exit status; it renders the status word, the
|
||||
* duration and the error text, and says plainly what `ok` means. The agent's
|
||||
* a checkmark or an exit status; `ok` is carried by the node colour alone and
|
||||
* every other status by its word, with the duration and the error text. The agent's
|
||||
* own self-reported outcome (`agent_finish`) is shown separately, labelled as
|
||||
* the agent's report rather than as archie's verdict.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user