Skip to content

fix(PoolTable): relabel footer total to 'Total (visible rows)' - #420

Merged
Jagadeeshftw merged 1 commit into
AnchorNet-Org:mainfrom
JClark011:fix/pool-table-footer-label
Jul 30, 2026
Merged

fix(PoolTable): relabel footer total to 'Total (visible rows)'#420
Jagadeeshftw merged 1 commit into
AnchorNet-Org:mainfrom
JClark011:fix/pool-table-footer-label

Conversation

@JClark011

Copy link
Copy Markdown
Contributor

fix(PoolTable): disambiguate footer total label

Summary

Relabels the PoolTable row from "Total" to "Total (visible rows)" to
match the existing precedent in SettlementTable.

On /dashboard, the StatCard labelled "Total liquidity" is computed from the
full, unfiltered pool list, while the table footer total is computed from only
the pools currently passed in — which can be a filtered subset when the user
has typed in the search box. Previously both were labelled the same way,
making it easy to mistake the filtered table total for the full network total.

No change to either total's underlying calculation — label only.

Changes

  • src/components/PoolTable.tsx — footer cell text updated to "Total (visible
    rows)"
  • src/components/PoolTable.test.tsx — test assertion updated to match new
    label

Testing

Existing test "renders a totals row summing liquidity and anchor count"
updated to assert "Total (visible rows)". All other PoolTable tests
are unaffected.

close #262

@Jagadeeshftw
Jagadeeshftw merged commit 5d00b7c into AnchorNet-Org:main Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PoolsPanel shows two differently-scoped "Total" liquidity figures with no label distinguishing them

2 participants