fix(webui): cut tutorial and marketing prose from labels, hints, empty states and confirms
This commit is contained in:
32 files changed
+118
-130
No files matched your search
@@ -5,7 +5,7 @@ import PageHeader from "./PageHeader.vue";
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader title="Page not found" />
|
||||
<p class="mb-4 text-sm text-fg-muted">This address does not match a page.</p>
|
||||
<p class="mb-4 text-sm text-fg-muted">No page at this address.</p>
|
||||
<RouterLink to="/" class="text-sm underline">Return to dashboard</RouterLink>
|
||||
</div>
|
||||
</template>
|
||||
@@ -140,7 +140,7 @@ const title = computed(() => (props.binding ? "Edit binding" : "New binding"));
|
||||
<DialogContent class="max-h-[85vh] overflow-y-auto sm:max-w-lg">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{{ title }}</DialogTitle>
|
||||
<DialogDescription>Editing returns this binding to pending approval.</DialogDescription>
|
||||
<DialogDescription>Saving returns it to pending approval.</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<form @submit.prevent="emit('save', draft)">
|
||||
|
||||
@@ -52,7 +52,7 @@ import { captures, enabled, error, loading } from "./state";
|
||||
<EmptyHeader>
|
||||
<EmptyMedia variant="icon"><Inbox /></EmptyMedia>
|
||||
<EmptyTitle>No captures yet</EmptyTitle>
|
||||
<EmptyDescription>Create a source above and point a sender at its URL.</EmptyDescription>
|
||||
<EmptyDescription>No captures. Add a source.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@ const PROMPTS = [
|
||||
class="mx-auto mb-3 grid size-9 place-items-center rounded-xl border border-border-strong font-bold text-link"
|
||||
>A</span
|
||||
>
|
||||
<h2 class="text-lg font-semibold tracking-[-0.02em]">What are we working on?</h2>
|
||||
<p class="mt-2 mb-4 text-sm text-fg-muted">Ask Archie anything, or start with one of these prompts.</p>
|
||||
<div class="grid gap-2">
|
||||
<button
|
||||
v-for="prompt in PROMPTS"
|
||||
|
||||
@@ -47,7 +47,7 @@ async function later() {
|
||||
|
||||
<template>
|
||||
<div class="text-sm">
|
||||
<p v-if="!available.length">Archie is up to date.</p>
|
||||
<p v-if="!available.length">Up to date</p>
|
||||
<template v-else>
|
||||
<p class="font-medium">An update is available</p>
|
||||
<ul class="mt-1 space-y-0.5">
|
||||
@@ -60,11 +60,11 @@ async function later() {
|
||||
<Button v-if="update.can_install" size="sm" @click="install">Install</Button>
|
||||
<Button size="sm" variant="ghost" @click="later">Not now</Button>
|
||||
</div>
|
||||
<p v-else-if="state === 'installing'" class="mt-2 text-fg-muted">Installing… this can take a few minutes.</p>
|
||||
<p v-else-if="state === 'installing'" class="mt-2 text-fg-muted">Installing…</p>
|
||||
<p v-else-if="state === 'deferred'" class="mt-2 text-fg-muted">Skipped until a newer release.</p>
|
||||
<p v-else-if="state === 'done'" class="mt-2 text-ok">{{ result }}</p>
|
||||
<p v-else class="mt-2 text-danger">{{ result }}</p>
|
||||
<p v-if="state === 'idle' && !update.can_install" class="mt-2 text-xs text-fg-muted">This host has no install script, so the update can't be installed from here.</p>
|
||||
<p v-if="state === 'idle' && !update.can_install" class="mt-2 text-xs text-fg-muted">No install script on this host.</p>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
@@ -75,7 +75,7 @@ function healthKind(status: string | undefined): StatusKind {
|
||||
</ul>
|
||||
<Empty v-else>
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No recorded activity yet</EmptyTitle>
|
||||
<EmptyTitle>No activity</EmptyTitle>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
</CardContent>
|
||||
|
||||
@@ -101,7 +101,6 @@ onMounted(load);
|
||||
<Empty v-else-if="!curators.length">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No curators registered</EmptyTitle>
|
||||
<EmptyDescription>Curators are background agent loops that maintain memory and skills.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
<CuratorCard v-for="c in curators" v-else :key="c.name" :curator="c" />
|
||||
|
||||
@@ -41,7 +41,7 @@ const pct = computed(() => {
|
||||
<template>
|
||||
<Card v-if="panel.kind === 'incomplete'">
|
||||
<CardHeader>
|
||||
<CardTitle>Finish setting up</CardTitle>
|
||||
<CardTitle>Setup</CardTitle>
|
||||
<CardAction>
|
||||
<span class="text-lg font-semibold text-link">{{ pct }}%</span>
|
||||
</CardAction>
|
||||
|
||||
@@ -119,7 +119,7 @@ function scopes(binding: HarnessBinding): string {
|
||||
<Empty v-else-if="unconfigured">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>Harness bindings are not configured</EmptyTitle>
|
||||
<EmptyDescription>This process cannot read credential bindings or captured OAuth tokens.</EmptyDescription>
|
||||
<EmptyDescription>Credential bindings and OAuth tokens unavailable.</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
@@ -133,13 +133,13 @@ function scopes(binding: HarnessBinding): string {
|
||||
<Card v-else class="mb-4">
|
||||
<CardContent class="flex flex-wrap items-end gap-3">
|
||||
<label class="flex flex-col gap-1 text-sm">
|
||||
<span class="text-muted-foreground">Kit profile</span>
|
||||
<span class="text-muted-foreground">Profile</span>
|
||||
<NativeSelect
|
||||
size="sm"
|
||||
v-model="profile" class="min-w-48"
|
||||
:disabled="!state.profiles.length"
|
||||
>
|
||||
<NativeSelectOption v-if="!state.profiles.length" value="">No Kit profiles configured</NativeSelectOption>
|
||||
<NativeSelectOption v-if="!state.profiles.length" value="">No profiles configured</NativeSelectOption>
|
||||
<NativeSelectOption v-for="name in state.profiles" :key="name" :value="name">
|
||||
{{ name }}
|
||||
</NativeSelectOption>
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface RetryModeMeta {
|
||||
|
||||
export const DEFAULT_STATUSES: StatusMeta[] = [
|
||||
{ id: "queued", label: "Queued", kind: "idle" },
|
||||
{ id: "running", label: "Working", kind: "info" },
|
||||
{ id: "running", label: "Running", kind: "info" },
|
||||
{
|
||||
id: "waiting_human",
|
||||
label: "Waiting for you",
|
||||
@@ -46,7 +46,7 @@ export const DEFAULT_STATUSES: StatusMeta[] = [
|
||||
{ id: "merged", label: "Merged", kind: "ok" },
|
||||
{ id: "completed", label: "Done", kind: "ok" },
|
||||
{ id: "parked", label: "Parked", kind: "warn", needs_you: true },
|
||||
{ id: "dead", label: "Stopped (too many retries)", kind: "danger" },
|
||||
{ id: "dead", label: "Stopped: retry cap", kind: "danger" },
|
||||
{ id: "rejected", label: "Rejected", kind: "danger" },
|
||||
{ id: "closed_wont_do", label: "Won't do", kind: "idle" },
|
||||
];
|
||||
@@ -56,13 +56,13 @@ export const DEFAULT_ACTIONS: ActionMeta[] = [
|
||||
id: "cancel",
|
||||
label: "Cancel",
|
||||
kind: "quiet",
|
||||
confirm: `Cancel "{title}"? This closes the forge issue.`,
|
||||
confirm: `Cancel "{title}"? Closes the issue.`,
|
||||
},
|
||||
{
|
||||
id: "stop",
|
||||
label: "Stop",
|
||||
kind: "primary",
|
||||
confirm: `Stop "{title}"? Recoverable work will remain parked.`,
|
||||
confirm: `Stop "{title}"? Work stays parked.`,
|
||||
},
|
||||
{ id: "approve", label: "Approve", kind: "primary" },
|
||||
{ id: "rereview", label: "Re-review", kind: "quiet" },
|
||||
@@ -70,14 +70,14 @@ export const DEFAULT_ACTIONS: ActionMeta[] = [
|
||||
id: "reject",
|
||||
label: "Reject",
|
||||
kind: "quiet",
|
||||
confirm: `Reject "{title}"? This closes the forge issue.`,
|
||||
confirm: `Reject "{title}"? Closes the issue.`,
|
||||
},
|
||||
{ id: "retry", label: "Retry", kind: "primary" },
|
||||
{
|
||||
id: "abandon",
|
||||
label: "Abandon",
|
||||
kind: "quiet",
|
||||
confirm: `Abandon "{title}"? Archie stops working on it; the forge issue stays open.`,
|
||||
confirm: `Abandon "{title}"? The issue stays open.`,
|
||||
},
|
||||
{
|
||||
id: "archive",
|
||||
@@ -108,14 +108,14 @@ export const DEFAULT_RETRY_MODES: RetryModeMeta[] = [
|
||||
id: "refresh_onto_base",
|
||||
label: "Refresh onto base",
|
||||
description:
|
||||
"Start the retry from the current base branch, discarding work already pushed on this task's branch.",
|
||||
"Retry from the current base; discards pushed commits.",
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: "continue_pushed_work",
|
||||
label: "Continue pushed work",
|
||||
description:
|
||||
"Resume the branch this task already pushed, keeping its commits.",
|
||||
"Resume the pushed branch.",
|
||||
requires_branch: true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -40,7 +40,7 @@ function tools(profile: Profile, value: string | number) {
|
||||
<section v-for="(profile, key) in profiles" :key="key" class="mb-6 border-t pt-4">
|
||||
<div class="flex items-center justify-between"><h2 class="font-mono text-sm">{{ key }}</h2><Button variant="ghost" size="sm" @click="delete profiles![key]">Remove profile</Button></div>
|
||||
<SettingRow label="Image" :for="`${key}-image`"><Input :id="`${key}-image`" v-model="profile.image" placeholder="Container image" /></SettingRow>
|
||||
<SettingRow label="Kit" :for="`${key}-kit`" hint="Pinned digest; leave Image empty when using a Kit."><Input :id="`${key}-kit`" v-model="profile.kit" placeholder="registry/kit@sha256:…" /></SettingRow>
|
||||
<SettingRow label="Kit" :for="`${key}-kit`" hint="Pinned digest. Used only when Image is empty."><Input :id="`${key}-kit`" v-model="profile.kit" placeholder="registry/kit@sha256:…" /></SettingRow>
|
||||
<SettingRow label="Adapter" :for="`${key}-adapter`"><Input :id="`${key}-adapter`" v-model="profile.adapter" /></SettingRow>
|
||||
<SettingRow label="Tools" :for="`${key}-tools`" hint="Comma-separated tool names."><Input :id="`${key}-tools`" :model-value="(profile.tools ?? []).join(', ')" @update:model-value="tools(profile, $event)" /></SettingRow>
|
||||
</section>
|
||||
|
||||
@@ -63,13 +63,13 @@ const pullPolicy = computed({
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
<template v-if="runtime">
|
||||
<SettingRow label="Image" for="cr-image" hint="Container image used for agent runs.">
|
||||
<SettingRow label="Image" for="cr-image">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Input id="cr-image" v-model="runtime.image" class="font-mono" />
|
||||
<DraftHint :kind="KIND" path="image" />
|
||||
</div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Pull policy" hint="When to refresh the agent image.">
|
||||
<SettingRow label="Pull policy">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<ToggleGroup type="single" variant="outline" size="sm" :model-value="pullPolicy" aria-label="Pull policy" @update:model-value="(value) => { if (value) pullPolicy = value as typeof pullPolicy; }">
|
||||
<ToggleGroupItem v-for="option in pullPolicies" :key="option.value" :value="option.value">{{ option.label }}</ToggleGroupItem>
|
||||
@@ -89,13 +89,13 @@ const pullPolicy = computed({
|
||||
<DraftHint :kind="KIND" path="max_concurrency" />
|
||||
</div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Max uptime" for="cr-uptime" hint="Maximum time an agent container may run.">
|
||||
<SettingRow label="Max uptime" for="cr-uptime" hint="Agent container time limit.">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<DurationInput id="cr-uptime" v-model="runtime.max_uptime" :units="['m', 'h']" />
|
||||
<DraftHint :kind="KIND" path="max_uptime" />
|
||||
</div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Volume retention" for="cr-ttl" hint="How long to retain volumes after a run.">
|
||||
<SettingRow label="Volume retention" for="cr-ttl" hint="Volume retention.">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<DurationInput id="cr-ttl" v-model="runtime.volume_ttl" :units="['h']" />
|
||||
<DraftHint :kind="KIND" path="volume_ttl" />
|
||||
|
||||
@@ -62,14 +62,14 @@ onMounted(load);
|
||||
<template>
|
||||
<section class="mb-8" aria-labelledby="personal-tokens">
|
||||
<div class="mb-3 flex items-center justify-between gap-2">
|
||||
<h2 id="personal-tokens" class="text-sm font-medium">Your API tokens</h2>
|
||||
<h2 id="personal-tokens" class="text-sm font-medium">API tokens</h2>
|
||||
<Button v-if="available" size="sm" :disabled="busy" @click="create"><Plus data-icon="inline-start" />New token</Button>
|
||||
</div>
|
||||
<p v-if="!available && !busy && !error" class="mb-3 text-sm text-fg-subtle">Personal tokens need a signed-in person.</p>
|
||||
<p v-if="available" class="mb-3 text-xs text-fg-subtle">Send it as <code>Authorization: Bearer <token></code>.</p>
|
||||
<p v-if="error" role="alert" class="mb-3 text-sm text-danger">{{ error }}</p>
|
||||
<div v-if="created" class="mb-3 rounded-lg border border-border bg-card p-3">
|
||||
<p class="mb-2 text-xs">Copy this token now. It is not shown again.</p>
|
||||
<p class="mb-2 text-xs">Not shown again.</p>
|
||||
<Input :model-value="created" readonly aria-label="New token" @focus="($event.target as HTMLInputElement).select()" />
|
||||
</div>
|
||||
<p v-if="available && !tokens.length && !busy && !error" class="text-sm text-fg-subtle">No tokens yet.</p>
|
||||
|
||||
@@ -41,7 +41,7 @@ const error = computed(() => store.pageErrorFor(KIND));
|
||||
<SettingRow
|
||||
label="Precision gate"
|
||||
for="review-precision"
|
||||
hint="Drop nitpicks and unverifiable findings before posting. Off favours recall."
|
||||
hint="Filters weak findings before posting."
|
||||
>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Switch id="review-precision" v-model="dials.precision_gate" aria-label="Precision gate" />
|
||||
@@ -51,7 +51,7 @@ const error = computed(() => store.pageErrorFor(KIND));
|
||||
<SettingRow
|
||||
label="Approve before posting"
|
||||
for="review-approve"
|
||||
hint="Hold drafted reviews until someone approves them."
|
||||
hint="Draft reviews require approval."
|
||||
>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Switch id="review-approve" v-model="dials.approve_before_post" aria-label="Approve before posting" />
|
||||
|
||||
@@ -44,7 +44,6 @@ function chooseMotion(value: unknown): void {
|
||||
|
||||
<ConfigCard
|
||||
title="Dashboard preferences"
|
||||
description="Saved only in this browser and applied immediately."
|
||||
>
|
||||
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-4">
|
||||
<section class="flex min-w-0 flex-col items-start">
|
||||
|
||||
@@ -37,7 +37,7 @@ onUnmounted(() => clearInterval(timer));
|
||||
<CardTitle>Startup settings</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<p class="mb-2 text-fg-subtle">Read at startup. A change needs a restart.</p>
|
||||
<p class="mb-2 text-fg-subtle">Restart required for changes.</p>
|
||||
<Table>
|
||||
<TableBody>
|
||||
<TableRow v-for="(reason, key) in config.bootstrap" :key="key">
|
||||
|
||||
@@ -179,7 +179,7 @@ onMounted(load);
|
||||
: `Install ${updateable.map((c) => c.label || c.id).join(", ")}`
|
||||
}}
|
||||
</Button>
|
||||
<p v-if="installing" class="text-xs text-fg-muted">You can leave this page; the restart continues here.</p>
|
||||
<p v-if="installing" class="text-xs text-fg-muted">Restart continues in the background.</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
@@ -44,19 +44,18 @@ const nothingRecorded = computed(
|
||||
<Empty v-else-if="undecodable">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle
|
||||
>A change capture was recorded but could not be read</EmptyTitle
|
||||
>Capture unreadable</EmptyTitle
|
||||
>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
<Empty v-else-if="nothingRecorded">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No change capture recorded</EmptyTitle>
|
||||
<EmptyTitle>No capture</EmptyTitle>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
<div v-else class="flex flex-col">
|
||||
<p class="mb-3 text-xs text-fg-muted">Whole attempt, not one stage.</p>
|
||||
<ChangeCapture
|
||||
v-for="(capture, i) in captures"
|
||||
:key="`${capture.captured_at || ''}:${i}`"
|
||||
|
||||
@@ -143,7 +143,7 @@ const startedAt = computed(() => {
|
||||
</ol>
|
||||
<Empty v-else>
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No stages recorded for this attempt</EmptyTitle>
|
||||
<EmptyTitle>No stages</EmptyTitle>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
</div>
|
||||
|
||||
@@ -30,12 +30,12 @@ const copy = computed(() =>
|
||||
? {
|
||||
title: "Not a task id",
|
||||
empty: `“${props.raw ?? ""}” is not a task id`,
|
||||
detail: "A task id is a positive whole number. Nothing was requested.",
|
||||
detail: "Task ids are positive whole numbers.",
|
||||
}
|
||||
: {
|
||||
title: "Task not found",
|
||||
empty: `Nothing is recorded for task ${props.raw ?? ""}`,
|
||||
detail: "archied answered that this task does not exist.",
|
||||
detail: "No such task.",
|
||||
},
|
||||
);
|
||||
</script>
|
||||
|
||||
@@ -151,7 +151,7 @@ const view = computed(() => {
|
||||
if (state.found === false && !state.disabled) {
|
||||
return {
|
||||
kind: "nolog" as const,
|
||||
status: "No log recorded for this attempt",
|
||||
status: "No log",
|
||||
};
|
||||
}
|
||||
// This process cannot read task logs at all. That IS about the deployment,
|
||||
@@ -232,11 +232,7 @@ watch([() => route.hash, current], async () => {
|
||||
|
||||
<Empty v-else-if="view.kind === 'nolog'">
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No log recorded for this attempt</EmptyTitle>
|
||||
<EmptyDescription
|
||||
>This attempt produced no output, or it has not started writing
|
||||
yet.</EmptyDescription
|
||||
>
|
||||
<EmptyTitle>No log</EmptyTitle>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
@@ -244,7 +240,7 @@ watch([() => route.hash, current], async () => {
|
||||
<EmptyHeader>
|
||||
<EmptyTitle>No persisted log for this attempt</EmptyTitle>
|
||||
<EmptyDescription
|
||||
>The log service has no reader for this file.</EmptyDescription
|
||||
>No reader for this file.</EmptyDescription
|
||||
>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
|
||||
@@ -155,7 +155,7 @@ const errorText = computed(() => {
|
||||
if (error.value.kind === "session-expired")
|
||||
return "Dashboard authentication is required.";
|
||||
if (error.value.kind === "refused")
|
||||
return `${error.value.message}. You can't do that.`;
|
||||
return `${error.value.message}`;
|
||||
return `${error.value.message}. Try again, or check the daemon.`;
|
||||
});
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
<NativeSelect size="sm" v-if="sourceCaptures.length" id="bind-capture" v-model="captureId" class="w-full">
|
||||
<NativeSelectOption v-for="c in sourceCaptures" :key="c.id" :value="c.id">#{{ c.id }} · {{ when(c.received_at) }}{{ c.event_type ? "" : " · unidentified" }}</NativeSelectOption>
|
||||
</NativeSelect>
|
||||
<p v-else class="text-xs text-fg-subtle" :title="`Send an event to ${hookURL} and it appears here`">Waiting for the first event</p>
|
||||
<p v-else class="text-xs text-fg-subtle" :title="`Send an event to ${hookURL} and it appears here`">No events</p>
|
||||
</section>
|
||||
|
||||
<section class="space-y-1.5">
|
||||
@@ -314,7 +314,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
<p v-if="resolved(REPOSITORY_FIELD).failure" class="text-xs text-danger">{{ resolved(REPOSITORY_FIELD).failure }}</p>
|
||||
<p v-else-if="resolved(REPOSITORY_FIELD).value !== undefined" class="truncate font-mono text-xs text-success">{{ resolved(REPOSITORY_FIELD).value }}</p>
|
||||
</div>
|
||||
<p v-if="!inputs.length && !repository" class="px-3 py-2 text-xs text-fg-subtle">The workflow declares no inputs.</p>
|
||||
<p v-if="!inputs.length && !repository" class="px-3 py-2 text-xs text-fg-subtle">No inputs.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ function started(taskId: number): void {
|
||||
size="sm"
|
||||
variant="outline"
|
||||
:disabled="disabled"
|
||||
:title="draft !== undefined ? 'Runs this draft once. Forge writes and pushes are skipped, including in called workflows; commands and tools still run' : disabled ? 'Save your changes first' : undefined"
|
||||
:title="draft !== undefined ? 'Runs this draft once. Forge writes and pushes are skipped, including in called workflows; commands and tools still run' : disabled ? 'Save first' : undefined"
|
||||
>
|
||||
<component :is="draft !== undefined ? FlaskConical : Play" data-icon="inline-start" /> {{ draft !== undefined ? "Test" : "Run" }}</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
@@ -139,7 +139,6 @@ const scopedLogs = computed(() => logs.value ? { ...logs.value, entries: (logs.v
|
||||
<h3 class="text-xs font-medium text-muted-foreground">Captured changes</h3>
|
||||
<p v-if="changesError" role="alert" class="text-danger">{{ changesError }}</p>
|
||||
<ChangeCapture v-for="(capture, i) in captures" :key="i" :capture="capture" :task="task" />
|
||||
<p v-if="changes && !captures.length" class="text-xs text-muted-foreground">No changes captured for this step</p>
|
||||
</section>
|
||||
<section class="space-y-2">
|
||||
<h3 class="text-xs font-medium text-muted-foreground">Log <span title="Only lines tagged with this stage are shown">· stage-tagged lines</span></h3>
|
||||
|
||||
@@ -4,7 +4,6 @@ import {
|
||||
AlertDialogAction,
|
||||
AlertDialogCancel,
|
||||
AlertDialogContent,
|
||||
AlertDialogDescription,
|
||||
AlertDialogFooter,
|
||||
AlertDialogHeader,
|
||||
AlertDialogTitle,
|
||||
@@ -421,7 +420,6 @@ function syncScroll(event: Event): void {
|
||||
<AlertDialogContent>
|
||||
<AlertDialogHeader>
|
||||
<AlertDialogTitle>Delete the {{ selected }} workflow?</AlertDialogTitle>
|
||||
<AlertDialogDescription>This removes its stored definition.</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
||||
|
||||
@@ -60,7 +60,7 @@ const CHANGE_VARIANTS = { added: "default", edited: "secondary", removed: "destr
|
||||
<Button type="button" size="sm" variant="outline" class="ml-auto" :disabled="then === null || identical" :title="then === null ? 'This revision removed the workflow' : undefined" @click="emit('restore', then!)">
|
||||
<RotateCcw data-icon="inline-start" /> Restore this version</Button>
|
||||
</div>
|
||||
<p v-if="then === null" class="rounded-lg border border-border p-4 text-sm text-muted-foreground">This revision removed the workflow.</p>
|
||||
<p v-if="then === null" class="rounded-lg border border-border p-4 text-sm text-muted-foreground">Workflow removed in this revision.</p>
|
||||
<pre v-else-if="mode === 'yaml'" class="min-h-0 flex-1 overflow-auto rounded-lg border border-border py-2 font-mono text-[13px] leading-6"><code><span
|
||||
v-for="(line, i) in diff"
|
||||
:key="i"
|
||||
|
||||
Reference in new issue
Block a user