From 8dd738d3fb9febea464edfea2486d2add0bcfda9 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Wed, 8 Apr 2026 17:30:25 +0800 Subject: [PATCH] feat(issues): add "Add sub-issues" button when no sub-issues exist Show a Linear-style "+ Add sub-issues" button below the description when an issue has no child issues, making sub-issue creation discoverable without needing the dropdown menu. --- .../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 dc851de52e..056a27f9a1 100644 --- a/apps/web/features/issues/components/issue-detail.tsx +++ b/apps/web/features/issues/components/issue-detail.tsx @@ -878,6 +878,23 @@ export function IssueDetail({ issueId, onDelete, defaultSidebarOpen = true, layo ); })()} + {/* Add sub-issues button — shown when no sub-issues exist */} + {childIssues.length === 0 && ( + + )} +
{/* Activity / Comments */}