feat(webui): refine composer action feedback (#6419)

* feat(webui): refine composer action feedback

* fix(webui): preserve composer hit targets and ring previews
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-24 02:50:47 +08:00
1 parent 03e9b5430b
commit 6d4add200b
20 files changed
+351 -48

No files matched your search

+2 -18
View File
@@ -49,6 +49,7 @@ import {
import { MAX_WORKBENCH_PANES } from "@/components/workbench/workbench-model";
import { SidebarTopicRename } from "@/components/SidebarTopicRename";
import { SkeletonStatus } from "@/components/settings/shared/SkeletonStatus";
import { LoadingRing } from "@/components/ui/loading-ring";
import {
SIDEBAR_SELECTION_ITEM_CLASS,
SidebarSelectionHighlight,
@@ -1880,12 +1881,6 @@ function ChatsFoldFooter({
);
}
function synchronizeRunningRing(element: SVGCircleElement | null) {
if (!element) return;
// Align pending animations before their first frame, not only after animationstart.
for (const animation of element.getAnimations()) animation.startTime = 0;
}
function SessionActivityIndicator({
state,
}: {
@@ -1919,18 +1914,7 @@ function SessionActivityIndicator({
aria-label={label}
className="grid h-4 w-4 shrink-0 place-items-center"
>
<svg
className="h-3 w-3 text-sidebar-muted-foreground"
viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" aria-hidden="true"
>
<circle cx="12" cy="12" r="10" opacity="0.2" />
<circle
cx="12" cy="12" r="10" strokeDasharray="16 46.8" strokeLinecap="round"
className="sidebar-running-ring"
ref={synchronizeRunningRing}
onAnimationStart={(event) => synchronizeRunningRing(event.currentTarget)}
/>
</svg>
<LoadingRing className="h-3 w-3 text-sidebar-muted-foreground" />
</span>
</HoverHint>
);