Merge pull request #145 from cschneid/show-issue-creator
Show issue creator in properties sidebar
This commit is contained in:
@@ -587,6 +587,23 @@ export function IssueProperties({ issue, onUpdate, inline }: IssuePropertiesProp
|
|||||||
<Separator />
|
<Separator />
|
||||||
|
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
|
{(issue.createdByAgentId || issue.createdByUserId) && (
|
||||||
|
<PropertyRow label="Created by">
|
||||||
|
{issue.createdByAgentId ? (
|
||||||
|
<Link
|
||||||
|
to={`/agents/${issue.createdByAgentId}`}
|
||||||
|
className="hover:underline"
|
||||||
|
>
|
||||||
|
<Identity name={agentName(issue.createdByAgentId) ?? issue.createdByAgentId.slice(0, 8)} size="sm" />
|
||||||
|
</Link>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<User className="h-3.5 w-3.5 text-muted-foreground" />
|
||||||
|
<span className="text-sm">{creatorUserLabel ?? "User"}</span>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</PropertyRow>
|
||||||
|
)}
|
||||||
{issue.startedAt && (
|
{issue.startedAt && (
|
||||||
<PropertyRow label="Started">
|
<PropertyRow label="Started">
|
||||||
<span className="text-sm">{formatDate(issue.startedAt)}</span>
|
<span className="text-sm">{formatDate(issue.startedAt)}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user