* fix(ui/topbar): replace Jump to with a command palette, drop filler chrome Jump to opens a shadcn-vue Command dialog that finds pages, tasks and workflows by name. The connection indicator shows only when the stream is lost, the dead documentation link is gone, and the profile menu label has no stray whitespace. * fix(ui): trim stray whitespace from template text and drop em dashes from copy Element text that started or ended with a line break rendered with leading and trailing spaces. Also removes the unused 'soon' nav state and the nav group components no route reaches. * fix(ui): drop the space a hidden spinner left before button text * fix(ui/status): one dense Status page, full-width settings, problems-only apply status Status drops its tabs and the duplicate health card; services list only what is wrong. Settings pages use the full width, the resizable sidebar handle is gone, and apply status shows only processes that have not applied a change. PageHeader puts the title and actions on one line. * refactor(ui): use shadcn ToggleGroup and Badge, drop SegmentedControl and StatusPill Status badges show only when a state needs attention: no Running, Enabled, Active, Listening or live pills next to healthy rows. Removes the unused pagination, radio-group and scroll-area components. * fix(ui/history): use the shadcn Table with fixed columns so nothing is clipped * fix(ui/workflows): apply ?workflow= only once the workflow is listed Selecting it before the definitions loaded opened an empty canvas. * refactor(ui/workflows): use shadcn Input, NativeSelect, Checkbox and Button in editors Replaces hand-rolled inputs, selects, the repository mode switch and icon buttons in the workflow editor, bind dialog, harness page, sources panel and review gate. Adds the upstream shadcn-vue NativeSelect. * style(ui): rounded-rectangle controls instead of pills Halves the radius scale so inputs, selects and buttons stop reading as pills, and badges and chips lose their full rounding. * fix(ui/alerts): centre the bell's failed state and stop it contradicting Needs you * fix(ui/tasks): one header line, aligned columns, no placeholder issue numbers Tasks puts its filters beside the title and drops the stat tiles the dashboard already shows. Sort headers align with their cells, chat tasks no longer show their synthetic issue number, and Logs and the task not-found page use the shared header. * fix(ui/dashboard): shared header and cards, empty cards stay silent Needs you uses the shadcn Card and drops its duplicate Open button; quality gates and token outlook render only when there is something to show; the throughput strip moves into the dashboard, its only user. * refactor(ui/stores): one Pinia store per feature Splits the site-wide control-plane store and the module-level refs into settings, workflows, tasks, events, org and session stores. Identity requests move into lib/api. Drops store fields nothing read: per-resource stream state, the states map and loadApplyStatus. * fix(ui/org): one header for the org area, sections drop their repeated titles The org name is the page title with the admin's org switcher and New org beside it; Members and Workspaces tables sit in cards like other pages. * fix(ui/events): shadcn Tabs for the capture, map and bind steps Replaces the numbered step strip with line tabs that carry each step's count; the Listening pill is gone and Capture off shows only when it is. * fix(ui/workflows): confirm a workflow delete in an AlertDialog, not window.confirm * style(ui/settings): denser setting rows
431 lines
12 KiB
TypeScript
431 lines
12 KiB
TypeScript
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
import ChannelsPage from "@/channels/ChannelsPage.vue";
|
|
import CuratorsPage from "@/curators/CuratorsPage.vue";
|
|
import DashboardPage from "@/dashboard/DashboardPage.vue";
|
|
import EventsPage from "@/events/EventsPage.vue";
|
|
import LogsPage from "@/logs/LogsPage.vue";
|
|
import OrgShell from "@/org/OrgShell.vue";
|
|
import OrgMembersPage from "@/org/OrgMembersPage.vue";
|
|
import OrgAgentsPage from "@/org/OrgAgentsPage.vue";
|
|
import OrgWorkspacesPage from "@/org/OrgWorkspacesPage.vue";
|
|
import OrgAccessPage from "@/org/OrgAccessPage.vue";
|
|
import OrgTokensPage from "@/org/OrgTokensPage.vue";
|
|
import OrgModelsPage from "@/org/OrgModelsPage.vue";
|
|
import SchedulingPolicyPage from "@/settings/SchedulingPolicyPage.vue";
|
|
import ReviewSettingsPage from "@/settings/ReviewSettingsPage.vue";
|
|
import ToolsPage from "@/settings/ToolsPage.vue";
|
|
import HistoryPage from "@/settings/HistoryPage.vue";
|
|
import PersonasPage from "@/settings/PersonasPage.vue";
|
|
import SoulPage from "@/settings/SoulPage.vue";
|
|
import SchedulesPage from "@/settings/SchedulesPage.vue";
|
|
import ExtensionsPage from "@/settings/ExtensionsPage.vue";
|
|
import PluginsPage from "@/settings/PluginsPage.vue";
|
|
import ContainerRuntimePage from "@/settings/ContainerRuntimePage.vue";
|
|
import SystemAppearancePage from "@/settings/SystemAppearancePage.vue";
|
|
import SystemModelsPage from "@/settings/SystemModelsPage.vue";
|
|
import SystemReposPage from "@/settings/SystemReposPage.vue";
|
|
import SystemStatusPage from "@/settings/SystemStatusPage.vue";
|
|
import SystemTasksPage from "@/settings/SystemTasksPage.vue";
|
|
import SkillsPage from "@/skills/SkillsPage.vue";
|
|
import TaskDetailPage from "@/tasks/TaskDetailPage.vue";
|
|
import TasksPage from "@/tasks/TasksPage.vue";
|
|
import WorkflowsPage from "@/workflows/WorkflowsPage.vue";
|
|
|
|
// internal/gateway/dashboard_tools.go mirrors this table.
|
|
//
|
|
// meta:
|
|
// label the navigation label, short because its group carries the context
|
|
// description one line mirrored in the messaging page registry
|
|
// section the capability from GET /api/capabilities this route needs; a
|
|
// route with no section is served in every composition
|
|
// navPath the navigation entry this route keeps current
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
name: "dashboard",
|
|
component: DashboardPage,
|
|
meta: {
|
|
label: "Dashboard",
|
|
description:
|
|
"What Archie is working on, what needs you, and token spend.",
|
|
},
|
|
},
|
|
{
|
|
path: "/tasks",
|
|
name: "tasks",
|
|
component: TasksPage,
|
|
meta: {
|
|
label: "Tasks",
|
|
description: "Issues Archie has picked up, and where each one stands.",
|
|
},
|
|
},
|
|
{
|
|
path: "/tasks/:id",
|
|
name: "task-detail",
|
|
component: TaskDetailPage,
|
|
meta: { label: "Task run", nav: false, navPath: "/tasks" },
|
|
},
|
|
{
|
|
path: "/workflows",
|
|
name: "workflows",
|
|
component: WorkflowsPage,
|
|
meta: {
|
|
label: "Workflows",
|
|
description: "The routed workflows and their run history.",
|
|
section: "workflows",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/skills",
|
|
name: "skills",
|
|
component: SkillsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Skills",
|
|
description: "The SKILL.md capabilities Archie can activate.",
|
|
section: "skills",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/curators",
|
|
name: "curators",
|
|
component: CuratorsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Curators",
|
|
description: "Scheduled passes that curate Archie's memory and captures.",
|
|
section: "curators",
|
|
},
|
|
},
|
|
{
|
|
path: "/events",
|
|
name: "events",
|
|
component: EventsPage,
|
|
meta: {
|
|
label: "Events",
|
|
description:
|
|
"Captured inbound events, how their fields map, and which workflow they start.",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/status",
|
|
name: "system-status",
|
|
component: SystemStatusPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Status",
|
|
description:
|
|
"Service presence, dependency health, and build versions.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/logs",
|
|
name: "logs",
|
|
component: LogsPage,
|
|
meta: {
|
|
label: "Logs",
|
|
description: "The daemon log stream, filterable by level and component.",
|
|
section: "logs",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/appearance",
|
|
name: "system-appearance",
|
|
component: SystemAppearancePage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Appearance",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/task-execution",
|
|
name: "system-tasks",
|
|
component: SystemTasksPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Task execution",
|
|
description: "Work lifecycle: statuses, operator actions, and budgets.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/models",
|
|
name: "system-models",
|
|
component: SystemModelsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Models",
|
|
description: "Model roles and the providers backing them.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/repositories",
|
|
name: "system-repos",
|
|
component: SystemReposPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Repositories",
|
|
description:
|
|
"Repositories Archie watches, and their per-repo gate overrides.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/org",
|
|
component: OrgShell,
|
|
meta: {
|
|
label: "Org",
|
|
description: "Your org: members, agents, workspaces, access and tokens.",
|
|
navPath: "/org",
|
|
},
|
|
children: [
|
|
{
|
|
path: "",
|
|
name: "org-members",
|
|
component: OrgMembersPage,
|
|
meta: { label: "Members", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "agents",
|
|
name: "org-agents",
|
|
component: OrgAgentsPage,
|
|
meta: { label: "Agents", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "workspaces",
|
|
name: "org-workspaces",
|
|
component: OrgWorkspacesPage,
|
|
meta: { label: "Workspaces", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "access",
|
|
name: "org-access",
|
|
component: OrgAccessPage,
|
|
meta: { label: "Access", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "tokens",
|
|
name: "org-tokens",
|
|
component: OrgTokensPage,
|
|
meta: { label: "Tokens", navPath: "/org" },
|
|
},
|
|
{
|
|
path: "models",
|
|
name: "org-models",
|
|
component: OrgModelsPage,
|
|
meta: { label: "Models", navPath: "/org" },
|
|
},
|
|
],
|
|
},
|
|
// Identities and access policies moved into Org; old bookmarks still resolve.
|
|
{ path: "/settings/identities", redirect: "/org/agents", meta: { nav: false } },
|
|
{ path: "/settings/access-policies", redirect: "/org/access", meta: { nav: false } },
|
|
{
|
|
path: "/settings/channels",
|
|
name: "channels",
|
|
component: ChannelsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Channels",
|
|
description: "Inbound chat and notification channels, and their state.",
|
|
section: "channels",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/personas",
|
|
name: "settings-personas",
|
|
component: PersonasPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Personas",
|
|
description: "The system prompts chat runs under, and the default.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/soul",
|
|
name: "settings-soul",
|
|
component: SoulPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "SOUL",
|
|
description: "Archie's user-authored identity and tone.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/schedules",
|
|
name: "settings-schedules",
|
|
component: SchedulesPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Schedules",
|
|
description: "Work Archie starts on its own, on a timetable.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/scheduling-policy",
|
|
name: "settings-scheduling-policy",
|
|
component: SchedulingPolicyPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Scheduling policy",
|
|
description: "How Archie finds work and labels its state on the forge.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/review",
|
|
name: "settings-review",
|
|
component: ReviewSettingsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Review",
|
|
description: "How Archie reviews pull requests: precision filtering and operator approval before posting.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/tools",
|
|
name: "settings-tools",
|
|
component: ToolsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Tools & MCP",
|
|
description: "The tools agents can call, and the MCP servers that add more.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/extensions",
|
|
name: "settings-extensions",
|
|
component: ExtensionsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Extensions",
|
|
description: "Installed extensions and their grants.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/plugins",
|
|
name: "settings-plugins",
|
|
component: PluginsPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Plugins",
|
|
description: "Where extension directories are loaded from.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/container-runtime",
|
|
name: "settings-container-runtime",
|
|
component: ContainerRuntimePage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Container runtime",
|
|
description: "The containers agents run in.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/agent-profiles",
|
|
name: "settings-agent-profiles",
|
|
component: () => import("@/settings/AgentProfilesPage.vue"),
|
|
meta: { navPath: "/settings", settings: true, label: "Agent profiles", section: "settings" },
|
|
},
|
|
{
|
|
path: "/settings/credential-bindings",
|
|
name: "settings-credential-bindings",
|
|
component: () => import("@/settings/CredentialBindingsPage.vue"),
|
|
meta: { navPath: "/settings", settings: true, label: "Credential bindings", section: "settings" },
|
|
},
|
|
{
|
|
path: "/settings/playbooks",
|
|
name: "settings-playbooks",
|
|
component: () => import("@/settings/PlaybooksPage.vue"),
|
|
meta: { navPath: "/settings", settings: true, label: "Playbooks", section: "settings" },
|
|
},
|
|
{
|
|
path: "/settings/harness",
|
|
name: "settings-harness",
|
|
// Lazy so xterm.js stays out of the shell every page loads.
|
|
component: () => import("@/harness/HarnessPage.vue"),
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "Harness",
|
|
description: "OAuth credential bindings and the Kit setup terminal.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings/history",
|
|
name: "settings-history",
|
|
component: HistoryPage,
|
|
meta: {
|
|
navPath: "/settings",
|
|
settings: true,
|
|
label: "History",
|
|
description: "Every settings change: who made it, when, and what it was before.",
|
|
section: "settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/settings",
|
|
redirect: "/settings/personas",
|
|
meta: {
|
|
label: "Settings",
|
|
},
|
|
},
|
|
{
|
|
path: "/:pathMatch(.*)*",
|
|
name: "not-found",
|
|
component: () => import("@/base/NotFoundPage.vue"),
|
|
meta: { nav: false },
|
|
},
|
|
// Paths from before Settings existed, kept for bookmarks and chat history.
|
|
...Object.entries({
|
|
"/system/status": "/settings/status",
|
|
"/system/appearance": "/settings/appearance",
|
|
"/system/tasks": "/settings/task-execution",
|
|
"/system/models": "/settings/models",
|
|
"/system/repos": "/settings/repositories",
|
|
"/system/identities": "/org/agents",
|
|
"/channels": "/settings/channels",
|
|
"/skills": "/settings/skills",
|
|
"/curators": "/settings/curators",
|
|
}).map(([path, redirect]) => ({ path, redirect, meta: { nav: false } })),
|
|
];
|
|
|
|
export { routes };
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router;
|