feat(ai): add resizable maximized chat panel

This commit is contained in:
Xinbeok authored and GitHub committed 2026-08-23 18:29:35 +08:00
1 parent add44cf39e
commit 2927e01591
14 files changed
+182 -11

No files matched your search

@@ -49,4 +49,13 @@ describe("right sidebar panel entry points", () => {
}
expect(appSource).not.toMatch(/watch\([\s\S]{0,180}toolbarItems\.(ai|history|sqlLibrary|sqlFileTree)[\s\S]{0,180}closeRightSidebarPanel/);
});
it("keeps the maximized AI surface in the parent layout", () => {
expect(appSource).toContain("const isAiPanelMaximized = ref(false);");
expect(appSource).toContain(':maximized="isAiPanelMaximized"');
expect(appSource).toContain('@toggle-maximize="toggleAiPanelMaximized"');
expect(appSource).toContain("isAiPanelMaximized ? 'min-w-0 flex-1' : 'min-w-[180px] max-w-full'");
expect(appSource).toContain('v-show="!isAiPanelMaximized"');
expect(functionSource("setRightSidebarPanelOpen", "toggleRightSidebarPanel")).toContain("isAiPanelMaximized.value = false;");
});
});