Clarify sub-issue progress summary threshold

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-27 08:24:13 -05:00
1 parent a51a30398d
commit a5f82c77c3
1 file changed
+3 -1
+3 -1
View File
@@ -21,8 +21,10 @@ export function shouldRenderRichSubIssuesSection(childIssuesLoading: boolean, ch
return childIssuesLoading || childIssueCount > 0;
}
const MIN_CHILD_ISSUES_FOR_PROGRESS_SUMMARY = 2;
export function shouldRenderSubIssueProgressSummary(enabled: boolean | undefined, childIssueCount: number): boolean {
return enabled === true && childIssueCount > 1;
return enabled === true && childIssueCount >= MIN_CHILD_ISSUES_FOR_PROGRESS_SUMMARY;
}
export function buildSubIssueProgressSummary(issues: Issue[]): SubIssueProgressSummary {