mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
feat: Format row counts in search page (#1352)
This commit is contained in:
parent
b90a0649b8
commit
64b5673089
3 changed files with 7 additions and 2 deletions
5
.changeset/thick-readers-sleep.md
Normal file
5
.changeset/thick-readers-sleep.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
feat: Format row counts (result counter and scanned row estimate) in search page
|
||||
|
|
@ -182,7 +182,7 @@ function SearchNumRows({
|
|||
? 'Scanned Rows ...'
|
||||
: error || !numRows
|
||||
? ''
|
||||
: `Scanned Rows: ${numRows}`}
|
||||
: `Scanned Rows: ${Number.parseInt(numRows)?.toLocaleString()}`}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export default function SearchTotalCountChart({
|
|||
{isLoading ? (
|
||||
<span className="effect-pulse">··· Results</span>
|
||||
) : totalCount !== null && !isError ? (
|
||||
`${totalCount} Results`
|
||||
`${totalCount?.toLocaleString()} Results`
|
||||
) : (
|
||||
'0 Results'
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue