-
Found as apart of regression test of 1.9.3 release. Fixing it directly on mainline (wolsonsc).
In src/pages/pr/PrDetailPage.tsx, add merge.reset() in the onError handler to clear the mutation state:
onError: (error: unknown): void => { if (error instanceof Error) { setMergeError(error.message); } else { setMergeError("Merge failed"); } merge.reset(); // Clear mutation state to allow retry } -
| Type |
Bug
|
| Priority |
Minor
|
| Assignee | |
| Version |
1.9.1
|
| Sprints |
n/a
|
| Customer |
n/a
|
Issue Votes (0)
Summary
After a merge fails, the Merge button remains disabled until the user navigates away from the PR and returns. This prevents immediate retry after fixing the underlying issue (e.g., updating credentials).
Steps to Reproduce
Expected Behavior
Actual Behavior
Workaround
Navigate away from the PR (e.g., go to PR list) and return to the PR detail page. The Merge button will be enabled again.
Root Cause
React mutation state (
merge.isPendingor error state) is not properly reset after a failed merge attempt, leaving the button in a disabled state.Proposed Fix
In
src/pages/pr/PrDetailPage.tsx, addmerge.reset()in theonErrorhandler to clear the mutation state:Severity
Low - Minor UX annoyance with simple workaround
Priority
P3 - Fix in next minor release (1.9.4 or later)
Environment
src/pages/pr/PrDetailPage.tsxRelated Issues