Skip to content

Conversation

@ArjinAlbay
Copy link
Member

@ArjinAlbay ArjinAlbay commented Nov 17, 2025

Implements GitHub issue #96 by adding an "Add to Kanban" button to each
row in the Quick Wins table. Users can now quickly add issues to their
Kanban board's "To Do" column directly from the Quick Wins page.

Changes:

  • Modified columns.tsx to add a new Actions column with "Add to Kanban" button
  • Updated QuickWinsTable.tsx to integrate with useKanbanStore
  • Added handler to convert GitHubIssue to KanbanTask format
  • Button adds issues to the "To Do" column by default

This streamlines the planning workflow and accelerates contribution
initiation by reducing friction in task assignment.

Summary by CodeRabbit

  • New Features
    • Visual highlighting for stale items with color-coding based on age (red for very old, yellow for moderately old)
    • Added "Add to Kanban" button to quick wins table for streamlined task management
    • Enhanced priority calculation system now considers comment activity, pull request size, and item age for improved prioritization

claude and others added 6 commits November 17, 2025 19:12
Implement color-coded visual indicators for pull requests in the Stale PRs tab:
- Yellow highlight for PRs older than 7 days
- Red highlight for PRs older than 14 days

This enhancement makes it immediately apparent which pull requests require urgent action by providing visual cues proportional to how long they've been stale.

Resolves HappyHackingSpace#112
…1BdB5jBh656Uh41esdRD7XR

Add visual emphasis for stale PRs based on age
Enhanced calculateActionPriority function with comprehensive scoring:
- Status type scoring (review_request: 50, mention: 30, comment: 25)
- Comment count contribution (up to 30 points, 2 points per comment)
- PR size analysis (5-20 points based on additions/deletions)
- Age multipliers (1.1x-1.5x for items older than 3-14 days)
- Label-based modifiers (critical/urgent: +40, high/bug: +25, low: -10)

Priority thresholds:
- urgent: score >= 100
- high: score >= 70
- medium: score >= 40
- low: score < 40

Updated GraphQL queries to fetch additions/deletions for all PR queries.
Updated TypeScript interfaces to include PR size fields.

Resolves HappyHackingSpace#111
…d-01YAytQ5oUsSPEk629rELdjM

Implement weighted priority calculation for action items
Implements GitHub issue HappyHackingSpace#96 by adding an "Add to Kanban" button to each
row in the Quick Wins table. Users can now quickly add issues to their
Kanban board's "To Do" column directly from the Quick Wins page.

Changes:
- Modified columns.tsx to add a new Actions column with "Add to Kanban" button
- Updated QuickWinsTable.tsx to integrate with useKanbanStore
- Added handler to convert GitHubIssue to KanbanTask format
- Button adds issues to the "To Do" column by default

This streamlines the planning workflow and accelerates contribution
initiation by reducing friction in task assignment.
…oard-01Mev23WUcwXi26vGmvizn8z

Add 'Add to Kanban' quick action for Quick Wins issues
@coderabbitai
Copy link

coderabbitai bot commented Nov 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Four files modified to introduce visual stale-item styling, add a Kanban task quick action for issues, and enhance priority scoring with PR size and activity metrics.

Changes

Cohort / File(s) Summary
Stale Item Styling
src/app/action-required/page.tsx
Introduces getStaleRowClassName() helper to conditionally style table rows based on item age (daysOld); applies red background for items >14 days old, yellow for >7 days.
Kanban Integration
src/components/quick-wins/QuickWinsTable.tsx, src/components/quick-wins/columns.tsx
Adds onAddToKanban callback mechanism: QuickWinsTable hooks into useKanbanStore and passes handler to createColumns; columns.tsx accepts options parameter with optional callback and renders "Add to Kanban" Actions column with ListPlus icon.
Priority Scoring Enhancement
src/lib/api/github-graphql-client.ts
Extends PullRequest and StalePullRequest interfaces with additions and deletions fields; expands calculateActionPriority() signature to accept commentCount and prSize; implements multi-factor scoring logic based on mentionType, comment activity, PR size thresholds, label modifiers, and age-based amplification.

Sequence Diagram

sequenceDiagram
    participant User
    participant QuickWinsTable
    participant Columns
    participant Kanban as useKanbanStore
    
    User->>Columns: Clicks "Add to Kanban" button
    Columns->>QuickWinsTable: onAddToKanban(issue)
    QuickWinsTable->>Kanban: addTask(issue)
    Kanban->>Kanban: Dispatch task to store
    Note over Kanban: Issue added to Kanban board
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • Priority scoring logic in github-graphql-client.ts: The new multi-factor scoring system combines mentionType weights, commentCount contributions, PR size thresholds, label-based modifiers, and age-based amplification—requires careful validation of each scoring path and threshold correctness.
  • Kanban integration flow: The callback chain across QuickWinsTable and columns.tsx needs verification that the handler is properly memoized and dependencies are complete.
  • Interface contract changes: Addition of optional additions and deletions fields to PullRequest and StalePullRequest may affect existing consumers; verify that GraphQL query correctly fetches and maps these fields.

Possibly related issues

Possibly related PRs

Poem

🐰 A rabbit organizes with glee,
Stale items now styled—red, yellow, see?
To Kanban they hop with a ListPlus click,
Priority scores dance (a multi-factor trick!),
Tasks sorted by age, by size, and by care! 🎯

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b1cb5b4 and 56a8e41.

📒 Files selected for processing (4)
  • src/app/action-required/page.tsx (2 hunks)
  • src/components/quick-wins/QuickWinsTable.tsx (3 hunks)
  • src/components/quick-wins/columns.tsx (2 hunks)
  • src/lib/api/github-graphql-client.ts (12 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ArjinAlbay ArjinAlbay merged commit 130d3a4 into HappyHackingSpace:main Nov 17, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants