feat(webui): unify icons and refine interaction feedback (#6074)
* feat(webui): unify product icons and refine interaction feedback * test(webui): align layout and tooltip expectations with icon refresh * test(webui): verify temporary chat uses shared icon controls * fix(webui): toggle workspace access directly and restore send arrow * fix(webui): keep the send control circular * fix(webui): clear workspace toggle background on pointer leave * test(webui): isolate GitHub navigation in star prompt tests * test(webui): prevent external default navigation during star link clicks
This commit is contained in:
1 parent
9dc0abae4f
commit
63bdd40280
59 files changed
+615
-505
No files matched your search
@@ -840,7 +840,7 @@ describe("App layout", () => {
|
||||
const newTopicButton = within(sidebar).getByRole("button", { name: "New topic" });
|
||||
|
||||
expect(newTopicButton).toHaveAttribute("aria-current", "page");
|
||||
expect(newTopicButton).toHaveClass("transition-[width,padding,color]");
|
||||
expect(newTopicButton).toHaveClass("transition-[width,padding,color,background-color]");
|
||||
expect(newTopicButton).toBeEnabled();
|
||||
});
|
||||
|
||||
@@ -986,11 +986,11 @@ describe("App layout", () => {
|
||||
|
||||
fireEvent.click(within(sidebar).getByRole("button", { name: "New topic" }));
|
||||
const temporaryToggle = screen.getByRole("button", { name: "Temporary chat" });
|
||||
expect(temporaryToggle).toHaveClass("h-8", "w-8", "rounded-full");
|
||||
expect(temporaryToggle).toHaveClass("h-8", "w-8", "rounded-xl");
|
||||
expect(within(temporaryToggle).queryByText("Temporary chat")).not.toBeInTheDocument();
|
||||
fireEvent.click(temporaryToggle);
|
||||
expect(temporaryToggle).toHaveAttribute("aria-pressed", "true");
|
||||
expect(temporaryToggle).toHaveClass("bg-transparent", "shadow-none", "hover:bg-transparent");
|
||||
expect(temporaryToggle).toHaveClass("icon-action");
|
||||
expect(within(temporaryToggle).getByTestId("temporary-chat-icon")).toHaveClass(
|
||||
"motion-safe:duration-150",
|
||||
"text-[var(--temporary-control-active)]",
|
||||
@@ -2977,7 +2977,7 @@ describe("App layout", () => {
|
||||
|
||||
expect(overviewButton).toHaveAttribute("aria-current", "page");
|
||||
expect(overviewButton).not.toHaveClass("bg-sidebar-accent");
|
||||
expect(overviewButton).toHaveClass("transition-[color]");
|
||||
expect(overviewButton).toHaveClass("transition-[color,background-color]");
|
||||
expect(settingsHighlight).toHaveAttribute("data-active-id", "overview");
|
||||
|
||||
fireEvent.click(modelsButton);
|
||||
|
||||
Reference in new issue
Block a user