Skip to content

Commit ae01c72

Browse files
authored
feat: render task author in task detail (#102)
1 parent 6deb1c2 commit ae01c72

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/renderer/features/tasks/components/TaskDetail.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,23 @@ export function TaskDetail({ task: initialTask }: TaskDetailProps) {
277277
</DataList.Item>
278278
)}
279279

280+
<DataList.Item>
281+
<DataList.Label>Author</DataList.Label>
282+
<DataList.Value>
283+
{task.created_by ? (
284+
<Text size="2">
285+
{task.created_by.first_name && task.created_by.last_name
286+
? `${task.created_by.first_name} ${task.created_by.last_name}`
287+
: task.created_by.email}
288+
</Text>
289+
) : (
290+
<Text size="2" color="gray">
291+
Unknown
292+
</Text>
293+
)}
294+
</DataList.Value>
295+
</DataList.Item>
296+
280297
<DataList.Item>
281298
<DataList.Label>Repository</DataList.Label>
282299
<DataList.Value>

0 commit comments

Comments
 (0)