feat(webui): simplify automation management and unify disclosure motion
Replace the dense automation workspace with a calm list and on-demand details, show current linked-chat titles, and remember manual system-task expansion preferences. Reuse disclosure transitions across expandable controls, preserve drafts and focus through closing, and release large diffs after their exit animation. Refs NAN-116
This commit is contained in:
1 parent
90b889394f
commit
1640784d45
37 files changed
+1746
-721
No files matched your search
@@ -840,12 +840,19 @@ describe("MessageBubble", () => {
|
||||
render(<MessageBubble message={message} />);
|
||||
const toggle = screen.getByRole("button", { name: /used 2 tools/i });
|
||||
|
||||
expect(screen.queryByText('weather("get")')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('search "hk weather"')).not.toBeInTheDocument();
|
||||
const content = document.getElementById(toggle.getAttribute("aria-controls")!)!;
|
||||
expect(content).toHaveAttribute("data-state", "closed");
|
||||
expect(content).toHaveAttribute("inert");
|
||||
expect(screen.queryByRole("list")).not.toBeInTheDocument();
|
||||
|
||||
fireEvent.click(toggle);
|
||||
expect(screen.getByText('weather("get")')).toBeInTheDocument();
|
||||
expect(screen.getByText('search "hk weather"')).toBeInTheDocument();
|
||||
expect(content).toHaveAttribute("data-state", "open");
|
||||
fireEvent.click(toggle);
|
||||
expect(content).toHaveAttribute("data-state", "closed");
|
||||
expect(content).toHaveAttribute("aria-hidden", "true");
|
||||
expect(screen.getByText('weather("get")')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders video media as an inline player", () => {
|
||||
|
||||
Reference in new issue
Block a user