diff --git a/apps/mark/src/lib/features/branches/BranchCard.svelte b/apps/mark/src/lib/features/branches/BranchCard.svelte index b6a3b766..1077d7cd 100644 --- a/apps/mark/src/lib/features/branches/BranchCard.svelte +++ b/apps/mark/src/lib/features/branches/BranchCard.svelte @@ -309,6 +309,7 @@ scope: 'branch' | 'commit'; comments: number; annotations: number; + warnings: number; }; let timelineReviewDetailsById = $state>({}); let reviewDetailsLoadVersion = 0; @@ -864,11 +865,15 @@ let comments = 0; let annotations = 0; + let warnings = 0; for (const comment of fullReview.comments) { if (comment.commentType === 'information') { annotations += 1; } else { comments += 1; + if (comment.commentType === 'warning') { + warnings += 1; + } } } @@ -877,6 +882,7 @@ scope: fullReview.scope, comments, annotations, + warnings, }; return { id: review.id, details }; } catch (e) { diff --git a/apps/mark/src/lib/features/diff/DiffCommentsSection.svelte b/apps/mark/src/lib/features/diff/DiffCommentsSection.svelte index 1e7d1032..e5810171 100644 --- a/apps/mark/src/lib/features/diff/DiffCommentsSection.svelte +++ b/apps/mark/src/lib/features/diff/DiffCommentsSection.svelte @@ -1,5 +1,5 @@