fix(web): move chat metrics into top-bar information panel

This commit is contained in:
2026-10-21 11:01:22 +01:00
parent de987555e9
commit b9ace1db62
9 changed files with 187 additions and 21 deletions
+14
View File
@@ -221,6 +221,20 @@ function panelWith(document_, ...controls) {
return panel;
}
test("modal lifecycle cleanup runs once for direct close, closeAll and render-managed disappearance", () => {
const {document_,controller}=harness();
const closed=[];
controller.open("info",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("info")});
assert.equal(controller.close("info"),true);
assert.equal(controller.close("info"),false);
controller.open("again",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("again")});
controller.closeAll();
controller.stage("rendered",panelWith(document_,button(document_,"Close")),{history:false,onClosed:()=>closed.push("rendered")});
controller.reconcile();controller.reconcile();
assert.deepEqual(closed,["info","again","rendered"]);
assert.deepEqual(controller.stackIds(),[]);
});
test("focusable discovery keeps DOM order and excludes every unreachable form", () => {
const document_ = new FakeDocument();
const panel = new FakeElement("div", document_);