From 0240051a962344b6ef528ef7a41534e388f40b34 Mon Sep 17 00:00:00 2001 From: bkellam Date: Sun, 29 Sep 2024 15:32:37 -0700 Subject: [PATCH] nit: also show the total number of results in the 'Displaying ...' dialog --- src/app/search/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index eddd0057..005d15ed 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -155,8 +155,8 @@ export default function SearchPage() { { isLoading ? (

Loading...

- ) : fileMatches.length > 0 ? ( -

{`[${searchDurationMs} ms] Displaying ${numMatches} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}

+ ) : fileMatches.length > 0 && searchResponse ? ( +

{`[${searchDurationMs} ms] Displaying ${numMatches} of ${searchResponse.Result.MatchCount} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}

) : (

No results

)