fix(ui): Instructions replaces SOUL in routes and agent pages; terse alerts; missing-key hint

This commit is contained in:
sam committed 2026-10-18 19:27:11 +11:00
1 parent bf47a9f540
commit 66ec3437fc
9 files changed
+26 -23

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, ref } from "vue";
import { Bell } from "@lucide/vue";
import { Bell, X } from "@lucide/vue";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
@@ -46,10 +46,10 @@ function failedDeliveries(alert: OperatorAlert): number {
<li v-for="alert in group.alerts" :key="alert.id" class="grid gap-1">
<div class="flex items-baseline justify-between gap-2">
<RouterLink v-if="alert.link" :to="alert.link" class="text-sm font-medium hover:underline" @click="open = false">
{{ alert.title }}<template v-if="alert.count > 1"> ×{{ alert.count }}</template>
{{ alert.title }}
</RouterLink>
<span v-else class="text-sm font-medium">{{ alert.title }}<template v-if="alert.count > 1"> ×{{ alert.count }}</template></span>
<Button variant="ghost" size="xs" class="-mr-2 shrink-0" @click="dismiss(alert)">Dismiss</Button>
<span v-else class="text-sm font-medium">{{ alert.title }}</span>
<Button variant="ghost" size="icon-sm" class="-mr-2 shrink-0" :aria-label="`Dismiss ${alert.title}`" title="Dismiss" @click="dismiss(alert)"><X /></Button>
</div>
<p v-if="alert.body" class="text-xs text-fg-subtle">{{ alert.body }}</p>
<p v-if="failedDeliveries(alert)" class="text-xs text-warn">Webhook delivery failed.</p>
+1 -1
View File
@@ -37,7 +37,7 @@ const orgSpecs: NavSpec[] = [
},
{
label: "Connections & models",
paths: ["/org/connections", "/org/repositories", "/org/credential-bindings", "/org/models", "/org/soul"],
paths: ["/org/connections", "/org/repositories", "/org/credential-bindings", "/org/models", "/org/instructions"],
},
{
label: "Automation",
+2
View File
@@ -45,6 +45,7 @@ function addProvider() {
providers.value[name] = { class: "openai", api_key_ref: { engine: "", key: "" } };
newProvider.value = "";
}
const bound = computed(() => new Set(((store.drafts["credential-bindings"]?.value as { service: string }[] | null) ?? []).map((b) => b.service)));
const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase";
</script>
@@ -84,6 +85,7 @@ const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<span class="w-28 font-mono text-sm font-medium">{{ name }}</span>
<Input v-model="provider.class" class="w-36 font-mono" :aria-label="`Class for ${name}`" />
<Input v-model="provider.base_url" class="max-w-md flex-1 font-mono max-sm:basis-full" placeholder="base URL (empty: class default)" :aria-label="`Base URL for ${name}`" />
<RouterLink v-if="!bound.has(String(name))" to="/org/credential-bindings" class="text-xs text-warn hover:underline">Add a credential binding named "{{ name }}"</RouterLink>
<Button variant="ghost" size="icon" class="ml-auto" :aria-label="`Remove provider ${name}`" @click="delete providers[name]"><Trash2 /></Button>
</div>
<form class="flex gap-2 border-t border-border px-4 py-3" @submit.prevent="addProvider">
+6 -5
View File
@@ -15,7 +15,7 @@ import OrgModelsPage from "@/org/OrgModelsPage.vue";
import SchedulingPolicyPage from "@/settings/SchedulingPolicyPage.vue";
import ToolsPage from "@/settings/ToolsPage.vue";
import HistoryPage from "@/settings/HistoryPage.vue";
import SoulPage from "@/settings/SoulPage.vue";
import InstructionsPage from "@/settings/InstructionsPage.vue";
import SchedulesPage from "@/settings/SchedulesPage.vue";
import ExtensionsPage from "@/settings/ExtensionsPage.vue";
import PluginsPage from "@/settings/PluginsPage.vue";
@@ -247,9 +247,9 @@ const routes = [
meta: { label: "Models", navPath: "/org" },
},
{
path: "soul",
name: "org-soul",
component: SoulPage,
path: "instructions",
name: "org-instructions",
component: InstructionsPage,
meta: { label: "Instructions", navPath: "/org" },
},
{
@@ -281,7 +281,8 @@ const routes = [
"/settings/connections": "/org/connections",
"/settings/repositories":"/org/repositories",
"/settings/credential-bindings": "/org/credential-bindings",
"/settings/soul": "/org/soul",
"/settings/soul": "/org/instructions",
"/org/soul": "/org/instructions",
"/settings/schedules": "/org/schedules",
"/settings/playbooks": "/org/playbooks",
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
File renamed without changes.