feat: Format row counts in search page (#1352)

This commit is contained in:
Mike Shi 2025-11-11 20:21:49 -05:00 committed by GitHub
parent b90a0649b8
commit 64b5673089
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
feat: Format row counts (result counter and scanned row estimate) in search page

View file

@ -182,7 +182,7 @@ function SearchNumRows({
? 'Scanned Rows ...'
: error || !numRows
? ''
: `Scanned Rows: ${numRows}`}
: `Scanned Rows: ${Number.parseInt(numRows)?.toLocaleString()}`}
</Text>
);
}

View file

@ -63,7 +63,7 @@ export default function SearchTotalCountChart({
{isLoading ? (
<span className="effect-pulse">&middot;&middot;&middot; Results</span>
) : totalCount !== null && !isError ? (
`${totalCount} Results`
`${totalCount?.toLocaleString()} Results`
) : (
'0 Results'
)}