Skip to content

feat(picker): patch PR draft state locally before revalidation#426

Merged
barrettruth merged 1 commit intomainfrom
feat/417-pr-draft-local-state
Apr 26, 2026
Merged

feat(picker): patch PR draft state locally before revalidation#426
barrettruth merged 1 commit intomainfrom
feat/417-pr-draft-local-state

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

Toggling a PR between draft and ready still reopened the picker, so draft-dependent actions and labels stayed stale until a full refetch completed.

Solution

Flip the shared cached pr_state.is_draft value on successful draft toggles, rerender the live PR picker in place, and then revalidate the current list. Add focused picker specs for both draft and ready transitions.

Keep draft and ready availability in sync with the shared PR state cache so toggling draft status rerenders the live picker in place before the authoritative refresh lands.
@barrettruth barrettruth merged commit 80542b8 into main Apr 26, 2026
3 checks passed
@barrettruth barrettruth deleted the feat/417-pr-draft-local-state branch April 26, 2026 22:52
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.

1 participant