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
@@ -710,7 +710,7 @@ describe("remote instance UX", () => {
|
||||
const switcher = await screen.findByRole("button", { name: "Switch host" });
|
||||
expect(screen.queryByRole("button", { name: "Remote connections" })).not.toBeInTheDocument();
|
||||
expect(switcher).toHaveClass("w-8", "h-8");
|
||||
expect(switcher).toHaveAttribute("title", expect.stringContaining("Xubin-Mac"));
|
||||
expect(within(switcher).getByRole("status")).toHaveTextContent("Xubin-Mac");
|
||||
await openDirectory();
|
||||
});
|
||||
|
||||
@@ -801,7 +801,7 @@ describe("remote instance UX", () => {
|
||||
expect(frame).toHaveAttribute("src", connection.url);
|
||||
expect(frame).toHaveAttribute("sandbox", expect.not.stringContaining("allow-top-navigation"));
|
||||
expect(document.querySelector('[data-host-view="local"]')).toHaveAttribute("inert");
|
||||
expect(screen.getByRole("button", { name: "Switch host" })).toHaveAttribute("title", expect.stringContaining("Team server · team-host"));
|
||||
expect(within(screen.getByRole("button", { name: "Switch host" })).getByRole("status")).toHaveTextContent("Team server · team-host");
|
||||
expect(mocks.request).toHaveBeenCalledWith("remote.connect", { id: profile.id }, 65_000);
|
||||
expect(window.sessionStorage.getItem("nanobot.remote-instance")).not.toContain("secret");
|
||||
expect(readRecentRemotes()).toEqual([profile.id]);
|
||||
@@ -1200,7 +1200,7 @@ describe("remote instance UX", () => {
|
||||
view();
|
||||
const identity = await screen.findByRole("button", { name: "Switch host" });
|
||||
expect(identity).toHaveTextContent("Local");
|
||||
expect(identity).toHaveAttribute("title", expect.stringContaining("Xubin-Mac"));
|
||||
expect(within(identity).getByRole("status")).toHaveTextContent("Xubin-Mac");
|
||||
expect(screen.getByRole("navigation", { name: "Sidebar navigation" })).toContainElement(identity);
|
||||
expect(document.querySelector("header")).toBeNull();
|
||||
fireEvent.pointerDown(identity, { button: 0, ctrlKey: false });
|
||||
|
||||
Reference in new issue
Block a user