Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/popup/components/PRItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ export default function PRItem({ pr, stalePRDays, pinned, onMerged, focused, sta
}, [pr.id, pr.headSha, pr.unresolvedCommentCount]);
const timeAgo = getTimeAgo(pr.updatedAt);
const isStale = stalePRDays > 0 && (Date.now() - new Date(pr.updatedAt).getTime()) > stalePRDays * 86400000;
const isDimmed = (pr.hasReviewed && !pr.isAuthor) || isStale || pr.isBot || pr.isMerged || pr.isDraft;
// 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 👍 / 👎.

const isMergeable = !pr.isDraft && !pr.isMerged && !pr.hasConflicts && pr.ciStatus !== 'failed';

async function handleMerge() {
Expand Down
Loading