Skip to content

Keep miner score controls visible without PRs#1171

Open
longbiaochen wants to merge 1 commit into
entrius:testfrom
longbiaochen:codex/miner-score-empty-pr-toolbar
Open

Keep miner score controls visible without PRs#1171
longbiaochen wants to merge 1 commit into
entrius:testfrom
longbiaochen:codex/miner-score-empty-pr-toolbar

Conversation

@longbiaochen
Copy link
Copy Markdown

Summary

  • keep the miner score breakdown card rendered when a miner has zero PRs
  • preserve the existing filter buttons, rows selector, search field, and empty-state copy instead of returning null

Fixes #1133

Verification

  • npm run lint
  • npm run build
  • in-app browser: opened http://localhost:8080/miners/details?githubId=94741984&mode=prs&tab=overview with test API data where /miners/94741984/prs returns an empty array; observed Score Breakdown, All/Open/Merged/Closed filters, Rows selector, search input, and No PRs to show.

Copilot AI review requested due to automatic review settings May 14, 2026 17:06
@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 14, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the “blank PR breakdown” UI for miners with zero PRs by ensuring the PrBreakdownView still renders the Score Breakdown card and its toolbar controls (filters, rows selector, search) even when the PR list is empty, matching the expected empty-state behavior described in issue #1133.

Changes:

  • Stop returning null when prs.length === 0, allowing the existing empty-state message (“No PRs to show.” / “No PRs match your search.”) to render.
  • Preserve the filter buttons, rows-per-page selector, and search input for the empty PR case.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: empty PR list hides filter/search toolbar in MinerScoreBreakdown

2 participants