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

+8 -6
View File
@@ -1,4 +1,7 @@
import { Menu, MessageCircleDashed, Moon, Sun } from "lucide-react";
import {
TemporaryChatIcon,
} from "@/components/icons/product-icons";
import { Menu, Moon, Sun } from "lucide-react";
import { type ReactNode } from "react";
import { useTranslation } from "react-i18next";
@@ -84,7 +87,7 @@ export function ThreadHeader({
aria-label={t("thread.header.toggleSidebar")}
onClick={onToggleSidebar}
className={cn(
"h-7 w-7 rounded-md text-muted-foreground hover:bg-accent/35 hover:text-foreground",
"h-7 w-7 rounded-xl text-muted-foreground hover:text-foreground",
hideSidebarToggleForHostChrome && "lg:hidden",
)}
>
@@ -124,11 +127,10 @@ export function ThreadHeader({
aria-pressed={temporaryChatEnabled}
onClick={() => onTemporaryChatEnabledChange(!temporaryChatEnabled)}
className={cn(
"host-no-drag h-8 w-8 shrink-0 rounded-full bg-transparent text-muted-foreground shadow-none transition-none hover:text-foreground",
temporaryChatEnabled ? "hover:bg-transparent" : "hover:bg-accent/45",
"host-no-drag h-8 w-8 shrink-0 rounded-xl text-muted-foreground hover:text-foreground",
)}
>
<MessageCircleDashed
<TemporaryChatIcon
data-testid="temporary-chat-icon"
className={cn(
"h-4 w-4 motion-safe:transition-colors",
@@ -189,7 +191,7 @@ function ThemeButton({
aria-label={label}
onClick={onToggleTheme}
className={cn(
"host-no-drag h-8 w-8 rounded-full text-muted-foreground/85 hover:bg-accent/40 hover:text-foreground",
"host-no-drag h-8 w-8 rounded-xl text-muted-foreground/85 hover:text-foreground",
className,
)}
>