Add tabs, a list view and an All programs page to partner Bounties #4684
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 590 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.382
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4684"
general
weight: 0.35
Joker666
Changes
Fixes https://linear.app/dubinc/issue/ENG-1745/add-a-compact-list-view-for-partner-bounties
Fixes https://linear.app/dubinc/issue/ENG-1769/build-the-all-programs-bounties-page-for-partners
Program Bounties page
PartnerBountiesTablefor the list view: Bounty, Expires, Progress and Earnings, sortable by Expires and Earnings, 10 per page.All programs Bounties page
GET /api/partner-profile/bountiesreturns the bounties of all approved and archived enrollments (archived partners can still submit) with their program. It loads them in one query with one eligibility filter for all enrollments, so the query does not grow with the number of programs, and sums the link stats per program in the database.getBountiesForPartnerand the single bounty route use the same code, with the same output./bountiespage with the same tabs and views, plus a Program column in the list and a program row on the cards. A row opens the bounty in its program./bountiesis a partners dashboard path, andbountiesis a reserved slug. No production program uses that slug.PartnerBountiesView, and the bounty card moved toui/partners/bounties.Shared code
getPartnerBountyTabandcountPartnerBountiesByTab. The badge and the tabs use the same completed check: the performance target is reached, or the maximum number of submissions is sent. A completed bounty stays in Completed after it ends.getBountyRewardAmountandformatBountyRewardAmountfor the description and the table.isPartnerBountyExpiredreplaces the repeated expiry checks.SheetTabsaccepts tabs without icons, a badge color per tab, and arightslot.Tests
Motivation
The updated design adds a compact list next to the card grid, Completed and Expired tabs, and one Bounties page for all programs.
UI/Screenshot
All programs, list and grid:
<img width="1440" alt="all-bounties-table" src="https://github.com/user-attachments/assets/fad40a4f-19c6-4575-8d35-0fd4f09167e8" />
<img width="1440" alt="all-bounties-grid" src="https://github.com/user-attachments/assets/4511ac45-5812-4e53-9c1d-d22c5797b021" />
One program, list and grid (test bounties):
<img width="1440" alt="bounties-list" src="https://github.com/user-attachments/assets/863f4a76-aebc-4d4d-b8f3-1b0340748ef4" />
<img width="1440" alt="bounties-grid" src="https://github.com/user-attachments/assets/fd299680-babc-4db7-8ab7-684cca28c917" />
How to test
1. Run
pnpm devinapps/weband log in topartners.localhost:8888as a partner with bounties in two or more programs.2. Open
/programs/<slug>/bounties. Check the tab counts, switch tabs, and switch between the grid and the list.3. Open
/bountiesfrom the All programs sidebar. Check that bounties of all approved programs show with their program, and that the counts match the sidebar badge.4. In the list, sort by Program, Expires and Earnings, and click a row to open the bounty.
5. Run
pnpm vitest run tests/bountiesandpnpm exec playwright test playwright/api/partner-profile/bounties.spec.ts --project=apiinapps/web.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added a Bounties section to the partner dashboard, bringing together bounties across programs with links to their details.
Browse bounties in grid or table view; sort and paginate the table, and filter by active, completed, or expired status.
View bounty counts, program details, progress, expiry dates, and reward amounts, including “up to” amounts for capped rewards.
* Bounty status reflects submission or performance completion, with completed status taking precedence over expiry.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->