web: put the work first and the audit evidence behind a door
- Turn files (input/memory/output/session) are system artifacts now: they are never tiles in the run or stage galleries. Shared public files are attributed to the visit that first recorded them, so a run counts 3 stage artifacts, not one copy of each per later stage. - Audit & debug opens a dialog with vertical Input / Output / Memory / Session / Definition tabs, for a visit from the stage pane or the run Summary. - Run tabs are Summary / Graph / Timeline; Input and Output are Summary sections with Artifacts, Files changed and Audit. Each stage pane gains Files changed. - Artifacts gain a gallery/list switch (remembered) and full-name wrapping; the copy/share actions are hover-or-focus icon buttons. - Status badge above the run title; no live badges on the run surfaces. The runs list leads with the pipeline name and the stored task title beneath it. - Chat rows: title + coloured status word only, then directory, then model; no operator or closed chips, no dot. The more/star cluster is a hover/focus overlay so the title uses the row's width, and an open menu stacks above rows. Closed chats collapse behind a chevron. Sessions can be starred locally and sort in a Starred group. The chat header no longer repeats status/dir/model. - A visible rail divider separates Search from the destinations; the page has a real favicon/apple-touch icon and the rail brand wears it. - Smoke updated: no live badges, 3 detail tabs, field hits open Summary sections, closed chats expand for checks, the fixture viewer uses shot.png/missing.txt and the audit for markdown.
This commit is contained in:
+18
-21
@@ -81,10 +81,11 @@ test("RUN_DETAIL_TABS is the Android order, Summary first, Timeline keyed 'steps
|
||||
RUN_DETAIL_TABS.map((tab) => tab.label),
|
||||
["Summary", "Graph", "Input", "Output", "Timeline"],
|
||||
);
|
||||
// The Graph body (R5) now renders too, so every tab is present.
|
||||
// The browser keeps the three surfaces that are genuinely views; Input and
|
||||
// Output are run Summary sections now.
|
||||
assert.deepEqual(
|
||||
RENDERED_RUN_TABS.map((tab) => tab.label),
|
||||
["Summary", "Graph", "Input", "Output", "Timeline"],
|
||||
["Summary", "Graph", "Timeline"],
|
||||
);
|
||||
});
|
||||
|
||||
@@ -425,30 +426,27 @@ test("headline and evidence split the visit's facts without duplication", () =>
|
||||
assert.ok(!evidence.includes("Input") && !evidence.includes("Output"));
|
||||
});
|
||||
|
||||
test("stageSectionSpecs orders the run sections and puts the definition last", () => {
|
||||
const graph = {
|
||||
stages: [{ key: "implementer", type: "model", prompt: "do", output: "done", edges: { success: "reviewer" } }],
|
||||
};
|
||||
test("the stage pane shows the stage's artifacts and this visit's changes", () => {
|
||||
const graph = { stages: [{ key: "implementer", type: "model" }] };
|
||||
const step1 = step({
|
||||
stage: "implementer",
|
||||
input: { prompt: "do it" },
|
||||
output: { result: "done" },
|
||||
diagnostic: "why",
|
||||
file_changes: {
|
||||
status: "complete",
|
||||
files: [{ path: "a.go", kind: "modified", patch: "@@ -1 +1 @@\n-old\n+new\n" }],
|
||||
},
|
||||
});
|
||||
const specs = stageSectionSpecs("implementer", graph, [step1], 0, true);
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts", "output", "input", "run", "definition"]);
|
||||
assert.deepEqual(specs.map((spec) => spec.title), [
|
||||
"Artifacts · 0 recorded",
|
||||
"Output",
|
||||
"Input",
|
||||
"This run",
|
||||
"Stage definition",
|
||||
]);
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts", "changes"]);
|
||||
assert.equal(specs[0].title, "Artifacts · 0 recorded");
|
||||
assert.equal(specs[0].artifacts, true);
|
||||
assert.ok(specs.find((spec) => spec.key === "definition").fields.length > 0);
|
||||
assert.ok(specs[1].title.includes("1 file changed"), specs[1].title);
|
||||
assert.equal(specs[1].changes, true);
|
||||
});
|
||||
|
||||
test("a session export inserts the Session section after Artifacts", () => {
|
||||
test("the session export and definition stay out of the pane sections", () => {
|
||||
const graph = { stages: [{ key: "reviewer", type: "model" }] };
|
||||
const withSession = step({
|
||||
stage: "reviewer",
|
||||
@@ -456,15 +454,14 @@ test("a session export inserts the Session section after Artifacts", () => {
|
||||
artifacts: [{ name: "session.html", url: "/a" }],
|
||||
});
|
||||
const specs = stageSectionSpecs("reviewer", graph, [withSession], 0, true);
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts", "session", "definition"]);
|
||||
assert.equal(specs[1].session, true);
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts"]);
|
||||
assert.ok(!specs.some((spec) => spec.session || spec.key === "definition"));
|
||||
});
|
||||
|
||||
test("a visit with no results still lists the artifacts gallery and the definition", () => {
|
||||
test("a visit with no results still lists the artifacts section and no changes", () => {
|
||||
const graph = { stages: [{ key: "s", type: "model" }] };
|
||||
const specs = stageSectionSpecs("s", graph, [step({ stage: "s" })], 0, true);
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts", "definition"]);
|
||||
assert.ok(specs.every((spec) => spec.artifacts || spec.fields.length > 0));
|
||||
assert.deepEqual(specs.map((spec) => spec.key), ["artifacts"]);
|
||||
});
|
||||
|
||||
test("stageDefinitionFields labels outcomes with resolved terminals", () => {
|
||||
|
||||
Reference in New Issue
Block a user