fix: discoveries miner card shows issue stats only#292
Merged
anderdc merged 2 commits intoentrius:testfrom Apr 16, 2026
Merged
Conversation
Contributor
Author
11 tasks
Collaborator
|
resolve conflicts |
…er-card-issue-stats
Contributor
Author
|
@anderdc I've resolved the conflicts. Could you review it again please? |
Contributor
Author
|
Thanks a lot, @anderdc |
8 tasks
7 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
Fixes #277. On /discoveries, miner cards mixed PR donut slices with an issue credibility percentage and stacked a second row of issue stats below the PR row. The donut and the stats row now share one segments array, so the chart segments, labels, and center percentage always describe the same data.
Changes
getSegments(miner, variant)as the single source of truth for the three segments rendered on the card (Solved/Open/Closed for discoveries, Merged/Open/Closed for oss).datamaps over the same segments with positional chart colors and inactive ratios, so it can never diverge from the labels.IssueStatsSection(~130 lines); the footer is now a single grid row for both variants.StatCellandStatLabelhelpers to drop the repeated Typography boilerplate.Scope
Test plan
npx tsc --noEmitpasses.