feat(ui): add recent transactions tab to account page#521
Merged
Tinna23 merged 4 commits intoJun 21, 2026
Conversation
…#508) - Add AccountHistoryTransaction and AccountHistoryResponse types - Add fetchAccountHistory() client with cursor-based pagination - Add GET /api/account/[address]/history proxy route - Create TransactionHistoryTab component with loading skeleton, error/empty states, clickable rows navigating to /tx/:hash, and a 'Load more' button when has_more is true - Update account page with Overview / Recent Transactions tab switcher; active tab persists in URL hash (#overview / #history)
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #508
Adds a Recent Transactions tab to the account page, transforming it from a static snapshot into a live activity feed. Each transaction row is clickable and navigates to the full explanation at
/tx/:hash.Changes
New files
packages/ui/src/app/api/account/[address]/history/route.ts— server-side proxy route forwarding to the Rust backend's/account/:address/historyendpoint (follows the identical pattern of the existing account/tx proxy routes)packages/ui/src/components/account/TransactionHistoryTab.tsx— client component rendering the history listModified files
src/types/index.tsAccountHistoryTransactionandAccountHistoryResponseinterfacessrc/lib/api.tsfetchAccountHistory(address, limit, cursor)with cursor-based paginationsrc/app/account/[address]/page.tsxAcceptance Criteria
/tx/:hash#overview/#history)Testing
TypeScript:
npx tsc --noEmit— zero new errors (3 pre-existing errors inUseCasesSection.tsxare unrelated).