Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(inbox): show Multica logo for system-actor notifications (#2479)
Bohan Jiange3e61c161cad
diff --git a/packages/core/types/inbox.ts b/packages/core/types/inbox.tsindex bb77a69328..0d1bc1d75e 100644--- a/packages/core/types/inbox.ts+++ b/packages/core/types/inbox.ts@@ -25,7 +25,7 @@ export interface InboxItem {workspace_id: string;recipient_type: "member" | "agent";recipient_id: string;- actor_type: "member" | "agent" | null;+ actor_type: "member" | "agent" | "system" | null;actor_id: string | null;type: InboxItemType;severity: InboxSeverity;diff --git a/packages/core/workspace/hooks.ts b/packages/core/workspace/hooks.tsindex ecfad97420..a01e003db0 100644--- a/packages/core/workspace/hooks.ts+++ b/packages/core/workspace/hooks.ts@@ -22,6 +22,7 @@ export function useActorName() {const getActorName = (type: string, id: string) => {if (type === "member") return getMemberName(id);if (type === "agent") return getAgentName(id);+ if (type === "system") return "Multica";return "System";};diff --git a/packages/ui/components/common/actor-avatar.tsx b/packages/ui/components/common/actor-avatar.tsxindex 1629dc1fca..e7de8a41e6 100644--- a/packages/ui/components/common/actor-avatar.tsx+++ b/packages/ui/components/common/actor-avatar.tsx@@ -3,12 +3,14 @@import { useState, useEffect } from "react";import { Bot } from "lucide-react";import { cn } from "@multica/ui/lib/utils";+import { MulticaIcon } from "./multica-icon";interface ActorAvatarProps {name: string;initials: string;avatarUrl?: string | null;isAgent?: boolean;+ isSystem?: boolean;size?: number;className?: string;}@@ -18,6 +20,7 @@ function ActorAvatar({initials,avatarUrl,isAgent,+ isSystem,size = 20,className,}: ActorAvatarProps) {@@ -46,6 +49,8 @@ function ActorAvatar({className="h-full w-full object-cover"onError={() => setImgError(true)}/>+ ) : isSystem ? (+ <MulticaIcon noSpin style={{ width: size * 0.55, height: size * 0.55 }} />) : isAgent ? (<Bot style={{ width: size * 0.55, height: size * 0.55 }} />) : (diff --git a/packages/views/common/actor-avatar.tsx b/packages/views/common/actor-avatar.tsxindex 72e51e1f40..026e9ae35f 100644--- a/packages/views/common/actor-avatar.tsx+++ b/packages/views/common/actor-avatar.tsx@@ -53,6 +53,7 @@ export function ActorAvatar({initials={getActorInitials(actorType, actorId)}avatarUrl={getActorAvatarUrl(actorType, actorId)}isAgent={actorType === "agent"}+ isSystem={actorType === "system"}size={size}className={className}/>