The control room, on the primitives from the previous commit. Being the first page it also settles the shape of the rest: shadcn components for chrome, one feature folder per page, Lucide imported at the call site. Carried across deliberately, because each was a fix rather than a layout: - Live activity's detail is cut to one line and clamped again in the cell, so a long unbroken token (a path, a URL, a hash) cannot widen the column past the table. Unclamped, one agent_finish row made the dashboard 7,481px tall. - Each HEALTH card takes its own content height. Matching them was right while both held a checklist; once setup is done that card is a title and a line while Gate pulse carries a gauge and four rows, so equalising them left a mostly-empty box taking a quarter of the first screen. The task links are router paths now, not the `#/tasks` hashes the Preact build used. History routing means a hash is not a route any more, so one that survived here would navigate nowhere. Also in this change: - Button gains an `attention` variant, in the project's own cva. An action that exists because something needs a human has to look unlike one that is always present, and `destructive` would overstate it: nothing is broken, it is waiting. - The setup panel branches on the state machine rather than on "is setup present at all". Guarding on presence showed a 100% checklist with every step struck through where the complete state belongs.
46 lines
4.0 KiB
TypeScript
46 lines
4.0 KiB
TypeScript
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
import DashboardPage from "@/dashboard/DashboardPage.vue";
|
|
import Placeholder from "@/views/Placeholder.vue";
|
|
|
|
// internal/gateway/dashboard_tools.go mirrors this table; its test parses this
|
|
// file, so keep one route per line with `path: "..."` on a single line, and
|
|
// `nav: false` on any entry the registry should skip.
|
|
//
|
|
// meta:
|
|
// label the navigation label, short because its group carries the context
|
|
// description one line, shown as the item's tooltip and mirrored in the 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
|
|
// soon visible, greyed and non-navigable
|
|
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: Placeholder, meta: { label: "Tasks", description: "Issues Archie has picked up, and where each one stands." } },
|
|
{ path: "/tasks/:id", name: "task-detail", component: Placeholder, meta: { label: "Task run", nav: false, navPath: "/tasks" } },
|
|
{ path: "/workflows", name: "workflows", component: Placeholder, meta: { label: "Workflows", description: "The routed workflows and their run history.", section: "workflows" } },
|
|
{ path: "/skills", name: "skills", component: Placeholder, meta: { label: "Skills", description: "The SKILL.md capabilities Archie can activate.", section: "skills" } },
|
|
{ path: "/curators", name: "curators", component: Placeholder, meta: { label: "Curators", description: "Scheduled passes that curate Archie's memory and captures.", section: "curators" } },
|
|
{ path: "/captures", name: "captures", component: Placeholder, meta: { label: "Inspector", description: "Captured inbound events, as they were received.", section: "captures" } },
|
|
{ path: "/mappings", name: "mappings", component: Placeholder, meta: { label: "Mappings", description: "How inbound event fields map onto internal ones.", section: "mappings" } },
|
|
{ path: "/bindings", name: "bindings", component: Placeholder, meta: { label: "Bindings", description: "Which workflow a captured event starts.", section: "bindings" } },
|
|
{ path: "/system/status", name: "system-status", component: Placeholder, meta: { label: "Status", description: "Update state, configuration sources, and the listen address.", section: "settings" } },
|
|
{ path: "/logs", name: "logs", component: Placeholder, meta: { label: "Logs", description: "The daemon log stream, filterable by level and component.", section: "logs" } },
|
|
{ path: "/system/appearance", name: "system-appearance", component: Placeholder, meta: { label: "Appearance", description: "Theme and display preferences." } },
|
|
{ path: "/system/tasks", name: "system-tasks", component: Placeholder, meta: { label: "Task settings", description: "Work lifecycle: statuses, operator actions, and budgets.", section: "settings" } },
|
|
{ path: "/system/models", name: "system-models", component: Placeholder, meta: { label: "Models", description: "Model roles and the providers backing them.", section: "settings" } },
|
|
{ path: "/system/repos", name: "system-repos", component: Placeholder, meta: { label: "Repositories", description: "Repositories Archie watches, and their per-repo gate overrides.", section: "settings" } },
|
|
{ path: "/channels", name: "channels", component: Placeholder, meta: { label: "Channels", description: "Inbound chat and notification channels, and their state.", section: "channels" } },
|
|
{ path: "/system/advanced", name: "system-advanced", component: Placeholder, meta: { label: "Advanced", description: "Identity, storage, sandboxing, and dangerous actions.", section: "settings" } },
|
|
{ path: "/settings", redirect: "/system/status", meta: { nav: false } },
|
|
];
|
|
|
|
export { routes };
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
});
|
|
|
|
export default router;
|