Conversation
The dashboard loads stats and the tip block first, then earlier block summaries one at a time, and caches summaries across refreshes so a 90s refresh stays within hosted gateway rate limits.
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.
Description
Adds the Zcash network dashboard at
/zecand/tzec, and makes both networks visible across the app.The dashboard is designed around the hosted gateway limit of about 5 requests per minute per IP:
Related Issue
Part of #398. Stacked on #406.
Type of Change
Changes Made
src/config/networks.json:zecandtzecentries, taken from explorer-metadata with slugs added./zecand/tzecroutes, with a lazy-loaded page.useZcashDashboardplus the dashboard components:zcashnamespace and atooltips.zcashsection in all 5 locales.NetworkBlockIndicator: a Zcash branch with a 90s poll.useRpcLatencyTest: Zcash endpoints are tested withgetblockcount.README.mdand.claude/rules/commands.md: list the Zcash networks and slugs.e2e/tests/shared/mocked/zcash-dashboard.spec.ts, with RPC traffic served from mainnet block 3,483,400.Screenshots (if applicable)
Checked locally against mocked RPC data in dark, light and 400px-wide layouts.
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes
METADATA_VERSIONisn't bumped yet. The explorer-metadata publish of@openscan/metadata1.3.0-alpha.0 failed, because npm requires--tagfor prereleases. Until it's published:npm run test:run: 150 passing.npx playwright test --project=mocked e2e/tests/shared/mocked/zcash-dashboard.spec.ts: 2 passing.