From 4eeba5a81e4b34ae910f104f3dd0c34c7f5156db Mon Sep 17 00:00:00 2001 From: Markov Date: Fri, 27 Feb 2026 08:33:43 +0100 Subject: [PATCH] System messages show actor name, mentions as objects --- src/components/ChatPanel.tsx | 6 +++++- src/lib/api.ts | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/ChatPanel.tsx b/src/components/ChatPanel.tsx index 0fcd093..4acc1c2 100644 --- a/src/components/ChatPanel.tsx +++ b/src/components/ChatPanel.tsx @@ -279,7 +279,11 @@ export default function ChatPanel({ chatId, projectSlug }: Props) {
{AUTHOR_ICON[msg.author_type] || "πŸ‘€"} - {msg.author_type === "system" ? "System" : (msg.author?.name || msg.author?.slug || "Unknown")} + + {msg.author_type === "system" + ? (msg.actor ? `БистСма (${msg.actor.name})` : "БистСма") + : (msg.author?.name || msg.author?.slug || "Unknown")} + Β· {new Date(msg.created_at).toLocaleString("ru-RU", { hour: "2-digit", minute: "2-digit" })}
diff --git a/src/lib/api.ts b/src/lib/api.ts index c225e73..e27647a 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -147,7 +147,8 @@ export interface Message { author: MemberBrief | null; content: string; thinking: string | null; - mentions: string[]; + mentions: MemberBrief[]; + actor: MemberBrief | null; voice_url: string | null; attachments: Attachment[]; created_at: string;