feat: enhance email search results display with pluralization and localization support

This commit is contained in:
Linus Rath
2026-03-14 16:37:24 +01:00
parent 1936a37f28
commit c024d89477
9 changed files with 33 additions and 8 deletions
+9
View File
@@ -107,6 +107,7 @@ export default function Home() {
advancedSearch,
selectedKeyword,
selectKeyword,
hasMoreEmails,
} = useEmailStore();
// Keyboard shortcuts handlers
@@ -1147,6 +1148,14 @@ export default function Home() {
)}
</div>
{(searchQuery || !isFilterEmpty(searchFilters)) && !isLoading && (
<div className="px-4 py-1.5 text-xs text-muted-foreground border-b border-border bg-muted/20">
{hasMoreEmails
? t("advanced_search.results_found_more", { count: emails.length })
: t("advanced_search.results_found", { count: emails.length })}
</div>
)}
<div className="flex-1 min-h-0 flex flex-col">
<WelcomeBanner />