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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user