Skip to content

Provider list: align page 1 row count, make top-group fold both ways#67

Merged
koenmtb1 merged 1 commit into
mainfrom
km/provider-list-concatinate
May 12, 2026
Merged

Provider list: align page 1 row count, make top-group fold both ways#67
koenmtb1 merged 1 commit into
mainfrom
km/provider-list-concatinate

Conversation

@koenmtb1
Copy link
Copy Markdown
Contributor

Two fixes to the providers table:

  • Page 1 was showing only 5 individual providers below the "Top 5" group row (because pagination still served 10 raw providers, the first 5 of which got collapsed). Pagination now serves 14 on page 1, the first 5 collapse into the group row and 9 render individually, so the visible row count matches every other page (10 slots).
  • The "Top 5" group row could be expanded but not collapsed back. The row now stays rendered in both states, click toggles, the chevron rotates, and the top-5 individual rows appear below it with the decentralisation bar between top and rest.

TOP_GROUP_SIZE is now exported from useProviderTable and reused by useProviderTableDisplayData so the pagination math and the display flag can't drift.

@koenmtb1 koenmtb1 requested a review from a team as a code owner May 12, 2026 07:24
@koenmtb1 koenmtb1 merged commit 3e65cfa into main May 12, 2026
5 checks 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.

1 participant