feat(webui): five-place top bar with Settings, New task and one connection pill

Dashboard, Tasks, Workflows, Events and Settings replace the Work, Agent
and System menus. Configuration pages move under /settings/* with
redirects from their old paths; Logs and Appearance leave the bar and stay
reachable from Jump to, the Dashboard and the account menu. New task opens
the Start work form in a dialog and lands on the new task. One pill reports
the live stream's state.

Drops docs/prds/dashboard-navigation-groups.md: web UI design is not
tracked in PRDs.
This commit is contained in:
sam committed 2026-09-25 15:09:18 +10:00
1 parent b9292e1911
commit 4ffebb855d
23 files changed
+453 -383

No files matched your search

+53 -67
View File
@@ -1,14 +1,7 @@
<script setup lang="ts">
import { computed, ref, watchEffect } from "vue";
import { computed, ref, useId, watchEffect } from "vue";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";
import { Input } from "@/components/ui/input";
import {
@@ -31,6 +24,8 @@ interface Definition {
}
const props = defineProps<{ definitions: Definition[] }>();
const uid = useId();
const emit = defineEmits<{ started: [taskId: number] }>();
/** Starting work enters Archie's normal admitted task queue, not a side door. */
@@ -64,6 +59,7 @@ async function submit() {
instructions: instructions.value,
});
notice.value = `Queued task #${result.task_id}.`;
emit("started", result.task_id);
identity.value = "";
repository.value = "";
workflow.value = defaultWorkflow.value;
@@ -78,63 +74,53 @@ async function submit() {
</script>
<template>
<Card class="mb-4">
<CardHeader>
<CardTitle>Start work</CardTitle>
<CardDescription
>This enters Archie's normal admitted task queue.</CardDescription
>
</CardHeader>
<CardContent>
<form @submit.prevent="submit">
<FieldGroup>
<Field>
<FieldLabel for="wf-identity">Identity</FieldLabel>
<Input id="wf-identity" v-model="identity" required />
</Field>
<Field>
<FieldLabel for="wf-repository">Repository</FieldLabel>
<Input
id="wf-repository"
v-model="repository"
placeholder="owner/repository"
required
/>
</Field>
<Field>
<FieldLabel for="wf-workflow">Workflow</FieldLabel>
<Select v-model="workflow" required>
<SelectTrigger id="wf-workflow">
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem v-for="d in enabled" :key="d.id" :value="d.id">
{{ workflowLabel(d.name || d.id) }}
</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</Field>
<Field>
<FieldLabel for="wf-title">Task title</FieldLabel>
<Input id="wf-title" v-model="title" required />
</Field>
<Field>
<FieldLabel for="wf-instructions">Instructions</FieldLabel>
<Textarea
id="wf-instructions"
v-model="instructions"
:rows="3"
required
/>
</Field>
<Field orientation="horizontal">
<Button type="submit" :disabled="submitting">Start work</Button>
<p v-if="notice" class="text-sm text-fg-muted">{{ notice }}</p>
</Field>
</FieldGroup>
</form>
</CardContent>
</Card>
<form @submit.prevent="submit">
<FieldGroup>
<Field>
<FieldLabel :for="`${uid}-identity`">Identity</FieldLabel>
<Input :id="`${uid}-identity`" v-model="identity" required />
</Field>
<Field>
<FieldLabel :for="`${uid}-repository`">Repository</FieldLabel>
<Input
:id="`${uid}-repository`"
v-model="repository"
placeholder="owner/repository"
required
/>
</Field>
<Field>
<FieldLabel :for="`${uid}-workflow`">Workflow</FieldLabel>
<Select v-model="workflow" required>
<SelectTrigger :id="`${uid}-workflow`">
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem v-for="d in enabled" :key="d.id" :value="d.id">
{{ workflowLabel(d.name || d.id) }}
</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</Field>
<Field>
<FieldLabel :for="`${uid}-title`">Task title</FieldLabel>
<Input :id="`${uid}-title`" v-model="title" required />
</Field>
<Field>
<FieldLabel :for="`${uid}-instructions`">Instructions</FieldLabel>
<Textarea
:id="`${uid}-instructions`"
v-model="instructions"
:rows="3"
required
/>
</Field>
<Field orientation="horizontal">
<Button type="submit" :disabled="submitting">Start work</Button>
<p v-if="notice" class="text-sm text-fg-muted">{{ notice }}</p>
</Field>
</FieldGroup>
</form>
</template>
+18 -2
View File
@@ -2,7 +2,13 @@
import { onMounted, ref } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Card, CardContent } from "@/components/ui/card";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import {
Empty,
EmptyDescription,
@@ -57,7 +63,17 @@ onMounted(async () => {
<!-- Starting work needs a definition to start: with none served, the form
could only be submitted to fail. -->
<StartWorkForm v-if="definitions.length" :definitions="definitions" />
<Card v-if="definitions.length" class="mb-4">
<CardHeader>
<CardTitle>Start work</CardTitle>
<CardDescription
>This enters Archie's normal admitted task queue.</CardDescription
>
</CardHeader>
<CardContent>
<StartWorkForm :definitions="definitions" />
</CardContent>
</Card>
<Card v-if="error">
<CardContent>