fix(subscribers): remove all reason labels from subscriber popover

Clean list — just checkbox, avatar, and name. No Creator/Assignee labels.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing 2026-03-28 21:14:58 +08:00
parent 89c617b39e
commit c2e8071c64

View file

@ -720,9 +720,7 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {
<Checkbox checked={isSubbed} className="pointer-events-none" />
<ActorAvatar actorType="member" actorId={m.user_id} size={22} />
<span className="truncate flex-1">{m.name}</span>
{sub?.reason && (sub.reason === "creator" || sub.reason === "assignee") && (
<span className="text-xs text-muted-foreground capitalize">{sub.reason}</span>
)}
</CommandItem>
);
})}
@ -742,9 +740,7 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {
<Checkbox checked={isSubbed} className="pointer-events-none" />
<ActorAvatar actorType="agent" actorId={a.id} size={22} />
<span className="truncate flex-1">{a.name}</span>
{sub?.reason && (sub.reason === "creator" || sub.reason === "assignee") && (
<span className="text-xs text-muted-foreground capitalize">{sub.reason}</span>
)}
</CommandItem>
);
})}