Repository navigation
feat: show draft vs ready-for-review state on PR badges - #305
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Claude finished @hugocasa's task in 3m 20s —— View job Code review —
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
webmux | b92f92f | Commit Preview URL Branch Preview URL |
Aug 10 2026, 05:20 PM |
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
@claude please re-review — commit b92f92f addresses the three items from your first pass:
Focus on whether the stale-refresh merge is actually correct and whether the new tests pin the right behavior. |
|
Claude finished @hugocasa's task in 1m 32s —— View job Re-review — commit b92f92f
All three items from the first pass are addressed correctly. 1. Stale-refresh merge — correct
2.
|
|
Claude finished @hugocasa's task in 3m 15s —— View job Code review —
|
Summary
PR chips in the dashboard were colored only by CI status, so there was no way to tell a draft PR from one that is ready for review. This threads GitHub's
isDraftflag through the stack and surfaces it in the UI.The chip's outer border/background stays CI-driven — that color is the fastest read on whether a PR is green — and the draft signal is layered into the label segment instead.
Changes
PrEntrygainsisDraft: booleanin the domain model and the api-contract zod schemafetchAllPrsrequestsisDraftfromgh pr list --json;parsePrResponsemaps itreadWorktreePrsaccepts PR files written before this change and defaults them toisDraft: false, so stored merged/closed PRs don't disappear from the UI on upgradeisDraftPr()helper;prStateTextClass/prBadgeClassnow take the PR rather than just its statePrStatusGrouprenders a mutedDRAFTtag next to the PR number, with an "Open draft PR" tooltipPrBadge(sidebar) colors draft PRs grey; ready-for-review stays green, merged purple, closed redNo CLI change:
webmux listdoesn't render PR state, it only usesprStatesfor sort ordering.Screenshots
Captured from this branch running against real data —
windmill-labs/windmill#10705is genuinely a draft,windmilldocs#1675is ready for review.PR chip — draft vs ready for review. The
DRAFTtag sits in the label segment; the shell border stays CI-driven (green in both).Sidebar badge — draft is muted grey, ready for review stays green (merged stays purple).
Test plan
bun run test— full suite passes (537 backend / 205 bin / 145 frontend / 4 contract)bun run --cwd backend checkandbun run --cwd frontend checkare cleanDRAFTin muted text, sidebar badge is greyGenerated with Claude Code