feat(webui): stabilize session transitions and goal presentation

Keep the composer stable during interruptible session changes. Move active and blocked goals into the header with localized gallery previews, and preserve focus when overlays close. Include the reviewed navigation, layout and accessibility fixes.
This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-13 23:37:07 +08:00
1 parent e65bec9a6e
commit ce3f36983d
58 files changed
+1874 -453

No files matched your search

-22
View File
@@ -33,27 +33,5 @@ for (const theme of ["light", "dark"]) {
await expect(input).toHaveValue("Keep the work in focus.");
});
test("composer focus preserves the active goal's blue ring", async ({ page }) => {
await page.emulateMedia({ reducedMotion: "reduce" });
await page.goto("/browser/fixture.html?case=composer-action&goal");
const surface = page.locator(".thread-composer-surface");
await expect(surface).toBeVisible();
const ring = await surface.evaluate(element => {
const probe = document.createElement("span");
probe.style.color = getComputedStyle(element).getPropertyValue("--tw-ring-color");
document.body.append(probe);
const color = getComputedStyle(probe).color;
probe.remove();
return color;
});
const input = page.getByRole("textbox", { name: "Message input" });
await input.blur();
const rest = await surface.evaluate(element => getComputedStyle(element).boxShadow);
expect(rest).toContain(ring);
await input.focus();
const focused = await surface.evaluate(element => getComputedStyle(element).boxShadow);
expect(focused).toContain(ring);
expect(focused).toBe(rest);
});
});
}