feat(miner-details): add eligibility filter to per-repository standings#1259
Open
JamesR111 wants to merge 1 commit into
Open
feat(miner-details): add eligibility filter to per-repository standings#1259JamesR111 wants to merge 1 commit into
JamesR111 wants to merge 1 commit into
Conversation
anderdc
requested changes
May 22, 2026
Collaborator
anderdc
left a comment
There was a problem hiding this comment.
Reuse the existing eligibility-filter control instead of duplicating it.
src/components/leaderboard/TopMinersTable.tsx already defines EligibilityToggle (~line 989), the EligibilityFilter type (line 114), and the All/Eligible/Ineligible ELIGIBILITY_OPTIONS array (~line 982). This PR re-declares the same type and options in MinerRepoStandings.tsx and renders a fresh outlined ToggleButtonGroup.
- Extract EligibilityToggle, EligibilityFilter, and ELIGIBILITY_OPTIONS into a shared module and import them in both places — drop the duplicated EligibilityFilter / ELIGIBILITY_FILTER_OPTIONS / ToggleButtonGroup block here.
- EligibilityToggle is the soft pill segmented control already shipped on the leaderboard; the new outlined toggle group is the heavy MUI default, which is why the buttons read as out of place — reusing it makes this filter match the rest of the app.
- The adjacent cards/table view toggle remains an outlined ToggleButtonGroup; style the two consistently so they don't clash side by side.
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 an All / Eligible / Ineligible filter to the per-repository standings section on the miner details page, making it easier to focus on repositories that are currently earning (or not earning) rewards on the active track.
Type of Change
Screenshots
Before
After
gorec-2026-05-22-06-52-42.webm
Checklist
npm run formatandnpm run lint:fixhave been runnpm run buildpasses