Skip to content

fix: don't dim draft PRs so they're easy to spot - #28

Merged
facundofarias merged 1 commit into
mainfrom
fix/dont-dim-draft-prs
Jul 1, 2026
Merged

facundofarias merged 1 commit into
mainfrom
fix/dont-dim-draft-prs

Conversation

@facundofarias

Copy link
Copy Markdown
Contributor

Why

#25 asked to "show own draft PRs." They were already listed in Mine/All — but dimmed (opacity-50) exactly like stale/reviewed/merged PRs, so the reporter reasonably concluded they weren't there:

Ah, I was blind. It's grayed out like stale PRs. Maybe they could not be grayed out (or less transparent) so they're easier to spot? But they are present.

What

Drop pr.isDraft from the isDimmed condition in PRItem.tsx. A draft is your own active work-in-progress — not a de-prioritized PR — and it already carries a ✍️ marker to identify it, so it doesn't need the faded treatment. A merged former-draft still dims via pr.isMerged.

One-line behavioral change; sort order is unchanged (out of scope for what was reported).

Verification

  • npm run typecheck ✅
  • npm run lint ✅
  • npm run build ✅

Fixes #25

🤖 Generated with Claude Code

Drafts were dimmed (opacity-50) like stale/reviewed/merged PRs, which made
users think their own drafts weren't listed at all — they were just faint and
sorted low. A draft is your own active work-in-progress, not a de-prioritized
PR, and it already carries a ✍️ marker. Drop isDraft from the dim condition so
drafts render at full opacity. A merged former-draft still dims via isMerged.

Fixes #25

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 3 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 58ccb0ea-6b43-4a2b-8d87-16e56a09cb71

📥 Commits

Reviewing files that changed from the base of the PR and between f946cf1 and 2dcc6df.

📒 Files selected for processing (1)
  • src/popup/components/PRItem.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dont-dim-draft-prs

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

@facundofarias
facundofarias merged commit 81498d0 into main Jul 1, 2026
3 checks passed
@facundofarias
facundofarias deleted the fix/dont-dim-draft-prs branch July 1, 2026 10:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2dcc6dfd91

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// Drafts are NOT dimmed: a draft is your own active work-in-progress, not a
// de-prioritized PR like stale/reviewed/merged ones. The ✍️ marker already
// flags it, and dimming made users think their drafts weren't listed (#25).
const isDimmed = (pr.hasReviewed && !pr.isAuthor) || isStale || pr.isBot || pr.isMerged;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep stale drafts undimmed

When a draft is older than stalePRDays, isStale is still true, so the row continues to receive opacity-50 even though this change says drafts should not be dimmed. This leaves long-running own draft PRs grayed out in the exact case the fix is trying to avoid; apply the stale dimming only when !pr.isDraft if drafts should always stay visually prominent.

Useful? React with 👍 / 👎.

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.

Show own draft PRs as well

1 participant