feat(simulator): add blockchain explorer for transaction monitoring#653
Open
OsejiFabian wants to merge 1 commit into
Open
feat(simulator): add blockchain explorer for transaction monitoring#653OsejiFabian wants to merge 1 commit into
OsejiFabian wants to merge 1 commit into
Conversation
…tellarDevHub#579) - Add useBlockchainExplorer hook with WebSocket support and simulation fallback - Add BlockchainExplorer component with live feed, search/filter, expandable rows - Add /simulator/explorer page with educational context - Add 17 unit tests (100% stmt/func, 84% branch coverage on hook) - Update vitest coverage config to include new hook
|
@OsejiFabian is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@OsejiFabian 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! 🚀 |
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
Implements the Blockchain Explorer feature requested in #579.
Changes
useBlockchainExplorerhook — manages transaction state, stats, and real-time updates. Connects via native WebSocket when a URL is provided; falls back to a realistic simulation interval for offline/educational use. ExposestoggleLive,clearTransactions, connection status, and computed stats.BlockchainExplorercomponent — displays a live transaction stream with search/filter controls, a stats bar (total TXs, success rate, avg fee, latest ledger), expandable row details, and a connection status indicator. WCAG 2.1 accessible (ARIA labels, live regions, roles)./simulator/explorerpage — integrates the component with an educational note explaining what blockchain explorers do.Tests
17 unit tests covering simulation mode, pause/resume, maxTransactions cap, WebSocket connect/disconnect/error/message/close/unmount, malformed message handling, and invalid URL fallback.
Hook coverage: 100% statements, 100% functions, 84% branches.
What was tested
pnpm test)Closes #579