swarm ui: an agent's details are an identity card and sections by question
The details pane showed the agent's name, then status, message and wanted rows with no card, then a folded status section repeating the state, and a single settings section of eleven rows of different kinds. The pane now opens with one identity card: icon and name, the wanted menu, badges for freshness, turn state, context and a needed login, the whole status message, and the hive, links and config PR. Below it the folded sections answer one question each: terminal, activity (todos, subagents and background tasks together), instructions, inference (which now holds the claude login and API key), access, and accounts. The terminal page's popover shows the card without the name and the four settings sections.
This commit is contained in:
parent
9909e63c2d
commit
ab329e5793
1 changed files with 480 additions and 375 deletions
|
|
@ -8,26 +8,28 @@ import {
|
|||
startsOpen,
|
||||
} from "../src/agent/detail/sections.ts";
|
||||
|
||||
test("a card holds status, terminal, open todos, subagents, background tasks, then settings", () => {
|
||||
test("the details hold the terminal, the activity, then one section per question", () => {
|
||||
assert.deepEqual(sectionsFor(true), [
|
||||
"status",
|
||||
"terminal",
|
||||
"todos",
|
||||
"subagents",
|
||||
"tasks",
|
||||
"settings",
|
||||
"activity",
|
||||
"instructions",
|
||||
"inference",
|
||||
"access",
|
||||
"accounts",
|
||||
]);
|
||||
});
|
||||
|
||||
test("a page beside a terminal leaves the terminal, todos, subagents and tasks out", () => {
|
||||
assert.deepEqual(sectionsFor(false), ["status", "settings"]);
|
||||
test("a page beside a terminal leaves the terminal and the activity out", () => {
|
||||
assert.deepEqual(sectionsFor(false), [
|
||||
"instructions",
|
||||
"inference",
|
||||
"access",
|
||||
"accounts",
|
||||
]);
|
||||
});
|
||||
|
||||
test("the status and the terminal start open", () => {
|
||||
assert.deepEqual(sectionsFor(true).filter(startsOpen), [
|
||||
"status",
|
||||
"terminal",
|
||||
]);
|
||||
test("only the terminal starts open", () => {
|
||||
assert.deepEqual(sectionsFor(true).filter(startsOpen), ["terminal"]);
|
||||
});
|
||||
|
||||
test("every section has a header", () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue