Skip to content

feat: Enhance Contributor Risk Table with Live Search and Sorting Features#8262

Open
dinesh9997 wants to merge 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/burnout-table-search-sort
Open

feat: Enhance Contributor Risk Table with Live Search and Sorting Features#8262
dinesh9997 wants to merge 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/burnout-table-search-sort

Conversation

@dinesh9997

Copy link
Copy Markdown
Contributor

Description

Resolves #8217.

This PR adds dynamic search filtering, multi-column interactive header sorting, a "High Risk Only" quick filter toggle, and an empty search state to the Contributor Burnout Risk Table (/burnout-analyzer).

Key Enhancements & Features:

  1. Live Search Input: Filters contributors dynamically by username in real-time with a quick clear (X) button.
  2. "High Risk Only" Quick Filter: Toggle switch to instantly filter the table down to high-risk contributors (riskLevel === 'High'), with a badge showing the high-risk count.
  3. Interactive Column Header Sorting: Clickable headers with directional sort arrows (ArrowUpDown, ArrowUp, ArrowDown) supporting ascending/descending sorting for:
    • Contributor username (A-Z / Z-A)
    • Workload Share (%)
    • Intensity Weeks
    • Rest Weeks
    • Burnout Risk Score
  4. Empty State & Filter Reset: Friendly empty state banner when zero contributors match search/filters, complete with a "Reset Filters" action button.
  5. Contributor Counter Badge: Shows live count (Showing X of Y contributors).

Target Files Modified:

  • components/burnout/BurnoutRiskTable.tsx
  • components/burnout/BurnoutRiskTable.test.tsx

Verification & Testing

  • Unit Tests: Ran npx vitest run components/burnout/BurnoutRiskTable.test.tsx5 / 5 tests passed.
  • TypeScript Check: Ran npx tsc --noEmit0 errors.
  • Linting: Passed eslint --fix and prettier pre-commit checks cleanly.

GSSoC 2026 Contribution

Copilot AI review requested due to automatic review settings July 22, 2026 14:23
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@dinesh9997 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@retenta-bot

retenta-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

This pull request adds significant enhancements to the Contributor Burnout Risk Table, including live search and sorting capabilities, which will greatly improve user experience. It's worth noting that similar enhancements have been made in the past, such as the addition of export functionality to the Burnout & Sustainability Sentinel, which aimed to improve user experience by allowing structured data downloads. Additionally, ensuring error resilience in the ContributorsClient has been a focus, which aligns with maintaining stability in user interactions. Looking forward to your thoughts on this! 😊

@retenta-bot retenta-bot Bot changed the title feat: Add live search filtering and interactive column sorting to Contributor Risk Table (#8217) feat: Enhance Contributor Risk Table with Live Search and Sorting Features Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/130-[hash].js - 3.04 KB -3.04 KB (-100.00%) 🗑️ Deleted
static/chunks/1925-[hash].js 2.17 KB - +2.17 KB (++100%) 🆕 New
static/chunks/6297-[hash].js - 52.11 KB -52.11 KB (-100.00%) 🗑️ Deleted
static/chunks/7083-[hash].js 50.09 KB - +50.09 KB (++100%) 🆕 New
static/chunks/app/burnout-analyzer/page-[hash].js 12.33 KB 10.02 KB +2.31 KB (+23.04%) 🔴 Regression
static/css/[hash].css 41.16 KB 41.08 KB +0.08 KB (+0.19%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3984.32 KB 3985.28 KB -0.96 KB (-0.02%)
Total CSS 332.16 KB 331.41 KB +0.75 KB (+0.23%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants