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.
16 lines
493 B
TypeScript
16 lines
493 B
TypeScript
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);
|
|
}
|
|
});
|