This is also incorporated into #132, along with other views.
PR #69
39 votes · 33 up · 6 down
Comments(4)
Added a "show all" link so all PRs are easily viewed.
🤖 OpenChaos Bot
Summary: This PR introduces a "Trending" PR list, displayed alongside the "Top by Votes" list, and adds a "TRENDING" badge to the PR card of trending items. It calculates a "hot score" based on votes and recency to determine trending PRs.
Files changed: 3 (src/components/PRCard.tsx, src/components/PRList.tsx, src/lib/github.ts)
Impact: Medium - Significantly changes how PRs are displayed and prioritized, potentially increasing engagement with newer PRs.
All Activity(48)
This is also incorporated into #132, along with other views.
Added a "show all" link so all PRs are easily viewed.
🤖 OpenChaos Bot
Summary: This PR introduces a "Trending" PR list, displayed alongside the "Top by Votes" list, and adds a "TRENDING" badge to the PR card of trending items. It calculates a "hot score" based on votes and recency to determine trending PRs.
Files changed: 3 (src/components/PRCard.tsx, src/components/PRList.tsx, src/lib/github.ts)
Impact: Medium - Significantly changes how PRs are displayed and prioritized, potentially increasing engagement with newer PRs.
Add hot score ranking with trending section
Summary
- Implements Reddit-style "hot" ranking that combines votes (logarithmic) with recency (linear)
- Newer PRs can now compete with older PRs that have more votes
- PRs displayed in two sections: Top 5 by Votes (merge candidates) and Trending (rising PRs by hot score)
- Items in Top by Votes show a "TRENDING" badge if they're also in the top 5 by hot score
How it works
hot_score = log10(votes + 1) + (age_seconds / 45000)
The decay constant (45000 seconds ≈ 12.5 hours) means a PR needs ~10x more votes every 12.5 hours to maintain its position against newer PRs.