From 461f0bd64d0c8698325e8bc0c006d586d88dfcde Mon Sep 17 00:00:00 2001 From: Mike Shi Date: Tue, 11 Nov 2025 20:16:40 -0500 Subject: [PATCH] feat: Format row counts in search page --- .changeset/thick-readers-sleep.md | 5 +++++ packages/app/src/DBSearchPage.tsx | 2 +- packages/app/src/components/SearchTotalCountChart.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/thick-readers-sleep.md 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' )}