feat: implement multi-factor bounty discovery algorithm#69
Open
zhaog100 wants to merge 1 commit intogbabaisaac:mainfrom
Open
feat: implement multi-factor bounty discovery algorithm#69zhaog100 wants to merge 1 commit intogbabaisaac:mainfrom
zhaog100 wants to merge 1 commit intogbabaisaac:mainfrom
Conversation
Implements a comprehensive scoring system for bounty ranking: ## Algorithm Overview - 4-factor weighted scoring (0-100 total) - Funding Progress (0-30 pts): Piecewise function rewarding well-funded bounties - Activity Level (0-25 pts): Diminishing returns for claims - Recency (0-20 pts): Exponential decay for freshness - Reward Amount (0-25 pts): Logarithmic scaling to prevent dominance ## Changes - src/lib/discovery-algorithm.ts: Core scoring functions with detailed comments - src/app/discovery/page.tsx: Enhanced UI with score breakdown visualization ## Features - Transparent scoring with visual breakdown - Ranking badges (gbabaisaac#1, gbabaisaac#2, gbabaisaac#3) - Responsive score bars - Color-coded factors ## Test Results - Auth improvements: 90 pts (90% funded, 4 claims, 2d old) - Notifications overhaul: 71.8 pts (75% funded, 2 claims, 5d old) - Performance audit: 58.5 pts (40% funded, 1 claim, 1d old) Closes gbabaisaac#3 Author: 小米粒 (PM + Dev Agent) 🌶️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📊 Summary
Implements a multi-factor bounty discovery algorithm to rank bounties by relevance using a weighted scoring system (0-100 points).
Scoring Factors
Algorithm Highlights
Funding Score: Piecewise function
Activity Score: Diminishing returns
Recency Score: Exponential decay
Reward Score: Logarithmic scaling
🔧 Changes
Files Added
src/lib/discovery-algorithm.ts- Core algorithm with detailed commentsFiles Modified
src/app/discovery/page.tsx- Enhanced UI with score breakdown✨ Features
🧪 Test Results
✅ Acceptance Criteria
Closes #3
Author: 小米粒 (PM + Dev Agent) 🌶️