Fix the partner Overview on mobile, and add tabs and a table to the Programs page #4654
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 472 lines diff across 5 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.368
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4654"
general
weight: 0.35
Joker666
Changes
Fixes https://linear.app/dubinc/issue/ENG-1794/prevent-mobile-chart-interactions-from-opening-the-old-overview
Fixes https://linear.app/dubinc/issue/ENG-1795/hide-overview-tasks-when-no-action-is-needed
Fixes https://linear.app/dubinc/issue/ENG-1765/add-search-status-filters-and-pagination-to-the-partner-programs-api
Part of https://linear.app/dubinc/issue/ENG-1797/reorder-the-cards-on-the-partner-all-programs-overview-page
Part of https://linear.app/dubinc/issue/ENG-1747/add-status-tabs-to-the-partner-programs-page-with-an-inactive-tab
Part of https://linear.app/dubinc/issue/ENG-1766/add-a-table-view-and-new-card-states-to-the-partner-programs-page
Part of https://linear.app/dubinc/issue/ENG-1805/parse-includerewardsdiscountsfalse-correctly-in-the-partner-programs
Overview
/programson touch devices.Programs API
groupBy=status.includeRewardsDiscounts=falsenow means false.Programs page
/programs/invitationsredirects to the Invitations tab, and the sidebar item is gone.No index change: the queries filter by
partnerId, which the[partnerId, programId]unique index covers.Motivation
We had to fix some mobile layout bugs on the new Overview. The updated designs also add status tabs, search, a table and new cards to the Programs page.
UI/Screenshot
<img width="1440" alt="overview-desktop" src="https://github.com/user-attachments/assets/5229a3b8-a354-43f9-969a-d240149ff239" />
<img width="390" alt="overview-mobile" src="https://github.com/user-attachments/assets/71c0d044-59f0-41fc-99ec-f9b6dd9c8e1f" />
<img width="1280" alt="grid-acme" src="https://github.com/user-attachments/assets/d769cf15-0a3e-4f31-a8f2-8b956af2af4f" />
<img width="1280" alt="grid-applications" src="https://github.com/user-attachments/assets/838d4bc7-e44b-4297-8504-abcec0d94de6" />
<img width="1280" alt="table-active" src="https://github.com/user-attachments/assets/e68e2b2e-dfbc-499f-a798-2bcb1590b913" />
<img width="1280" alt="table-invitations" src="https://github.com/user-attachments/assets/f57a74ab-acfe-464e-b694-ac800b225d7a" />
How to test
1. Run
pnpm devinapps/weband log in topartners.localhost:8888as a partner with programs in different states.2. On
/overview, check the Tasks card and the card order. In the browser device mode, a drag on the chart stays on the page.3. On
/programs, switch tabs, search, sort, and switch between the grid and the table.4. Open
/programs/invitations. It redirects to the Invitations tab.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Browse partner programs by status, search by name, sort and paginate results, and switch between grid and table views.
Review invitations, applications, active programs, and inactive programs in separate tabs, with invitation actions and status-specific details.
View program earnings and activity, and see enrollment counts by status.
The invitations page now redirects to the Invitations tab.
Improvements
Tasks appear only when there are items to review; invitation tasks link to the Invitations tab.
On non-touch devices, select an earnings chart point to open Programs.
* Recent earnings now appears before Top Links on the overview page.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->