From aa770f23339fc660815230ce71e0a7e6a7e64f03 Mon Sep 17 00:00:00 2001 From: Bohan Jiang <52446949+Bohan-J@users.noreply.github.com> Date: Wed, 8 Apr 2026 18:51:03 +0800 Subject: [PATCH] feat(issues): show "Add sub-issues" button when no sub-issues exist (#511) Previously the sub-issues section only rendered when child issues were present. This adds a Linear-style "+ Add sub-issues" button below the description area so users can create sub-issues from an empty state. --- .../features/issues/components/issue-detail.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/web/features/issues/components/issue-detail.tsx b/apps/web/features/issues/components/issue-detail.tsx index dc851de5..2703dc5a 100644 --- a/apps/web/features/issues/components/issue-detail.tsx +++ b/apps/web/features/issues/components/issue-detail.tsx @@ -780,6 +780,23 @@ export function IssueDetail({ issueId, onDelete, defaultSidebarOpen = true, layo {/* Sub-issues — Linear-style */} + {childIssues.length === 0 && ( +
+ +
+ )} {childIssues.length > 0 && (() => { const doneCount = childIssues.filter((c) => c.status === "done").length; return (