diff --git a/.changeset/thick-readers-sleep.md b/.changeset/thick-readers-sleep.md new file mode 100644 index 000000000..92af980ce --- /dev/null +++ b/.changeset/thick-readers-sleep.md @@ -0,0 +1,5 @@ +--- +"@hyperdx/app": patch +--- + +feat: Format row counts (result counter and scanned row estimate) in search page diff --git a/packages/app/src/DBSearchPage.tsx b/packages/app/src/DBSearchPage.tsx index 10142ec80..d45052cf4 100644 --- a/packages/app/src/DBSearchPage.tsx +++ b/packages/app/src/DBSearchPage.tsx @@ -182,7 +182,7 @@ function SearchNumRows({ ? 'Scanned Rows ...' : error || !numRows ? '' - : `Scanned Rows: ${numRows}`} + : `Scanned Rows: ${Number.parseInt(numRows)?.toLocaleString()}`} ); } diff --git a/packages/app/src/components/SearchTotalCountChart.tsx b/packages/app/src/components/SearchTotalCountChart.tsx index e1a02d4bd..52166cc22 100644 --- a/packages/app/src/components/SearchTotalCountChart.tsx +++ b/packages/app/src/components/SearchTotalCountChart.tsx @@ -63,7 +63,7 @@ export default function SearchTotalCountChart({ {isLoading ? ( ··· Results ) : totalCount !== null && !isError ? ( - `${totalCount} Results` + `${totalCount?.toLocaleString()} Results` ) : ( '0 Results' )}