feat(webui): events counts, YAML reading, log rows and dashboard filters
Four findings from the ui-redesign verification pass, each with the module that owns the rule and the test that pins it. - events: the three-step strip's and the tab chips' counts move out of the SFC into events/counts.ts -- one read per step, an unreadable count stays blank rather than reading as zero (events-counts.test.ts). - workflows: workflows/workflow-yaml.ts reads the editor's YAML with a real parser (the yaml package, not a line scanner) to drive the read-only Steps preview and a live validity indicator; the editor gains a line-number gutter and light syntax colouring behind the textarea. Step types and their settings are not served to the dashboard, so those remain the server's to check on save, and a save it refuses still reports its own reason. - tasks: an ERROR log row is a block rather than only red text (lib/log.ts), the log pane ends with "End of attempt N - M lines", and the task head offers Archive when the server's own action list offers it (task-actions.ts, and TaskRowActions' new `only` narrows the list without inventing a control). - dashboard: the live activity feed gains the All/Tasks/System filter (activity-filter.ts) and every quality-gate row gains a pass bar (pass-bar.ts) that is red when the gate is failing. ui/dist regenerated; ui/package.json carries yaml ^2.9.1.
This commit is contained in:
1 parent
c6623d5300
commit
5e1e365c05
23 files changed
+1184
-75
No files matched your search
@@ -3,6 +3,7 @@ import {
|
||||
fmtValue,
|
||||
LEVEL_COLOR,
|
||||
levelKind,
|
||||
rowClass,
|
||||
shortTime,
|
||||
type LogEntry,
|
||||
} from "@/lib/log";
|
||||
@@ -19,7 +20,8 @@ const fields = () => Object.entries(props.entry.fields ?? {});
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="grid grid-cols-[62px_52px_1fr] items-baseline gap-3 border-b border-border px-1 py-2 hover:bg-accent"
|
||||
class="grid grid-cols-[62px_52px_1fr] items-baseline gap-3 border-b border-b-border border-l-2 px-1 py-2 hover:bg-accent"
|
||||
:class="rowClass(props.entry.level)"
|
||||
>
|
||||
<span class="font-mono text-fg-subtle">{{
|
||||
shortTime(props.entry.time)
|
||||
|
||||
Reference in new issue
Block a user