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:
chengyongru authored and GitHub committed 2026-10-06 00:46:38 +08:00
1 parent 9dc0abae4f
commit 63bdd40280
59 files changed
+615 -505

No files matched your search

+2 -2
View File
@@ -1450,7 +1450,7 @@ describe("ThreadShell", () => {
expect(screen.queryByText(/This response used a fallback model/)).not.toBeInTheDocument();
});
it.each([false, true])("hides unconfigured model details in setup tooltips (existing history: %s)", async (hasHistory) => {
it.each([false, true])("keeps model setup actionable without a repeated tooltip (existing history: %s)", async (hasHistory) => {
const client = makeClient();
const settings = modelSettings("anthropic/claude-opus-4-5", "anthropic");
settings.agent.has_api_key = false;
@@ -1479,7 +1479,7 @@ describe("ThreadShell", () => {
await screen.findByText(hasHistory ? "Previous message" : HERO_GREETING_PATTERN);
const badge = screen.getByRole("button", { name: "Choose your AI" });
fireEvent.focus(badge);
expect(await screen.findByRole("tooltip")).toHaveTextContent(/^Choose your AI$/);
expect(screen.queryByRole("tooltip")).not.toBeInTheDocument();
fireEvent.click(badge);
expect(onOpenModelSettings).toHaveBeenCalledTimes(1);
expect(client.sendMessage).not.toHaveBeenCalled();