mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-13 08:15:29 +00:00
feat(pending-messages): add topic suffix to group titles
Show topic/thread context in pending messages group titles for clarity.
This commit is contained in:
1 parent
99f4679876
commit
fbcff96a49
1 file changed
+9
-2
@@ -140,9 +140,16 @@ export function PendingMessagesPage() {
|
||||
onClick={() => setSelectedGroup(g)}
|
||||
>
|
||||
<td className="px-4 py-3 font-medium">{g.channel_name}</td>
|
||||
<td className="max-w-[200px] truncate px-4 py-3">
|
||||
<td className="max-w-[300px] truncate px-4 py-3">
|
||||
{g.group_title ? (
|
||||
<span className="font-medium">{g.group_title}</span>
|
||||
<span className="font-medium">
|
||||
{g.group_title}
|
||||
{g.history_key.includes(":topic:") && (
|
||||
<span className="ml-1.5 text-xs font-normal text-muted-foreground">
|
||||
> topic:{g.history_key.split(":topic:")[1]}
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
) : (
|
||||
<span className="font-mono text-xs text-muted-foreground">{g.history_key}</span>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user