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
@@ -4,12 +4,18 @@ import { expect, it } from "vitest";
|
||||
|
||||
import { ReasoningRow } from "@/components/thread/activity/ReasoningRow";
|
||||
|
||||
it("shows the reasoning preview in the shared tooltip on hover and keyboard focus", async () => {
|
||||
it("shows clipped reasoning in the shared tooltip on hover and keyboard focus", async () => {
|
||||
const user = userEvent.setup();
|
||||
const text = 'The user is saying "hi" again. I should respond in Chinese, concisely and in a friendly manner.';
|
||||
const { container } = render(<ReasoningRow text={text} streaming={false} />);
|
||||
const line = screen.getByTestId("activity-line");
|
||||
|
||||
const clippedLabel = line.querySelector(".truncate") as HTMLElement;
|
||||
Object.defineProperties(clippedLabel, {
|
||||
clientWidth: { value: 100 },
|
||||
scrollWidth: { value: 200 },
|
||||
});
|
||||
|
||||
expect(container.querySelector("[title]")).toBeNull();
|
||||
await user.hover(line);
|
||||
expect(await screen.findByRole("tooltip")).toHaveTextContent(text);
|
||||
|
||||
Reference in new issue
Block a user