fix(ui): keep the chat launcher and Archie bar clear of controls and the canvas

Reserve bottom space for the floating launcher at phone width, drop the
duplicate provider class and the setup guidance sentence, give the source
and model rows room to size, place the Archie bar below the canvas, use the
shared Empty on the not-found page, and let the org overview list titles.
This commit is contained in:
sam committed 2026-10-18 15:54:31 +11:00
1 parent fd8d2c1941
commit de7571f91e
8 files changed
+56 -48

No files matched your search

+3 -1
View File
@@ -54,7 +54,9 @@ watch(() => accounts.status?.user, (user) => {
class="flex min-h-[calc(100vh-2rem)] flex-col overflow-clip rounded-xl border border-[var(--hairline)] bg-[var(--workspace)] shadow-[var(--shadow-workspace)] backdrop-blur-[28px] backdrop-saturate-[1.2] max-lg:min-h-screen max-lg:rounded-none max-lg:border-0 max-lg:shadow-none"
>
<Topbar :hidden="hidden" />
<main class="w-full flex-1 overflow-x-clip px-6 py-5 max-lg:p-4">
<!-- `max-md:pb-24` keeps the page clear of the floating chat launcher,
which is pinned to the bottom right at phone width. -->
<main class="w-full flex-1 overflow-x-clip px-6 py-5 max-md:pb-24 max-lg:p-4">
<!--
Keyed on the path and its parameters but not the query: a query-only
change is an entry state, so the page keeps the operator's filters,
+7 -2
View File
@@ -1,11 +1,16 @@
<script setup lang="ts">
import PageHeader from "./PageHeader.vue";
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
</script>
<template>
<div>
<PageHeader title="Page not found" />
<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>
<Empty>
<EmptyHeader>
<EmptyTitle>No page at this address</EmptyTitle>
<EmptyDescription><RouterLink to="/">Return to dashboard</RouterLink></EmptyDescription>
</EmptyHeader>
</Empty>
</div>
</template>
+1 -2
View File
@@ -46,12 +46,11 @@ const pct = computed(() => {
</CardHeader>
<CardContent>
<ul class="grid gap-2 text-sm">
<li v-for="(step, i) in steps" :key="i" class="flex items-center gap-2" :title="step.detail || undefined">
<li v-for="(step, i) in steps" :key="i" class="flex items-center gap-2">
<Check v-if="step.done" class="size-3.5 shrink-0 text-ok" aria-label="Done" />
<Circle v-else class="size-3.5 shrink-0 text-fg-subtle" aria-label="To do" />
<RouterLink v-if="!step.done && step.path" :to="step.path" class="font-medium hover:underline">{{ step.title }}</RouterLink>
<span v-else :class="step.done ? 'text-fg-muted' : 'font-medium'">{{ step.title }}</span>
<span v-if="!step.done && step.detail" class="ml-auto truncate text-xs text-fg-subtle">{{ step.detail }}</span>
</li>
</ul>
</CardContent>
+2 -2
View File
@@ -61,7 +61,7 @@ const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<Input
:id="`org-alias-${alias}`"
:model-value="model"
class="max-w-md flex-1 font-mono"
class="max-w-md flex-1 font-mono max-sm:basis-full"
placeholder="provider/model"
:aria-invalid="issue(String(alias)) ? true : undefined"
@update:model-value="(v) => setAlias(String(alias), String(v))"
@@ -83,7 +83,7 @@ const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<div v-for="(provider, name) in providers" :key="name" class="flex flex-wrap items-center gap-3 border-b border-border px-4 py-2.5 last-of-type:border-b-0">
<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" placeholder="base URL (empty: class default)" :aria-label="`Base URL 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}`" />
<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 -7
View File
@@ -3,7 +3,7 @@ import { ArrowRight } from "@lucide/vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Card, CardHeader, CardTitle } from "@/components/ui/card";
/**
* The organisation home: where each kind of organisation configuration lives,
@@ -13,11 +13,11 @@ import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/ca
* consumes it.
*/
const areas = [
{ title: "Execution identities", detail: "Who runs work, what it may touch, and the Git author it commits as.", to: "/org/agents" },
{ title: "Connections", detail: "The forge an organisation clones and pushes through, and which agents may use it.", to: "/org/connections" },
{ title: "Models", detail: "The providers and aliases runs and chat resolve.", to: "/org/models" },
{ title: "Schedules and playbooks", detail: "Automation that starts work without a request.", to: "/org/schedules" },
{ title: "Members and access", detail: "People, workspaces and the policies that permit operations.", to: "/org/members" },
{ title: "Execution identities", to: "/org/agents" },
{ title: "Connections", to: "/org/connections" },
{ title: "Models", to: "/org/models" },
{ title: "Schedules and playbooks", to: "/org/schedules" },
{ title: "Members and access", to: "/org/members" },
];
</script>
@@ -34,7 +34,6 @@ const areas = [
<Card size="sm" class="h-full transition-colors hover:border-primary/40">
<CardHeader>
<CardTitle>{{ area.title }}</CardTitle>
<CardDescription>{{ area.detail }}</CardDescription>
</CardHeader>
</Card>
</RouterLink>
+3 -3
View File
@@ -239,10 +239,10 @@ const eyebrow = "mb-2 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<Accordion type="multiple">
<AccordionItem v-for="(provider, name) in providers" :key="name" :value="String(name)" class="px-4">
<AccordionTrigger class="hover:no-underline">
<span class="flex min-w-0 flex-1 items-center gap-3">
<span class="flex min-w-0 flex-1 flex-wrap items-center gap-x-3">
<span class="w-28 text-left font-mono text-sm font-medium">{{ name }}</span>
<span class="font-mono text-xs text-fg-muted">{{ provider.class }}</span>
<span class="truncate font-mono text-xs text-fg-subtle">{{ keySource(provider) }}</span>
<span v-if="provider.class !== String(name)" class="font-mono text-xs text-fg-muted">{{ provider.class }}</span>
<span class="min-w-0 truncate font-mono text-xs text-fg-subtle">{{ keySource(provider) }}</span>
</span>
</AccordionTrigger>
<AccordionContent>
+28 -27
View File
@@ -110,33 +110,34 @@ function url(source: Source): string {
</TableHeader>
<TableBody>
<TableRow v-for="source in sources" :key="source.path">
<TableCell
class="max-w-0 truncate font-mono text-fg-muted"
:title="url(source)"
><Input
class="h-7 border-transparent px-1 font-sans shadow-none hover:border-input dark:bg-transparent"
:model-value="source.name ?? ''"
placeholder="Name this source"
:aria-label="`Name of source ${source.path}`"
:disabled="busy"
@change="rename(source, ($event.target as HTMLInputElement).value)"
/>{{ source.path }}
<Input
class="h-6 border-transparent px-1 font-mono text-xs text-fg-muted shadow-none hover:border-input md:text-xs dark:bg-transparent"
:model-value="source.delivery_header ?? ''"
placeholder="Delivery ID header"
title="The header the sender repeats on every retry of one delivery; a retry then starts no second run"
:aria-label="`Delivery ID header of source ${source.path}`"
:disabled="busy"
@change="setDeliveryHeader(source, ($event.target as HTMLInputElement).value)"
/>
<div
v-if="refusals[source.path]"
class="text-xs font-sans text-danger"
:title="refusals[source.path].addrs.join(', ')"
>
{{ refusals[source.path].refused }} refused in 24h from
{{ refusals[source.path].addrs.slice(0, 3).join(", ") }}
<TableCell class="font-mono text-fg-muted">
<div class="flex w-64 min-w-0 flex-col gap-1">
<Input
class="h-7 border-transparent px-1 font-sans shadow-none hover:border-input dark:bg-transparent"
:model-value="source.name ?? ''"
placeholder="Name this source"
:aria-label="`Name of source ${source.path}`"
:disabled="busy"
@change="rename(source, ($event.target as HTMLInputElement).value)"
/>
<span class="truncate" :title="url(source)">{{ source.path }}</span>
<Input
class="h-6 border-transparent px-1 font-mono text-xs text-fg-muted shadow-none hover:border-input md:text-xs dark:bg-transparent"
:model-value="source.delivery_header ?? ''"
placeholder="Delivery ID header"
title="The header the sender repeats on every retry of one delivery; a retry then starts no second run"
:aria-label="`Delivery ID header of source ${source.path}`"
:disabled="busy"
@change="setDeliveryHeader(source, ($event.target as HTMLInputElement).value)"
/>
<div
v-if="refusals[source.path]"
class="text-xs font-sans text-danger"
:title="refusals[source.path].addrs.join(', ')"
>
{{ refusals[source.path].refused }} refused in 24h from
{{ refusals[source.path].addrs.slice(0, 3).join(", ") }}
</div>
</div></TableCell
>
<TableCell>
+6 -4
View File
@@ -429,10 +429,10 @@ function syncScroll(event: Event): void {
itself does not scroll; the canvas pans. A phone stacks more chrome
above it (the workflow list, a two-row toolbar and the run picker),
hence the larger offset below md. -->
<div class="relative h-[calc(100dvh-17rem)] min-h-[26rem] max-md:flex max-md:h-[calc(100dvh-22rem)] max-md:min-h-[23rem] max-md:flex-col">
<p v-if="restartError" role="alert" class="absolute bottom-3 left-14 z-10 max-w-xl rounded-md border border-danger/40 bg-card px-3 py-2 text-sm text-danger shadow-lg">{{ restartError }}</p>
<div class="relative flex h-[calc(100dvh-17rem)] min-h-[26rem] flex-col max-md:h-[calc(100dvh-22rem)] max-md:min-h-[23rem]">
<p v-if="restartError" role="alert" class="absolute bottom-16 left-14 z-10 max-w-xl rounded-md border border-danger/40 bg-card px-3 py-2 text-sm text-danger shadow-lg">{{ restartError }}</p>
<WorkflowCanvas
class="max-md:h-auto max-md:min-h-0 max-md:flex-1"
class="h-auto min-h-0 flex-1"
:inert="archieWorking"
:yaml="yaml"
:stages="stages"
@@ -474,7 +474,9 @@ function syncScroll(event: Event): void {
</template>
</template>
</WorkflowCanvas>
<div class="pointer-events-none absolute inset-x-0 bottom-3 z-10 flex justify-center px-3 max-md:static max-md:px-0 max-md:pt-2 max-md:pr-16">
<!-- Below the canvas rather than over it: nodes run to the bottom edge,
so a floating bar hid the last step. -->
<div class="flex justify-center px-3 pt-2 max-md:pr-16">
<CoBuilder
v-if="selected"
:key="selected"