diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsx index f62d3264..49f30139 100644 --- a/ui/src/pages/IssueDetail.tsx +++ b/ui/src/pages/IssueDetail.tsx @@ -1487,6 +1487,50 @@ export function IssueDetail() { missingBehavior="placeholder" /> + {childIssues.length > 0 && ( +
+
+

Sub-issues

+ +
+
+ {childIssues.map((child) => ( + + rememberIssueDetailLocationState( + child.identifier ?? child.id, + resolvedIssueDetailState ?? location.state, + location.search, + )} + className="flex items-center justify-between px-3 py-2 text-sm hover:bg-accent/20 transition-colors" + > +
+ + + + {child.identifier ?? child.id.slice(0, 8)} + + {child.title} +
+ {child.assigneeAgentId && (() => { + const name = agentMap.get(child.assigneeAgentId)?.name; + return name + ? + : {child.assigneeAgentId.slice(0, 8)}; + })()} + + ))} +
+
+ )} + + {!hasAttachments && attachmentUploadButton} + {childIssues.length === 0 && ( + + )} + + } /> {hasAttachments ? ( @@ -1662,10 +1717,6 @@ export function IssueDetail() { Comments - - - Sub-issues - Activity @@ -1738,49 +1789,6 @@ export function IssueDetail() { /> - -
- -
- {childIssues.length === 0 ? ( -

No sub-issues.

- ) : ( -
- {childIssues.map((child) => ( - - rememberIssueDetailLocationState( - child.identifier ?? child.id, - resolvedIssueDetailState ?? location.state, - location.search, - )} - className="flex items-center justify-between px-3 py-2 text-sm hover:bg-accent/20 transition-colors" - > -
- - - - {child.identifier ?? child.id.slice(0, 8)} - - {child.title} -
- {child.assigneeAgentId && (() => { - const name = agentMap.get(child.assigneeAgentId)?.name; - return name - ? - : {child.assigneeAgentId.slice(0, 8)}; - })()} - - ))} -
- )} -
- {linkedApprovals && linkedApprovals.length > 0 && (