feat: Add Active Provers and Miner Count to PoVW Cycles tab - #43
Merged
Conversation
- Add miner_count field to EpochData (API and frontend) - Map num_participants from upstream mining API to miner_count - Add Active Provers card fetching from /api/provers-count - Add Miner Count card displaying latest epoch's miner_count - Expand Latest Epoch grid from 5 to 7 columns - Update epochs.json fallback data with miner_count field - Add tooltip icons for both new stat cards Closes #41
Preview deployment
The branch alias URL always points to the latest commit on this PR. |
zeroklaw
marked this pull request as ready for review
May 11, 2026 16:14
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
Adds two new statistics to the "Latest Epoch" grid in the PoVW Cycles tab:
Active Provers — number of provers active on the market in the last 24 hours, fetched from a new
/api/provers-countendpoint (proxiesexplorer.boundless.network/api/base/provers/summary/1d, cached in KV for 10 minutes)Miner Count — number of unique miners in the latest finalized epoch, sourced from the existing
/api/epochsendpoint'snum_participantsfieldChanges
functions/api/epochs.ts— Addminer_countfield toEpochDatainterface andnormaliseEntriesmapping (from upstreamnum_participants)functions/api/provers-count.ts— NEW: Pages Function that proxies the provers summary endpoint, counts entries, returns{ active_provers: number }src/lib/parseEpochs.ts— Addminer_count: numberto frontendEpochDatatypesrc/lib/parseEpochs.test.ts— Addminer_countto all mock epoch objectssrc/components/tabs/PovwCycles.tsx— AddactiveProversstate + fetch,latestMinerCountcomputed value, two new stat cards with tooltips, expand grid to 7 columnssrc/data/epochs.json— Addminer_count: 7to all 100 fallback entriesCloses #41