mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
Clarify sub-issue progress summary threshold
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
a51a30398d
commit
a5f82c77c3
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user