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
@@ -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