feat: table header shows filtered count vs loaded vs API total

This commit is contained in:
lorentz 2026-04-01 08:11:03 -04:00
parent 3cb312e6ec
commit 0df5c344b5

View file

@ -894,7 +894,11 @@ function HeldMailTab() {
<div className="px-4 py-2 bg-muted/40 border-b">
<span className="text-sm font-medium">
{filtered.length.toLocaleString()} held message{filtered.length !== 1 ? 's' : ''}
{currentTenant?.totalCount > messages.length ? ` (showing ${messages.length.toLocaleString()} of ${currentTenant.totalCount.toLocaleString()} total)` : ''}
{filtered.length < messages.length
? ` — filtered from ${messages.length.toLocaleString()}${currentTenant?.totalCount > messages.length ? ` of ${currentTenant.totalCount.toLocaleString()} total` : ''}`
: currentTenant?.totalCount > messages.length
? ` (showing ${messages.length.toLocaleString()} of ${currentTenant.totalCount.toLocaleString()} total)`
: ''}
</span>
</div>
<div className="overflow-x-auto">