Skip to content

Miner PR breakdown nodes chip shows "1 nodes" instead of "{n} node(s)" #1236

@galuis116

Description

@galuis116

Description

On miner details, the PR score breakdown UI builds a row of small grey stat chips per pull request. One chip is built from totalNodesScored as ${pr.totalNodesScored} nodes. When that count is 1, the UI shows “1 nodes” instead of {n} node(s) (e.g. 1 node(s), 2 node(s)).

Steps to Reproduce

  1. Open /miners/details?githubId=... and go to the tab / section that lists per-PR breakdown with the compact stat chips (base score, commits, tokens, nodes, structural, leaf, etc.).
  2. Find a PR row where totalNodesScored === 1 (data-dependent; may require a small or early contribution).
  3. Read the nodes fragment in the chip row.

Expected Behavior

  • Nodes chip uses {n} node(s) (e.g. 1 node(s), 2 node(s)); zero remains hidden per existing > 0 filter.

Actual Behavior

  • The suffix “nodes” is always plural (e.g. “1 nodes”).

Environment

  • Browser: any.
  • OS: any.
  • URL: /miners/details?githubId=... (PR breakdown visible).

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