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

@@ -1,17 +1,19 @@
import {
ModelsIcon,
WebSearchIcon,
ImageGenerationIcon,
VoiceIcon,
} from "@/components/icons/product-icons";
import { useState, type Dispatch, type SetStateAction } from "react";
import {
ArrowUpCircle,
Bot,
BookOpen,
MessageCircle,
Check,
ChevronRight,
ExternalLink,
Globe2,
Github,
ImageIcon,
Loader2,
Mic,
type LucideIcon,
} from "lucide-react";
import { useTranslation } from "react-i18next";
@@ -90,7 +92,7 @@ export function OverviewSettings({
<SettingsSectionTitle>{tx("settings.sections.ai", "AI")}</SettingsSectionTitle>
<SettingsGroup>
<OverviewListRow
icon={Bot}
icon={ModelsIcon}
valueLogoProvider={activeProvider}
title={tx("settings.overview.model", "Current model")}
value={activeModelValue}
@@ -105,7 +107,7 @@ export function OverviewSettings({
<SettingsSectionTitle>{tx("settings.sections.capabilities", "Capabilities")}</SettingsSectionTitle>
<SettingsGroup>
<OverviewListRow
icon={Globe2}
icon={WebSearchIcon}
valueLogoProvider={settings.web_search.provider}
title={tx("settings.overview.webSearch", "Web search")}
value={webStatus}
@@ -113,7 +115,7 @@ export function OverviewSettings({
onClick={() => onSelectSection("browser")}
/>
<OverviewListRow
icon={ImageIcon}
icon={ImageGenerationIcon}
valueLogoProvider={settings.image_generation.provider}
title={tx("settings.overview.imageGeneration", "Image generation")}
value={imageStatus}
@@ -121,7 +123,7 @@ export function OverviewSettings({
onClick={() => onSelectSection("image")}
/>
<OverviewListRow
icon={Mic}
icon={VoiceIcon}
valueLogoProvider={transcription.provider}
title={tx("settings.overview.voiceInput", "Voice input")}
value={voiceStatus}
@@ -413,7 +415,7 @@ function OverviewRowIcon({
icon: LucideIcon;
}) {
return (
<span className="grid h-9 w-9 shrink-0 place-items-center rounded-control bg-muted text-foreground/82 transition-colors group-hover:bg-muted/80 dark:bg-muted/70">
<span className="grid h-9 w-9 shrink-0 place-items-center rounded-control bg-muted text-foreground/82 transition-colors dark:bg-muted/70">
<Icon className="h-4 w-4" aria-hidden />
</span>
);