Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(issues): show "Add sub-issues" button when no sub-issues exist (#511)
Bohan Jiangaa770f23339f
diff --git a/apps/web/features/issues/components/issue-detail.tsx b/apps/web/features/issues/components/issue-detail.tsxindex dc851de52e..2703dc5ab5 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</div>{/* Sub-issues — Linear-style */}+ {childIssues.length === 0 && (+ <div className="mt-6">+ <button+ type="button"+ className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors"+ onClick={() =>+ useModalStore.getState().open("create-issue", {+ parent_issue_id: issue.id,+ parent_issue_identifier: issue.identifier,+ })+ }+ >+ <Plus className="h-3.5 w-3.5" />+ <span>Add sub-issues</span>+ </button>+ </div>+ )}{childIssues.length > 0 && (() => {const doneCount = childIssues.filter((c) => c.status === "done").length;return (