Skip to content

Commit 64b5673

Browse files
authored
feat: Format row counts in search page (#1352)
1 parent b90a064 commit 64b5673

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/thick-readers-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperdx/app": patch
3+
---
4+
5+
feat: Format row counts (result counter and scanned row estimate) in search page

packages/app/src/DBSearchPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function SearchNumRows({
182182
? 'Scanned Rows ...'
183183
: error || !numRows
184184
? ''
185-
: `Scanned Rows: ${numRows}`}
185+
: `Scanned Rows: ${Number.parseInt(numRows)?.toLocaleString()}`}
186186
</Text>
187187
);
188188
}

packages/app/src/components/SearchTotalCountChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function SearchTotalCountChart({
6363
{isLoading ? (
6464
<span className="effect-pulse">&middot;&middot;&middot; Results</span>
6565
) : totalCount !== null && !isError ? (
66-
`${totalCount} Results`
66+
`${totalCount?.toLocaleString()} Results`
6767
) : (
6868
'0 Results'
6969
)}

0 commit comments

Comments
 (0)