fix(chat): remove unread-count badge from chat FAB (MUL-4374) (#5213)

The floating chat bubble's unread-count badge duplicated the chat tab's
unread indicator in the sidebar and visually overlapped it. Drop the badge;
the hover tooltip still communicates unread/running state.

Co-authored-by: J <j@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
Bohan Jiang
2026-07-10 17:15:25 +08:00
committed by GitHub
parent cb87dd106b
commit 69132f9fa6

View File

@@ -41,7 +41,8 @@ export function ChatFab() {
toggle();
};
// Tooltip text communicates the state that isn't carried by the icon/badge.
// Tooltip text carries the running/unread state on hover; the FAB itself no
// longer shows an unread-count badge (it duplicated the chat tab's, MUL-4374).
const tooltip = isRunning
? t(($) => $.fab.running)
: unreadSessionCount > 0
@@ -60,11 +61,6 @@ export function ChatFab() {
)}
>
<MessageCircle className="size-5" />
{unreadSessionCount > 0 && (
<span className="pointer-events-none absolute -top-0.5 -right-0.5 flex min-w-4 h-4 items-center justify-center rounded-full bg-brand px-1 text-xs font-semibold leading-none text-background">
{unreadSessionCount > 9 ? "9+" : unreadSessionCount}
</span>
)}
</TooltipTrigger>
<TooltipContent side="top" sideOffset={10}>{tooltip}</TooltipContent>
</Tooltip>