Skip to content

feat(miners): add sorting support to Miner Repo Standings views#1286

Merged
e35ventura merged 1 commit into
entrius:testfrom
milosde111:feat/miner-repo-sort
May 28, 2026
Merged

feat(miners): add sorting support to Miner Repo Standings views#1286
e35ventura merged 1 commit into
entrius:testfrom
milosde111:feat/miner-repo-sort

Conversation

@milosde111
Copy link
Copy Markdown
Contributor

Summary

Adds sorting support to Miner Repo Standings across both card and table views for PR and Issue modes, improving repository ranking visibility and overall usability.

Included improvements

  • Added shared sorting state for standings data (field + order)

  • Enabled sortable table columns with interactive header sorting

  • Added compact card-view sorting controls with direction toggle

  • Applied mode-aware default sorting:

    • PR mode → Repo score descending
    • Issue mode → Discovery score descending
  • Automatically resets default sorting when switching between PR and Issue modes

  • Refined sort control UI for consistency with surrounding controls:

    • improved open/closed visual states
    • compact responsive sizing
    • theme-token-based styling without hardcoded colors

Scope

  • Frontend-only Miner Repo Standings UI enhancements
  • No backend, API, or scoring logic changes

Related Issues

Closes #1285

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Screenshots

Before

before-sort.webm

After

after-sort.webm

Checklist

  • New components are modularized/separated where sensible
  • Uses predefined theme (e.g. no hardcoded colors)
  • Responsive/mobile checked
  • Tested against the test API
  • npm run format and npm run lint:fix have been run
  • npm run build passes
  • Screenshots included for any UI/visual changes

@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 27, 2026
@e35ventura e35ventura merged commit 49e23c8 into entrius:test May 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sorting to Miner Repo Standings (card and table views)

2 participants