swarm-ui: give every tab the wide body
The shell had two body widths, a 60em readable column and a 90em wide body that a short list of table routes opted into. Every route now gets the 90em body, and the opt-in route list, its modifier class and its test go away.
This commit is contained in:
parent
0e7aa74d00
commit
89efda5ea2
4 changed files with 14 additions and 51 deletions
|
|
@ -1,8 +1,7 @@
|
|||
// The shell's per-route layout: which paths are full-bleed, which get the
|
||||
// wide body. Run by `npm test`.
|
||||
// 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, isWideBodyRoute } from "../src/shell/routes.ts";
|
||||
import { isFullBleedRoute } from "../src/shell/routes.ts";
|
||||
|
||||
test("the start page is full-bleed", () => {
|
||||
assert.equal(isFullBleedRoute("/"), true);
|
||||
|
|
@ -10,7 +9,6 @@ test("the start page is full-bleed", () => {
|
|||
|
||||
test("the hive directory moved off / and is not full-bleed", () => {
|
||||
assert.equal(isFullBleedRoute("/hives"), false);
|
||||
assert.equal(isWideBodyRoute("/hives"), false);
|
||||
});
|
||||
|
||||
test("an agent's terminal and a subagent's are full-bleed", () => {
|
||||
|
|
@ -31,12 +29,3 @@ 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);
|
||||
});
|
||||
|
||||
test("the wide-body routes are exactly the table pages", () => {
|
||||
for (const path of ["/issues", "/agents", "/review"]) {
|
||||
assert.equal(isWideBodyRoute(path), true, path);
|
||||
}
|
||||
for (const path of ["/", "/jobs", "/schedules", "/components"]) {
|
||||
assert.equal(isWideBodyRoute(path), false, path);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue