refactor(ui): audit leftovers use Alert, Item, CodeView and Tooltip
Inline error paragraphs become destructive Alerts, divided record lists become Item rows, the redirect URI box uses CodeView, and icon-button title hints use Tooltip. Native titles remain on truncated values and on disabled controls.
This commit is contained in:
35 files changed
+333
-243
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemActions, ItemContent, ItemGroup } from "@/components/ui/item";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
@@ -26,7 +27,7 @@ const change=()=>run(async()=>{await api.changePassword(current.value,next.value
|
||||
<Alert v-if="$route.query.welcome" class="mb-4">Your organisation and admin account are ready. Add a passkey below, <RouterLink class="underline" to="/org/members">add members</RouterLink>, or <RouterLink class="underline" to="/settings/authentication">configure OIDC</RouterLink>.</Alert>
|
||||
<Alert v-if="error" variant="destructive" class="mb-4"><AlertDescription>{{error}} <a class="underline" href="/?reauth=1">Sign in again</a></AlertDescription></Alert>
|
||||
<Section title="Passkeys">
|
||||
<ul v-if="keys.length" class="mb-3 divide-y divide-border"><li v-for="key in keys" :key="key.id" class="flex items-center gap-3 py-2"><span class="min-w-0 flex-1 truncate">{{key.name}}</span><Button variant="ghost" size="sm" class="text-danger" :disabled="busy" @click="remove(key.id)">Remove</Button></li></ul>
|
||||
<ItemGroup v-if="keys.length" class="mb-3"><Item v-for="key in keys" :key="key.id" as="li" variant="outline" size="xs"><ItemContent class="min-w-0 truncate"><span class="truncate">{{key.name}}</span></ItemContent><ItemActions><Button variant="ghost" size="sm" class="text-danger" :disabled="busy" @click="remove(key.id)">Remove</Button></ItemActions></Item></ItemGroup>
|
||||
<form v-if="eligible" class="flex flex-wrap gap-2" @submit.prevent="enroll"><Input v-model="keyName" aria-label="Passkey name" placeholder="Passkey name (optional)" maxlength="200" class="min-w-40 flex-1"/><Button type="submit" :disabled="busy">Add passkey</Button></form>
|
||||
<p v-else class="text-fg-muted">Passkeys need an HTTPS domain or localhost. Set the instance URL in <RouterLink class="underline" to="/settings/authentication">Authentication settings</RouterLink>.</p>
|
||||
</Section>
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Check, Copy } from "@lucide/vue";
|
||||
import { Check } from "@lucide/vue";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import CodeView from "@/base/CodeView.vue";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { api } from "@/lib/api";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
@@ -11,8 +12,7 @@ import { Section } from "@/components/ui/section";
|
||||
interface Settings {public_url:string;oidc_issuer:string;oidc_audience:string;oidc_client_id:string}
|
||||
const value=ref<Settings>({public_url:"",oidc_issuer:"",oidc_audience:"",oidc_client_id:""});const loaded=ref(false);const error=ref("");const busy=ref(false);const saved=ref(false);
|
||||
onMounted(async()=>{try{value.value=await api.authentication<Settings>();loaded.value=true}catch(cause){error.value=String((cause as Error).message||cause)}});
|
||||
const redirectURI=computed(()=>`${value.value.public_url.replace(/\/$/,"")}/oauth2/callback`);const copied=ref(false);
|
||||
async function copyRedirect(){await navigator.clipboard.writeText(redirectURI.value);copied.value=true;setTimeout(()=>(copied.value=false),1500)}
|
||||
const redirectURI=computed(()=>`${value.value.public_url.replace(/\/$/,"")}/oauth2/callback`);
|
||||
async function save(){busy.value=true;error.value="";saved.value=false;try{await api.saveAuthentication(value.value);saved.value=true}catch(cause){error.value=String((cause as Error).message||cause)}finally{busy.value=false}}
|
||||
</script>
|
||||
<template>
|
||||
@@ -27,7 +27,7 @@ async function save(){busy.value=true;error.value="";saved.value=false;try{await
|
||||
<SettingRow label="Client ID" for="oidc-client"><Input id="oidc-client" v-model="value.oidc_client_id" /></SettingRow>
|
||||
<SettingRow label="Access token audience" for="oidc-audience"><Input id="oidc-audience" v-model="value.oidc_audience" /></SettingRow>
|
||||
<SettingRow label="Redirect URI" hint="Add permitted people in Organisation → Members.">
|
||||
<div class="flex items-center gap-2"><code class="min-w-0 flex-1 select-all break-all rounded-md border border-border bg-muted px-2 py-1.5 font-mono text-xs">{{redirectURI}}</code><Button type="button" variant="ghost" size="icon-sm" aria-label="Copy redirect URI" title="Copy redirect URI" @click="copyRedirect"><Check v-if="copied" /><Copy v-else /></Button></div>
|
||||
<CodeView :code="redirectURI" />
|
||||
</SettingRow>
|
||||
<div class="flex items-center justify-end gap-2 border-t border-border pt-3"><Check v-if="saved" role="status" aria-label="Saved" class="size-4 text-fg-muted" /><Button type="submit" :disabled="busy">Save</Button></div>
|
||||
</Section>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { Plus } from "@lucide/vue";
|
||||
|
||||
@@ -65,12 +66,12 @@ onMounted(load);
|
||||
<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-fg-subtle">No tokens yet.</p>
|
||||
<ul v-if="tokens.length" class="divide-y divide-border" aria-label="API tokens">
|
||||
<li v-for="token in tokens" :key="token.id" class="flex items-center gap-3 py-2">
|
||||
<ItemGroup v-if="tokens.length" aria-label="API tokens">
|
||||
<Item v-for="token in tokens" :key="token.id" as="li" variant="outline" size="xs">
|
||||
<code class="flex-1 truncate text-xs">{{ token.id.slice(0, 12) }}</code>
|
||||
<span class="text-xs text-fg-subtle"><Timestamp :at="token.created_at" /></span>
|
||||
<Button variant="ghost" size="sm" class="text-danger" :disabled="busy" @click="revoke(token.id)">Revoke</Button>
|
||||
</li>
|
||||
</ul>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
</Section>
|
||||
</template>
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { computed, ref } from "vue";
|
||||
@@ -44,16 +45,20 @@ function failedDeliveries(alert: OperatorAlert): number {
|
||||
<Alert v-if="failed" variant="destructive" class="px-3 py-6 text-center"><AlertDescription>Alerts could not be loaded.</AlertDescription></Alert>
|
||||
<Empty v-else-if="!groups.length" class="border-0"><EmptyHeader><EmptyTitle>No alerts</EmptyTitle></EmptyHeader></Empty>
|
||||
<div v-else class="relative max-h-[calc(100dvh-6rem)] overflow-y-auto">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="absolute top-1.5 right-1.5"
|
||||
aria-label="Dismiss all"
|
||||
title="Dismiss all"
|
||||
@click="dismissAll"
|
||||
>
|
||||
<CheckCheck class="size-4" aria-hidden="true" />
|
||||
</Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="absolute top-1.5 right-1.5"
|
||||
aria-label="Dismiss all"
|
||||
@click="dismissAll"
|
||||
>
|
||||
<CheckCheck class="size-4" aria-hidden="true" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Dismiss all</TooltipContent>
|
||||
</Tooltip>
|
||||
<section v-for="group in groups" :key="group.severity" class="border-b p-3 last:border-b-0">
|
||||
<h3 class="mb-2 text-caption font-semibold text-fg-subtle">{{ group.label }}</h3>
|
||||
<ul class="grid gap-4">
|
||||
@@ -70,7 +75,12 @@ function failedDeliveries(alert: OperatorAlert): number {
|
||||
<span v-if="failedDeliveries(alert)" class="text-xs text-warn">Webhook delivery failed.</span>
|
||||
</component>
|
||||
<Timestamp :at="alert.first_raised" class="mt-0.5 shrink-0 text-xs whitespace-nowrap text-fg-subtle" />
|
||||
<Button variant="ghost" size="icon-sm" class="-mr-2 shrink-0" :aria-label="`Dismiss ${alert.title}`" title="Dismiss" @click="dismiss(alert)"><X /></Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" class="-mr-2 shrink-0" :aria-label="`Dismiss ${alert.title}`" @click="dismiss(alert)"><X /></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Dismiss</TooltipContent>
|
||||
</Tooltip>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
+15
-10
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { MessageCirclePlus } from "@lucide/vue";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
@@ -17,16 +18,20 @@ import { newChat } from "./state";
|
||||
<template>
|
||||
<div class="flex items-center gap-1 border-b px-3 py-2">
|
||||
<ChatSessionList />
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
title="New chat"
|
||||
aria-label="New chat"
|
||||
@click="newChat"
|
||||
>
|
||||
<MessageCirclePlus />
|
||||
</Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
aria-label="New chat"
|
||||
@click="newChat"
|
||||
>
|
||||
<MessageCirclePlus />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>New chat</TooltipContent>
|
||||
</Tooltip>
|
||||
<ChatSessionActions />
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { computed, nextTick, ref, watch } from "vue";
|
||||
|
||||
import { Clock, Mic, Pencil, X } from "@lucide/vue";
|
||||
@@ -173,12 +174,22 @@ function onKeydown(event: KeyboardEvent): void {
|
||||
>
|
||||
<Clock class="size-3.5 flex-none" aria-hidden="true" />
|
||||
<span class="min-w-0 flex-1 truncate">{{ queued }}</span>
|
||||
<Button variant="ghost" size="icon" class="size-7" aria-label="Edit queued message" title="Edit" @click="editQueued(index)"
|
||||
><Pencil
|
||||
/></Button>
|
||||
<Button variant="ghost" size="icon" class="size-7" aria-label="Remove queued message" title="Remove" @click="removeQueued(index)"
|
||||
><X
|
||||
/></Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon" class="size-7" aria-label="Edit queued message" @click="editQueued(index)"
|
||||
><Pencil
|
||||
/></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Edit</TooltipContent>
|
||||
</Tooltip>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon" class="size-7" aria-label="Remove queued message" @click="removeQueued(index)"
|
||||
><X
|
||||
/></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Remove</TooltipContent>
|
||||
</Tooltip>
|
||||
</li>
|
||||
</ul>
|
||||
<div
|
||||
|
||||
+28
-19
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { ChevronDown, ChevronUp } from "@lucide/vue";
|
||||
import { onUnmounted, ref, watch } from "vue";
|
||||
|
||||
@@ -69,16 +70,20 @@ function usePrompt(text: string): void {
|
||||
"
|
||||
>
|
||||
<ChatBar v-if="expanded">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
aria-label="Hide conversation"
|
||||
title="Hide conversation"
|
||||
@click="expanded = false"
|
||||
>
|
||||
<ChevronDown />
|
||||
</Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
aria-label="Hide conversation"
|
||||
@click="expanded = false"
|
||||
>
|
||||
<ChevronDown />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Hide conversation</TooltipContent>
|
||||
</Tooltip>
|
||||
</ChatBar>
|
||||
<div v-if="expanded" class="flex h-[min(28rem,55dvh)] min-h-0 flex-col">
|
||||
<ChatTranscript @prompt="usePrompt" />
|
||||
@@ -86,15 +91,19 @@ function usePrompt(text: string): void {
|
||||
<div @focusin="expanded = true">
|
||||
<ChatComposer ref="composer" :open="false" :bordered="expanded" :class="!expanded && 'border-t-0!'">
|
||||
<template v-if="!expanded" #actions>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
aria-label="Show conversation"
|
||||
title="Show conversation"
|
||||
@click="expanded = true"
|
||||
>
|
||||
<ChevronUp />
|
||||
</Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
aria-label="Show conversation"
|
||||
@click="expanded = true"
|
||||
>
|
||||
<ChevronUp />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Show conversation</TooltipContent>
|
||||
</Tooltip>
|
||||
</template>
|
||||
</ChatComposer>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import {
|
||||
Ellipsis,
|
||||
GitBranch,
|
||||
@@ -52,15 +53,19 @@ function prompt(command: string, message: string): void {
|
||||
<template>
|
||||
<Popover v-model:open="open">
|
||||
<PopoverTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
aria-label="More"
|
||||
title="More"
|
||||
>
|
||||
<Ellipsis />
|
||||
</Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
class="flex-none"
|
||||
aria-label="More"
|
||||
>
|
||||
<Ellipsis />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>More</TooltipContent>
|
||||
</Tooltip>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent align="end" class="grid w-64 gap-0.5 p-1">
|
||||
<template v-if="currentSession">
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Undo2 } from "@lucide/vue";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
@@ -15,16 +17,21 @@ defineEmits<{ revert: [change: Change] }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ul class="divide-y divide-border font-mono text-xs">
|
||||
<li v-for="change in changes" :key="change.path" class="group flex items-start gap-2 px-3 py-2">
|
||||
<ItemGroup class="font-mono text-xs">
|
||||
<Item v-for="change in changes" :key="change.path" as="li" variant="outline" size="xs" class="group items-start">
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="mb-1 font-sans font-medium">{{ label ? label(change.path) : change.path }}</p>
|
||||
<p class="whitespace-pre-wrap break-words text-danger"><span class="font-sans">Before: </span>{{ formatValue(change.before) }}</p>
|
||||
<p class="whitespace-pre-wrap break-words text-ok"><span class="font-sans">After: </span>{{ formatValue(change.after) }}</p>
|
||||
</div>
|
||||
<Button v-if="revertable" variant="ghost" size="icon-sm" :aria-label="`Revert ${label ? label(change.path) : change.path}`" title="Revert" @click="$emit('revert', change)">
|
||||
<Undo2 />
|
||||
</Button>
|
||||
</li>
|
||||
</ul>
|
||||
<Tooltip v-if="revertable">
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" :aria-label="`Revert ${label ? label(change.path) : change.path}`" @click="$emit('revert', change)">
|
||||
<Undo2 />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Revert</TooltipContent>
|
||||
</Tooltip>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
</template>
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { computed } from "vue";
|
||||
|
||||
@@ -32,8 +33,8 @@ function meta(task: AttentionTask): string {
|
||||
<template #action>
|
||||
<Button variant="ghost" size="sm" as-child><RouterLink to="/tasks?status=needs_attention">All tasks</RouterLink></Button>
|
||||
</template>
|
||||
<ul class="divide-y divide-border">
|
||||
<li v-for="task in waiting" :key="task.id" class="flex flex-wrap items-center gap-3 py-2">
|
||||
<ItemGroup>
|
||||
<Item v-for="task in waiting" :key="task.id" as="li" variant="outline" size="xs">
|
||||
<Badge variant="warn">{{ statusLabel(task.status ?? "") }}</Badge>
|
||||
<div class="min-w-0 flex-1">
|
||||
<RouterLink :to="`/tasks/${task.id}`" class="block truncate font-medium hover:underline">{{
|
||||
@@ -42,7 +43,7 @@ function meta(task: AttentionTask): string {
|
||||
<p class="truncate font-mono text-xs text-fg-subtle">{{ meta(task) }}</p>
|
||||
</div>
|
||||
<TaskRowActions :task="task" @done="loadDashboard" />
|
||||
</li>
|
||||
</ul>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
</Section>
|
||||
</template>
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
@@ -136,8 +138,8 @@ const isAgent = (value: Identity) =>
|
||||
</form>
|
||||
|
||||
<Section>
|
||||
<ul class="divide-y divide-border" aria-label="Agents">
|
||||
<li v-for="value in store.identities" :key="value.id" class="flex flex-wrap items-center gap-3 py-3 first:pt-0 last:pb-0">
|
||||
<ItemGroup aria-label="Agents">
|
||||
<Item v-for="value in store.identities" :key="value.id" as="li" variant="outline">
|
||||
<span class="grid size-8 shrink-0 place-items-center rounded-md bg-secondary text-fg-muted">
|
||||
<component :is="icons[value.kind]" class="size-4" aria-hidden="true" />
|
||||
</span>
|
||||
@@ -160,15 +162,18 @@ const isAgent = (value: Identity) =>
|
||||
<Badge v-if="isAgent(value) && serves.has(value.id)" variant="outline" class="font-mono">{{ org?.id }}</Badge>
|
||||
<Badge v-if="value.lifecycle !== 'active'" :variant="lifecycle[value.lifecycle]" class="capitalize">{{ value.lifecycle }}</Badge>
|
||||
<div v-if="value.kind !== 'system' && value.lifecycle !== 'retired'" class="flex flex-wrap gap-1">
|
||||
<Button
|
||||
v-if="isAgent(value) && !serves.has(value.id)"
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
:title="`Assign to ${org?.name}`"
|
||||
:disabled="busy === value.id"
|
||||
@click="assign(value)"
|
||||
>Assign</Button
|
||||
>
|
||||
<Tooltip v-if="isAgent(value) && !serves.has(value.id)">
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
:disabled="busy === value.id"
|
||||
@click="assign(value)"
|
||||
>Assign</Button
|
||||
>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Assign to {{ org?.name }}</TooltipContent>
|
||||
</Tooltip>
|
||||
<Button variant="ghost" size="sm" :disabled="!!store.identityBusy" @click="startRename(value)">Rename</Button>
|
||||
<Button
|
||||
v-if="value.lifecycle === 'active'"
|
||||
@@ -183,7 +188,7 @@ const isAgent = (value: Identity) =>
|
||||
>
|
||||
<Button variant="ghost" size="sm" class="text-danger" :disabled="!!store.identityBusy" @click="retiring = value">Retire</Button>
|
||||
</div>
|
||||
</li>
|
||||
</Item>
|
||||
<li v-if="!store.identitiesLoaded" class="py-3 text-sm text-fg-muted" role="status">Loading agents…</li>
|
||||
<li v-else-if="!store.identities.length && !store.identityError">
|
||||
<Empty class="py-6">
|
||||
@@ -192,7 +197,7 @@ const isAgent = (value: Identity) =>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
</li>
|
||||
</ul>
|
||||
</ItemGroup>
|
||||
</Section>
|
||||
|
||||
<IdentityGrantsCard />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import CreateAccount from "@/accounts/CreateAccount.vue";
|
||||
@@ -166,15 +167,19 @@ const remove = (member: Member) =>
|
||||
</Select>
|
||||
</TableCell>
|
||||
<TableCell class="text-right">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
:aria-label="`Remove ${member.display_name}`"
|
||||
title="Remove"
|
||||
:disabled="busy !== ''"
|
||||
@click="remove(member)"
|
||||
><Trash2
|
||||
/></Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
:aria-label="`Remove ${member.display_name}`"
|
||||
:disabled="busy !== ''"
|
||||
@click="remove(member)"
|
||||
><Trash2
|
||||
/></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Remove</TooltipContent>
|
||||
</Tooltip>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
<TableRow v-if="loading">
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { ChevronRight, Plus, Trash2 } from "@lucide/vue";
|
||||
@@ -89,8 +91,8 @@ const tones = {
|
||||
</TabsList>
|
||||
<TabsContent value="installed">
|
||||
<Section>
|
||||
<ul class="divide-y divide-border" aria-label="Extensions">
|
||||
<li v-for="extension in store.extensions" :key="extension.name" class="flex flex-wrap items-center gap-3 py-3 first:pt-0 last:pb-0">
|
||||
<ItemGroup aria-label="Extensions">
|
||||
<Item v-for="extension in store.extensions" :key="extension.name" as="li" variant="outline">
|
||||
<div class="min-w-0 w-full lg:w-auto lg:flex-1">
|
||||
<p class="truncate text-sm font-medium">
|
||||
{{ extension.display_name || extension.name }}
|
||||
@@ -152,16 +154,20 @@ const tones = {
|
||||
:aria-label="`Enable ${extension.name}`"
|
||||
@update:model-value="(value: boolean) => store.setEnabled(extension.name, value)"
|
||||
/>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
:aria-label="`Remove ${extension.name}`"
|
||||
title="Remove"
|
||||
:disabled="!!store.busy"
|
||||
@click="(removing = extension), (removeOpen = true)"
|
||||
><Trash2
|
||||
/></Button>
|
||||
</li>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
:aria-label="`Remove ${extension.name}`"
|
||||
:disabled="!!store.busy"
|
||||
@click="(removing = extension), (removeOpen = true)"
|
||||
><Trash2
|
||||
/></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Remove</TooltipContent>
|
||||
</Tooltip>
|
||||
</Item>
|
||||
<li v-if="loading" class="py-3 text-sm text-fg-muted" role="status">Loading extensions…</li>
|
||||
<li v-else-if="!store.extensions.length && !store.error">
|
||||
<Empty class="py-6">
|
||||
@@ -170,7 +176,7 @@ const tones = {
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
</li>
|
||||
</ul>
|
||||
</ItemGroup>
|
||||
</Section>
|
||||
|
||||
<ApplyStatusRows :kind="KIND" class="mt-6 border-t border-border py-4" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { computed, onMounted } from "vue";
|
||||
import { Plus, X } from "@lucide/vue";
|
||||
@@ -52,21 +53,21 @@ function removeIdentity(id: string) {
|
||||
<template>
|
||||
<Section title="Credential grants">
|
||||
<Alert v-if="error" variant="destructive" class="mb-3"><AlertDescription>{{ error }}</AlertDescription></Alert>
|
||||
<div v-if="grants" class="divide-y divide-border">
|
||||
<div class="flex flex-wrap items-center gap-3 py-2.5">
|
||||
<ItemGroup v-if="grants">
|
||||
<Item as="div" role="listitem" variant="outline" size="sm">
|
||||
<span class="w-40 shrink-0 text-sm">Default</span>
|
||||
<ToggleGroup type="multiple" variant="outline" size="sm" :model-value="grants.root ?? []" aria-label="Default grants" @update:model-value="(v) => setRoot(v as string[])">
|
||||
<ToggleGroupItem v-for="service in store.credentialServices" :key="service" :value="service" class="font-mono text-xs">{{ service }}</ToggleGroupItem>
|
||||
</ToggleGroup>
|
||||
<DraftHint :kind="KIND" path="root" />
|
||||
</div>
|
||||
<div v-for="(services, id) in grants.identities" :key="id" class="flex flex-wrap items-center gap-3 py-2.5">
|
||||
</Item>
|
||||
<Item v-for="(services, id) in grants.identities" :key="id" as="div" role="listitem" variant="outline" size="sm">
|
||||
<span class="w-40 shrink-0 truncate text-sm">{{ org.identityName(String(id)) }}</span>
|
||||
<ToggleGroup type="multiple" variant="outline" size="sm" :model-value="services" :aria-label="`${org.identityName(String(id))} grants`" @update:model-value="(v) => setIdentity(String(id), v as string[])">
|
||||
<ToggleGroupItem v-for="service in store.credentialServices" :key="service" :value="service" class="font-mono text-xs">{{ service }}</ToggleGroupItem>
|
||||
</ToggleGroup>
|
||||
<Button variant="ghost" size="sm" class="ml-auto" :aria-label="`Remove ${org.identityName(String(id))}`" @click="removeIdentity(String(id))"><X /></Button>
|
||||
</div>
|
||||
</Item>
|
||||
<div v-if="addable.length" class="py-2.5">
|
||||
<Select :model-value="undefined" @update:model-value="(id) => setIdentity(String(id), [])">
|
||||
<SelectTrigger class="w-56" aria-label="Add identity"><Plus class="size-4" /><SelectValue placeholder="Add identity" /></SelectTrigger>
|
||||
@@ -75,6 +76,6 @@ function removeIdentity(id: string) {
|
||||
</SelectGroup></SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
</div>
|
||||
</ItemGroup>
|
||||
</Section>
|
||||
</template>
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { computed, ref, watch } from "vue";
|
||||
import { useIntervalFn } from "@vueuse/core";
|
||||
@@ -82,7 +83,7 @@ async function check() {
|
||||
</Label>
|
||||
<Button variant="ghost" size="sm" @click="editing = false">Done</Button>
|
||||
</div>
|
||||
<p v-if="editing && engines.error" class="mt-1 text-xs text-danger" role="alert">{{ engines.error }}</p>
|
||||
<Alert v-if="editing && engines.error" variant="destructive" class="mt-1"><AlertDescription>{{ engines.error }}</AlertDescription></Alert>
|
||||
<div v-if="model.engine && model.key" class="mt-1 flex flex-wrap items-center gap-2 text-xs">
|
||||
<Button variant="ghost" size="sm" :disabled="disabled || checking" @click="check">Check reference</Button>
|
||||
<span v-if="checking" role="status">Checking…</span>
|
||||
|
||||
@@ -164,7 +164,7 @@ async function checkAccess(repo:Repo):Promise<void>{
|
||||
</Select>
|
||||
<Button type="button" variant="outline" class="w-fit" :disabled="!checkAgent || !repo.connection || unsaved || !!checking" @click="checkAccess(repo)">{{checking===`${repo.owner}/${repo.name}` ? "Checking…" : "Check access"}}</Button>
|
||||
<p v-if="unsaved" class="text-xs text-fg-muted">Save changes before checking access.</p>
|
||||
<p v-if="agentError" class="text-xs text-danger" role="alert">{{agentError}}</p>
|
||||
<Alert v-if="agentError" variant="destructive"><AlertDescription>{{agentError}}</AlertDescription></Alert>
|
||||
<p v-if="results[`${repo.owner}/${repo.name}`]" role="status" class="text-xs" :class="results[`${repo.owner}/${repo.name}`].verified ? 'text-ok' : 'text-danger'">
|
||||
<template v-if="results[`${repo.owner}/${repo.name}`].verified">{{ results[`${repo.owner}/${repo.name}`].operations?.join(" · ") }} as {{ results[`${repo.owner}/${repo.name}`].account }}</template>
|
||||
<template v-else>{{ results[`${repo.owner}/${repo.name}`].message }}</template>
|
||||
|
||||
@@ -193,7 +193,7 @@ const headerActions = computed(() =>
|
||||
<template v-else>{{ part.text }}</template>
|
||||
</template>
|
||||
</p>
|
||||
<p v-if="jumpError" class="mt-1 text-xs" role="alert">{{ jumpError }}</p>
|
||||
<Alert v-if="jumpError" variant="destructive" class="mt-1"><AlertDescription>{{ jumpError }}</AlertDescription></Alert>
|
||||
<Button v-if="failure.parked && run.attempts?.recovery" as-child size="sm" class="mt-2">
|
||||
<RouterLink :to="run.attempts.recovery.link">{{ run.attempts.recovery.label }}</RouterLink>
|
||||
</Button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { computed, ref, watch } from "vue";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
@@ -24,8 +25,8 @@ watch(() => props.task.review_gate, () => {
|
||||
<p v-if="gate.head_sha" class="break-all font-mono text-xs text-fg-muted">Head commit: {{ gate.head_sha }}</p>
|
||||
</CardHeader>
|
||||
<CardContent class="space-y-4">
|
||||
<ul class="divide-y divide-border rounded-md border border-border">
|
||||
<li v-for="entry in gate.findings" :key="entry.key" class="space-y-2 p-4">
|
||||
<ItemGroup>
|
||||
<Item v-for="entry in gate.findings" :key="entry.key" as="li" variant="outline" class="block space-y-2 p-4">
|
||||
<Label class="flex cursor-pointer items-start gap-3">
|
||||
<Checkbox
|
||||
:model-value="selected.includes(entry.key)"
|
||||
@@ -47,8 +48,8 @@ watch(() => props.task.review_gate, () => {
|
||||
<p class="whitespace-pre-wrap break-words text-sm">{{ entry.finding.Body }}</p>
|
||||
<p v-if="entry.finding.Evidence" class="whitespace-pre-wrap break-words text-xs text-fg-muted">Evidence: {{ entry.finding.Evidence }}</p>
|
||||
<pre v-if="entry.finding.Suggestion" class="overflow-x-auto rounded-md bg-secondary p-2 text-xs">{{ entry.finding.Suggestion }}</pre>
|
||||
</li>
|
||||
</ul>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
<div class="flex flex-wrap items-center justify-between gap-3">
|
||||
<p class="text-xs text-fg-muted">{{ selected.length }} of {{ gate.findings.length }} selected</p>
|
||||
<TaskRowActions :task="task" :only="['approve', 'rereview', 'reject']" :findings="selected" @done="emit('done', $event)" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { SuggestInput } from "@/components/ui/suggest-input";
|
||||
@@ -322,7 +323,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
placeholder="fixed value"
|
||||
class="h-8 w-full font-mono text-xs"
|
||||
/>
|
||||
<p v-if="rows[name]!.from === 'path' && resolved(name).failure" class="text-xs text-danger">{{ resolved(name).failure }}</p>
|
||||
<Alert v-if="rows[name]!.from === 'path' && resolved(name).failure" variant="destructive"><AlertDescription>{{ resolved(name).failure }}</AlertDescription></Alert>
|
||||
<p v-else-if="rows[name]!.from === 'path' && resolved(name).value !== undefined" class="truncate font-mono text-xs text-success" :title="resolved(name).value">{{ resolved(name).value }}</p>
|
||||
</div>
|
||||
<div v-if="repository" class="space-y-1 px-3 py-2">
|
||||
@@ -334,7 +335,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
placeholder="payload path"
|
||||
class="h-8 w-full font-mono text-xs"
|
||||
/>
|
||||
<p v-if="resolved(REPOSITORY_FIELD).failure" class="text-xs text-danger">{{ resolved(REPOSITORY_FIELD).failure }}</p>
|
||||
<Alert v-if="resolved(REPOSITORY_FIELD).failure" variant="destructive"><AlertDescription>{{ resolved(REPOSITORY_FIELD).failure }}</AlertDescription></Alert>
|
||||
<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">No inputs.</p>
|
||||
@@ -342,7 +343,7 @@ const resume = () => transition(api.bindingResume, "pending_approval");
|
||||
</section>
|
||||
|
||||
<div class="space-y-2">
|
||||
<p v-if="error" role="alert" class="text-xs text-danger">{{ error }}</p>
|
||||
<Alert v-if="error" variant="destructive"><AlertDescription>{{ error }}</AlertDescription></Alert>
|
||||
<p v-else-if="blockers.length" class="text-xs text-fg-subtle">Cannot save: {{ blockers[0] }}</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="submit" size="sm" :disabled="saving || !!blockers.length"><Spinner v-if="saving" />Save binding</Button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { ArrowLeft } from "@lucide/vue";
|
||||
@@ -191,7 +192,7 @@ async function remove(): Promise<void> {
|
||||
<form v-else class="flex-1 space-y-5 overflow-y-auto px-4 py-4" @submit.prevent="save">
|
||||
<section class="space-y-1.5">
|
||||
<Label for="schedule-trigger" class="text-xs font-medium text-fg-muted">Schedule</Label>
|
||||
<p v-if="loadError" class="text-xs text-danger" role="alert">{{ loadError }}</p>
|
||||
<Alert v-if="loadError" variant="destructive"><AlertDescription>{{ loadError }}</AlertDescription></Alert>
|
||||
<OptionSelect v-else id="schedule-trigger" aria-label="Schedule" :model-value="scheduleId" :options="scheduleOptions" class="w-full" @update:model-value="pickSchedule" />
|
||||
</section>
|
||||
|
||||
@@ -212,7 +213,7 @@ async function remove(): Promise<void> {
|
||||
</section>
|
||||
|
||||
<div class="space-y-2">
|
||||
<p v-if="error" role="alert" class="text-xs text-danger">{{ error }}</p>
|
||||
<Alert v-if="error" variant="destructive"><AlertDescription>{{ error }}</AlertDescription></Alert>
|
||||
<p v-else-if="blockers.length" class="text-xs text-fg-subtle">Cannot save: {{ blockers[0] }}</p>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="submit" size="sm" :disabled="saving || !!blockers.length"><Spinner v-if="saving" />Save trigger</Button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { computed, ref, useId } from "vue";
|
||||
import { ChevronDown, CircleHelp, Plus, Trash2 } from "@lucide/vue";
|
||||
@@ -172,7 +173,7 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue",
|
||||
<Input v-model="newBranch" :aria-label="type === 'switch' ? 'New case value' : 'New branch name'" :placeholder="type === 'switch' ? 'Value, or default' : 'Branch name'" @keydown.enter.prevent="changeBranch('add', newBranch.trim())" />
|
||||
<Button type="button" size="icon-sm" variant="outline" :aria-label="type === 'switch' ? 'Add case' : 'Add branch'" :disabled="!newBranch.trim()" @click="changeBranch('add', newBranch.trim())"><Plus /></Button>
|
||||
</div>
|
||||
<p v-if="branchError" role="alert" class="text-xs text-danger">{{ branchError }}</p>
|
||||
<Alert v-if="branchError" variant="destructive"><AlertDescription>{{ branchError }}</AlertDescription></Alert>
|
||||
</section>
|
||||
|
||||
<section v-if="fields.lead" class="space-y-1.5">
|
||||
@@ -275,7 +276,7 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue",
|
||||
</section>
|
||||
|
||||
<section class="space-y-1.5">
|
||||
<p v-if="flowProblem" role="alert" class="text-xs text-danger">{{ flowProblem }}</p>
|
||||
<Alert v-if="flowProblem" variant="destructive"><AlertDescription>{{ flowProblem }}</AlertDescription></Alert>
|
||||
<div class="divide-y divide-border rounded-md border border-border">
|
||||
<Label class="flex min-h-10 items-center gap-3 px-3 py-1.5">
|
||||
<span class="flex-1 text-label" title="Empty always runs. A field such as inputs.enabled, !inputs.skip, or steps.plan.result.ready == true">Run only when</span>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Item, ItemGroup } from "@/components/ui/item";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { computed, onUnmounted, ref, watch } from "vue";
|
||||
import { api } from "@/lib/api";
|
||||
@@ -118,12 +119,12 @@ const scopedLogs = computed(() => logs.value ? { ...logs.value, entries: (logs.v
|
||||
</div>
|
||||
<div v-if="group.tools.length" class="space-y-1">
|
||||
<h4 class="text-caption font-medium uppercase text-fg-muted">Tool calls · {{ group.tools.length }}</h4>
|
||||
<ol class="divide-y divide-border rounded-md border border-border">
|
||||
<li v-for="(tool, i) in expanded ? group.tools : group.tools.slice(0, 12)" :key="i" class="px-3 py-2">
|
||||
<ItemGroup class="gap-0">
|
||||
<Item v-for="(tool, i) in expanded ? group.tools : group.tools.slice(0, 12)" :key="i" as="li" variant="outline" size="xs" class="block">
|
||||
<div class="flex justify-between gap-2 text-xs"><span class="font-mono">{{ tool.data?.tool }}</span><span :class="tool.data?.failed ? 'text-danger' : 'text-fg-muted'">{{ tool.data?.failed ? 'Failed' : 'Returned' }}</span></div>
|
||||
<p v-if="tool.detail" class="mt-1 break-words whitespace-pre-wrap text-xs text-fg-muted">{{ tool.detail }}</p>
|
||||
</li>
|
||||
</ol>
|
||||
</Item>
|
||||
</ItemGroup>
|
||||
<Button v-if="group.tools.length > 12" type="button" variant="link" size="xs" class="px-0" @click="expanded = !expanded">{{ expanded ? 'Show first 12' : `Show all ${group.tools.length}` }}</Button>
|
||||
</div>
|
||||
<p v-if="group.reports.length" class="text-xs text-fg-muted">{{ group.reports.map((report) => describeTimelineEvent(report).detail).filter(Boolean).join(' · ') }}</p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
||||
import { computed, nextTick, ref, watch } from "vue";
|
||||
import { VueFlow, type NodeMouseEvent, type VueFlowStore } from "@vue-flow/core";
|
||||
import { Background } from "@vue-flow/background";
|
||||
@@ -317,9 +318,24 @@ const beforePath = computed(() => menuPath.value ? [...menuPath.value.slice(0, -
|
||||
</VueFlow>
|
||||
</div>
|
||||
<div class="flex shrink-0 items-center justify-center gap-1 border-t border-border bg-card p-1">
|
||||
<Button variant="ghost" size="icon-sm" title="Zoom in" aria-label="Zoom in" @click="flow?.zoomIn()"><Plus /></Button>
|
||||
<Button variant="ghost" size="icon-sm" title="Zoom out" aria-label="Zoom out" @click="flow?.zoomOut()"><Minus /></Button>
|
||||
<Button variant="ghost" size="icon-sm" title="Fit view" aria-label="Fit view" @click="place()"><Maximize /></Button>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" aria-label="Zoom in" @click="flow?.zoomIn()"><Plus /></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Zoom in</TooltipContent>
|
||||
</Tooltip>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" aria-label="Zoom out" @click="flow?.zoomOut()"><Minus /></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Zoom out</TooltipContent>
|
||||
</Tooltip>
|
||||
<Tooltip>
|
||||
<TooltipTrigger as-child>
|
||||
<Button variant="ghost" size="icon-sm" aria-label="Fit view" @click="place()"><Maximize /></Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>Fit view</TooltipContent>
|
||||
</Tooltip>
|
||||
</div>
|
||||
<Dialog :open="phone && !!anchor" @update:open="!$event && anchor && emit('toggle', keyOf(anchor.data))">
|
||||
<DialogContent v-if="anchor" class="max-h-[calc(100dvh-2rem)] overflow-y-auto" :aria-describedby="undefined">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
|
||||
import { Input } from "@/components/ui/input";
|
||||
@@ -94,7 +95,7 @@ const needs = computed<{ captures?: boolean; gate_retries?: number }>(() => {
|
||||
@update:model-value="set('identity', $event)"
|
||||
/>
|
||||
</Label>
|
||||
<p v-if="identitiesError" role="alert" class="px-3 py-2 text-xs text-danger">{{ identitiesError }} <Button variant="link" size="xs" @click="loadAgents">Retry</Button></p>
|
||||
<Alert v-if="identitiesError" variant="destructive" class="m-3"><AlertDescription>{{ identitiesError }} <Button variant="link" size="xs" @click="loadAgents">Retry</Button></AlertDescription></Alert>
|
||||
<p v-else-if="!identitiesLoading && !agents.length" class="px-3 py-2 text-xs text-fg-subtle">No active agents in your organisation.</p>
|
||||
<Label class="flex min-h-10 items-center gap-3 px-3 py-1.5">
|
||||
<span class="flex-1 text-label">Container profile</span>
|
||||
|
||||
Reference in new issue
Block a user