Skip to content

feat: implement pagination for token dashboard (#29)#145

Merged
Ejirowebfi merged 1 commit into
Favourorg:mainfrom
unixfundz:feature/pagination-token-dashboard
Mar 24, 2026
Merged

feat: implement pagination for token dashboard (#29)#145
Ejirowebfi merged 1 commit into
Favourorg:mainfrom
unixfundz:feature/pagination-token-dashboard

Conversation

@unixfundz

Copy link
Copy Markdown
Contributor

Closes #29

The dashboard previously fetched and rendered all tokens at once, which causes slow loads for users with many deployed tokens. This PR adds page-based pagination to limit how many tokens are shown at a time.

Changes
useTokens hook — new hook that fetches all tokens for the connected wallet and slices them client-side by page and pageSize (default 10). Resets to page 1 on reload/wallet change.
PaginationControls component — reusable UI component with Previous/Next buttons, a page indicator, and a token range label.
Dashboard — refactored to use useTokens. Pagination controls are hidden when a search query is active since filtering already narrows the result set.
index.ts
— exports PaginationControls.
Acceptance Criteria
Only pageSize (10) tokens are shown per page
Previous button is disabled on page 1
Next button is disabled on the last page
Page indicator shows current page and total pages (Page X of Y)
Range label shows Showing X–Y of Z tokens
Testing
Run the frontend locally and connect a wallet that has deployed multiple tokens to verify pagination behavior.

- Add useTokens hook with page/pageSize (default 10) parameters
- Slice tokens client-side from full list for accurate totals
- Add PaginationControls component with Previous/Next buttons
- Show 'Showing X–Y of Z tokens' range indicator
- Disable Prev/Next at first/last page boundaries
- Export PaginationControls from UI index
- Refactor Dashboard to use useTokens hook
@drips-wave

drips-wave Bot commented Mar 24, 2026

Copy link
Copy Markdown

@unixfundz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ejirowebfi Ejirowebfi merged commit 0f23969 into Favourorg:main Mar 24, 2026
0 of 2 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.

Implement Pagination for Token Dashboard

2 participants