PR #124

26 votes · 24 up · 2 down

View on GitHub
26
Total Votes
+24
Upvotes
-2
Downvotes
+24-2

Comments(10)

bigintersmindComment#124feat: Show PR rank, uh, it's dank

Hmm, no ranks after expanding, or in the trending section.

sevonjComment#124feat: Show PR rank, uh, it's dank

Since the last redesign this pr became a bit pointless but I guess that's all the more reason to not close it.

bigintersmindComment#124feat: Show PR rank

That looks nice. I was just looking for a low-lift solution, and those PRs already had a rank of zero in your code. I prefer your new approach, however.

sevonjComment#124feat: Show PR rank

Absolute rank is now stored in PullRequest itself and non-qualifying prs say N/A.

image
sevonjComment#124feat: Show PR rank

Was the only reason for zeroing the rank to not distinguish number 1?

bigintersmindComment#124feat: Show PR rank

One thing to flag: after merging into main, the "Trending This Week" section (added in #69) shows "0" for each PR because it passes rank=0.

Screenshot 2026-02-09 at 5 09 12 PM

A quick fix would be to fall back to the PR number when there's no rank:

<b>{rank > 0 ? rank : `#${pr.number}`}</b>

That way, ranked sections show the position and unranked sections show the PR number like before.

bigintersmindComment#124feat: Show PR rank

I like the way you've handled it, numbering them as they're sorted on the page.

sevonjComment#124feat: Show PR rank

Now that failing pull requests are at the bottom, how should the rank number behave? Include failing? Not? Show both?

openchaos-bot[bot]Comment#124feat: Show PR rank

🤖 OpenChaos Bot

Summary: This PR modifies the PRCard component to display the rank instead of the PR number in the leading rank cell, and displays the PR number along with the title.

Files changed: 1 (src/components/PRCard.tsx)

Impact: Low - Only affects the display of PR information in the PRCard component.


openchaos-bot

All Activity(38)

bigintersmindComment#124feat: Show PR rank, uh, it's dank

Hmm, no ranks after expanding, or in the trending section.

sevonjComment#124feat: Show PR rank, uh, it's dank

Since the last redesign this pr became a bit pointless but I guess that's all the more reason to not close it.

bigintersmindComment#124feat: Show PR rank

That looks nice. I was just looking for a low-lift solution, and those PRs already had a rank of zero in your code. I prefer your new approach, however.

sevonjComment#124feat: Show PR rank

Absolute rank is now stored in PullRequest itself and non-qualifying prs say N/A.

image
sevonjComment#124feat: Show PR rank

Was the only reason for zeroing the rank to not distinguish number 1?

bigintersmindComment#124feat: Show PR rank

One thing to flag: after merging into main, the "Trending This Week" section (added in #69) shows "0" for each PR because it passes rank=0.

Screenshot 2026-02-09 at 5 09 12 PM

A quick fix would be to fall back to the PR number when there's no rank:

<b>{rank > 0 ? rank : `#${pr.number}`}</b>

That way, ranked sections show the position and unranked sections show the PR number like before.

bigintersmindComment#124feat: Show PR rank

I like the way you've handled it, numbering them as they're sorted on the page.

sevonjComment#124feat: Show PR rank

Now that failing pull requests are at the bottom, how should the rank number behave? Include failing? Not? Show both?

openchaos-bot[bot]Comment#124feat: Show PR rank

🤖 OpenChaos Bot

Summary: This PR modifies the PRCard component to display the rank instead of the PR number in the leading rank cell, and displays the PR number along with the title.

Files changed: 1 (src/components/PRCard.tsx)

Impact: Low - Only affects the display of PR information in the PRCard component.


openchaos-bot