← Back to Pull requests

Fix the partner Overview on mobile, and add tabs and a table to the Programs page #4654

Closed
unknown closed this pull request without merging on Oct 10, 2026 02:08 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 18:42 UTC
Author

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

  • The earnings chart no longer opens /programs on touch devices.

  • The Tasks card is hidden when there is nothing to do.

  • The lower row is now Top programs, Recent earnings, Top links.
  • Programs API

  • The programs list accepts search, a list of statuses, sorting and pages.

  • The count accepts the same filters and groupBy=status.

  • includeRewardsDiscounts=false now means false.
  • Programs page

  • Status tabs, search, and a grid or table view.

  • New grid cards and a sorted, paginated table for each tab.

  • /programs/invitations redirects 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 dev in apps/web and log in to partners.localhost:8888 as 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 -->

    Diff: 472 lines (+354 / -118) across 5 files Reviewer: Joker666 Review duration: 446m
    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
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.7% (MEDIUM) · Higher = larger blast radius
    45.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%
    Repository