fix: show draft PR status icon#2096
Conversation
janburzinski
commented
May 18, 2026
Greptile SummaryThis PR fixes a missing draft PR status icon by refactoring
Confidence Score: 5/5Safe to merge — a narrowly scoped display fix with no logic or data changes. The change only affects how the status icon is rendered. The No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/lib/components/pr-status-icon.tsx | Core change: accepts a pr object (with status and isDraft) instead of just status; adds a draft-PR branch that renders GitPullRequestDraft when status === 'open' && isDraft. |
| src/renderer/features/projects/components/pr-view/pr-row.tsx | Callsite updated from status={pr.status} to pr={pr} to match the new StatusIcon signature. |
| src/renderer/features/tasks/diff-view/changes-panel/components/pr-entry/pr-entry.tsx | Removed now-unused prStatus local variable; updated StatusIcon callsite to pr={pr}. |
| src/renderer/lib/components/pr-badge.tsx | All three StatusIcon callsites updated from status={pr.status} to pr={pr}; no logic changes. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[StatusIcon receives pr object] --> B{status === 'merged'?}
B -- yes --> C[GitMerge icon 'Merged' tooltip]
B -- no --> D{status === 'closed'?}
D -- yes --> E[GitPullRequestClosed icon 'Closed' tooltip]
D -- no --> F{status === 'open' AND isDraft?}
F -- yes --> G[GitPullRequestDraft icon 'Draft' tooltip]
F -- no --> H[GitPullRequestArrow icon 'Open' tooltip]
Reviews (1): Last reviewed commit: "fix: show draft PR status icon" | Re-trigger Greptile