From 819d553dd06c17fb151b5bb41f7537eea93946c6 Mon Sep 17 00:00:00 2001 From: Paul Holstein <44263169+holstein13@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:47:17 -0500 Subject: [PATCH] =?UTF-8?q?fix(report):=20avoid=20=C3=B7=200=20phrasing=20?= =?UTF-8?q?when=20no=20commits=20or=20lines=20changed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show "no commits" / "no lines changed" instead of "total cost รท 0" when commitCount or linesChanged is zero. Co-Authored-By: Claude Opus 4.6 --- .../components/report/sections/CostSection.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/report/sections/CostSection.tsx b/src/renderer/components/report/sections/CostSection.tsx index 1a5408ba..c1fdd2e0 100644 --- a/src/renderer/components/report/sections/CostSection.tsx +++ b/src/renderer/components/report/sections/CostSection.tsx @@ -139,7 +139,13 @@ export const CostSection = ({
Per Commit
- total cost {'\u00F7'} {commitCount} commit{commitCount !== 1 ? 's' : ''} + {commitCount > 0 ? ( + <> + total cost {'\u00F7'} {commitCount} commit{commitCount !== 1 ? 's' : ''} + + ) : ( + 'no commits' + )}
@@ -156,8 +162,14 @@ export const CostSection = ({
Per Line Changed
- total cost {'\u00F7'} {linesChanged.toLocaleString()} line - {linesChanged !== 1 ? 's' : ''} + {linesChanged > 0 ? ( + <> + total cost {'\u00F7'} {linesChanged.toLocaleString()} line + {linesChanged !== 1 ? 's' : ''} + + ) : ( + 'no lines changed' + )}