feat: add pagination on Explore token search#30434
Conversation
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key changes:
SmokeWalletPlatform is the correct tag as it covers the Trending discovery tab including search functionality, browsing content feeds (Tokens section), and browser navigation integration. No other feature areas (confirmations, accounts, networks, swaps, etc.) are affected by these changes. The changes are purely additive (new optional field) with no breaking changes to existing interfaces. Performance Test Selection: |
|



Description
Added pagination on Explore token search plus the "View X more" support
Changelog
CHANGELOG entry: add pagination on Explore token search
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3239
Manual testing steps
Screenshots/Recordings
Before
Screen.Recording.2026-05-20.at.13.46.27.mov
After
Screen.Recording.2026-05-20.at.13.44.48.mov
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes token search pagination and ordering in the Explore search flow by threading API
totalCountthrough multiple hooks and UI labels; mistakes could lead to incorrect counts, ordering, or pagination behavior. Impact is limited to Explore/trending token search surfaces and is covered by added unit tests.Overview
Adds end-to-end support for paginated Explore token search by propagating the search API’s
totalCountthroughuseSearchRequest→useTrendingSearch→useTokensFeed→useExploreSearchV2sections.Updates Explore search section headers to show "View X more" for tokens using
totalCount(newgetViewMoreLabellogic + tests), and exposes tokens pagination controls (fetchMore/hasMore/isFetchingMore) in V2 search sections.Adjusts
useTokensFeedsorting for active queries to only sort the first page by market cap and append subsequent pages without re-sorting, preserving pagination order; adds/updates tests and mocks across affected components.Reviewed by Cursor Bugbot for commit 70ebfae. Bugbot is set up for automated code reviews on this repo. Configure here.