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:
23 files changed
+453
-383
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import { connectionStatus } from "../src/lib/connection.ts";
|
||||
|
||||
test("the connection pill names the stream state", () => {
|
||||
for (const [state, label, tone] of [
|
||||
["live", "Connected", "ok"],
|
||||
["connecting", "Connecting", "warn"],
|
||||
["reconnecting", "Connecting", "warn"],
|
||||
["unavailable", "Disconnected", "danger"],
|
||||
] as const) {
|
||||
assert.deepEqual(connectionStatus(state), { label, tone }, state);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user