swarm-ui: restructure the agent card into status, terminal, subagents and settings, with badge controls for internet, permissions and allowed domains
This commit is contained in:
parent
197caa1e52
commit
5e23734667
1 changed files with 437 additions and 302 deletions
|
|
@ -8,21 +8,24 @@ import {
|
|||
startsOpen,
|
||||
} from "../src/agent/detail/sections.ts";
|
||||
|
||||
test("a card holds overview, settings and accounts, then the terminal", () => {
|
||||
test("a card holds status, terminal, subagents, then settings", () => {
|
||||
assert.deepEqual(sectionsFor(true), [
|
||||
"overview",
|
||||
"settings",
|
||||
"accounts",
|
||||
"status",
|
||||
"terminal",
|
||||
"subagents",
|
||||
"settings",
|
||||
]);
|
||||
});
|
||||
|
||||
test("a page beside a terminal leaves the terminal out", () => {
|
||||
assert.deepEqual(sectionsFor(false), ["overview", "settings", "accounts"]);
|
||||
test("a page beside a terminal leaves the terminal and subagents out", () => {
|
||||
assert.deepEqual(sectionsFor(false), ["status", "settings"]);
|
||||
});
|
||||
|
||||
test("only the overview starts open", () => {
|
||||
assert.deepEqual(sectionsFor(true).filter(startsOpen), ["overview"]);
|
||||
test("the status and the terminal start open", () => {
|
||||
assert.deepEqual(sectionsFor(true).filter(startsOpen), [
|
||||
"status",
|
||||
"terminal",
|
||||
]);
|
||||
});
|
||||
|
||||
test("every section has a header", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue