Skip to content

Conversation

@ArjinAlbay
Copy link
Owner

@ArjinAlbay ArjinAlbay commented Nov 17, 2025

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

Summary by CodeRabbit

  • New Features
    • Enhanced the action-required section with improved visual distinction for stale items. Items now display with styling that emphasizes their age, providing clear visual differentiation based on time thresholds to help users quickly identify which items require attention based on how long they've been pending.

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
@vercel
Copy link

vercel bot commented Nov 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
githubmon Ready Ready Preview Comment Nov 17, 2025 7:17pm

@coderabbitai
Copy link

coderabbitai bot commented Nov 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A new helper function getStaleRowClassName() was introduced to conditionally apply CSS classes to table rows based on item age thresholds. Stale items in the action-required view now receive visual emphasis, while other tab types remain unaffected.

Changes

Cohort / File(s) Summary
Stale item row styling
src/app/action-required/page.tsx
Added helper function getStaleRowClassName(daysOld) that returns CSS classes when daysOld exceeds age thresholds (14 and 7 days). Applied conditional className logic to TableRow elements—stale tab items receive dynamic styling based on age; other tab types unaffected.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Helper function logic is straightforward with clear threshold conditions
  • Single file modification minimizes scope
  • Conditional styling application is localized with no apparent side effects

Poem

🐰 Days grow old, the table knows,
With colors that the threshold shows—
Seven, fourteen, marked with care,
Stale rows get their visual flair!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/resolve-github-issues-01BdB5jBh656Uh41esdRD7XR

📜 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 0e22f37 and 0403efa.

📒 Files selected for processing (1)
  • src/app/action-required/page.tsx (2 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 c014e33 into main Nov 17, 2025
2 of 3 checks passed
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.

[Action Required] Visual Emphasis for Stale PRs Based on Age

3 participants