Skip to content

[Due for payment 2026-08-06] [$250] Search: show expense count and total when "Select all matching items" is active #94907

Description

@luacmartins

Problem

Classic shows expense count + total when selecting all matching expenses. NewDot Select all matching items sets areAllMatchingItemsSelected but shows no numeric count/total for ad-hoc filters (only saved searches + suggested-search tabs get server totals today).

Expected

Select all matching → show full-result count and total (count only when total can't be converted — same as Classic mixed-currency behavior).

Solution

Auth already returns search.count / search.total / search.currency when shouldCalculateTotals: true. Wire it up:

  1. useSearchShouldCalculateTotals — return true when areAllMatchingItemsSelected
  2. Refetch Search at offset: 0 with shouldCalculateTotals: true if count missing after select-all (keep totals on offset === 0 only)
  3. SearchSelectionFooter — show footer + server metadata when select-all active
  4. SearchBulkActionsButton"X selected" from metadata.count, not generic "All matching items selected"
  5. SearchPageFooter — hide total row when undefined (e.g. withdrawal-ID grouping)
Upwork Automation - Do Not Edit

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorImprovementItem broken or needs improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions