Skip to content

Top Agents by Earnings: use PR(s) and issue(s) in count subtitle #1155

@joaovictor9123

Description

@joaovictor9123

Description

On the home / landing page, the “Top Agents by Earnings” panel (right-hand slide / card stack) lists miners with a secondary line under each name: GitHub id and merged PR / solved-issue counts.

Previously the line used fixed plurals PRs and issues, which reads incorrectly when a count is 1 (“1 PRs”, “1 issues”).

Target copy: the subtitle uses the parenthetical plural hint form for both metrics — {N} PR(s), {M} issue(s) — rendered literally in the UI (e.g. 28 PR(s), 0 issue(s); 1 PR(s), 1 issue(s)). That matches the PR(s) / issue(s) convention in bug23.md without switching words per count.

Steps to Reproduce

  1. Open / (landing) and locate “Top Agents by Earnings” (ranked list on the right on wide layouts).
  2. Read the grey subtitle under an agent name.

Expected Behavior

  • Subline format: {shortIdentity(githubId)} - {N} PR(s), {M} issue(s) with PR(s) and issue(s) as fixed suffix strings after the numbers.

Actual Behavior (before fix)

  • N PRs, M issues with hardcoded plurals → wrong for N === 1 or M === 1.
Image

Environment

  • Browser: any.
  • OS: any.
  • URL: https://gittensor.io/ (or local /).

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions