The hives nav tab and route go, with no redirect; the roster is a card above the agents panel that starts folded and is read on the first open. The settings toggle is renamed from hide debug output to hide developer details, as it now also drops the components tab (the page still answers at /components); the stored preference keeps its key.
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
// The shell's per-route layout: which paths are full-bleed. Run by `npm test`.
|
|
import assert from "node:assert/strict";
|
|
import { test } from "node:test";
|
|
import { isFullBleedRoute } from "../src/shell/routes.ts";
|
|
|
|
test("the start page is full-bleed", () => {
|
|
assert.equal(isFullBleedRoute("/"), true);
|
|
});
|
|
|
|
test("the hive directory moved off / and is not full-bleed", () => {
|
|
assert.equal(isFullBleedRoute("/agents"), false);
|
|
});
|
|
|
|
test("an agent's terminal and a subagent's are full-bleed", () => {
|
|
assert.equal(isFullBleedRoute("/agents/iris/terminal"), true);
|
|
assert.equal(
|
|
isFullBleedRoute("/agents/iris/subagents/scout-1/terminal"),
|
|
true,
|
|
);
|
|
});
|
|
|
|
test("the agents page and other routes are not full-bleed", () => {
|
|
for (const path of ["/agents", "/agents/iris", "/jobs", "/issues"]) {
|
|
assert.equal(isFullBleedRoute(path), false, path);
|
|
}
|
|
});
|
|
|
|
test("a terminal path with extra segments is not full-bleed", () => {
|
|
assert.equal(isFullBleedRoute("/agents/iris/terminal/extra"), false);
|
|
assert.equal(isFullBleedRoute("/agents//terminal"), false);
|
|
});
|