Map thread panel into title bar and sidebar

- Add thread-panel presentation logic for inline vs popover layouts
- Move thread details controls into the chat header/sidebar flow
- Add shared wait-for-atom helper and workspace display name parsing

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-08-15 16:49:46 +02:00
1 parent 4d64e80184
commit c8aea5db0b
40 files changed
+1926 -869

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { describe, expect, it } from "vite-plus/test";
import { resolveThreadPanelPresentation } from "./rightPanelLayout";
describe("resolveThreadPanelPresentation", () => {
it("uses the stable workspace width minus the real right panel width", () => {
expect(resolveThreadPanelPresentation(null, 0, false)).toBe("inline");
expect(resolveThreadPanelPresentation(960, 0, false)).toBe("inline");
expect(resolveThreadPanelPresentation(959, 0, false)).toBe("popover");
expect(resolveThreadPanelPresentation(1_400, 0, false)).toBe("inline");
expect(resolveThreadPanelPresentation(1_400, 540, false)).toBe("popover");
expect(resolveThreadPanelPresentation(1_500, 540, false)).toBe("inline");
});
it("uses a popover while the real right panel is maximized", () => {
expect(resolveThreadPanelPresentation(2_000, 0, true)).toBe("popover");
});
});