Repository navigation
warn before rebase if operation requires a force push - #7242
Conversation
|
I know we've been iterating on the verbiage here throughout the design process, but wanted to offer alternate verbiage since it's been awhile since I've looked at it. Since this is a pre-emptive warning and everything currently exists locally, I think maybe the force pushing and the rewriting history on the remote should be reversed in the second sentence. A possible alternative:
I don't love my proposed language. But overall, my goals here are to 1. make it more human-readable, and 2. help folks understand why it might be a problem and why we're warning them. |
|
@billygriffin yep, I'm totally 👍 to iterating on the messaging here. I'll pull in your suggestion and see what we can come up with while we're working on this. |
|
@billygriffin I've updated the PR description with the latest copy - let me know if you have any additional ideas or suggestions. |
Fixed in 6b851fba11749b16cf8d8cb3eec0a1a9ddad5d40 - turns out we had an eager refactor in #7209 that meant we were always trying to cleanup the rebase flow, even when it was in a state that no conflicts were occurring. |
6b851fb to
bd5d6ac
Compare
Fixed in 78bc057e9e46d73f1c44712aaab1dd309444d9ec - not sure what I meant to put in there but clearly it wasn't working. |
Co-Authored-By: Billy Griffin <[email protected]>
Co-Authored-By: Neha Batra <[email protected]> Co-Authored-By: Billy Griffin <[email protected]>
19ae9fb to
14160c2
Compare
billygriffin
left a comment
There was a problem hiding this comment.
Copy looks great now, thanks! Approving just that portion. 😄
|
Thanks. Both issues fixed with the latest commits 👍 One clarifying question though: from a UX perspective if I check the "dont show me again" option but decide to hit the |
|
Re: @tierninho's comment above
I think my expectation is that if you click "Cancel" that the checkbox state for the warning would not be saved because you haven't really affirmatively committed to anything yet. Separately, this dialog appears before you begin a rebase, right? Should we consider having that button say "Begin rebase" instead of "Continue rebase"? |
My thought was: "I don't want to see this message and I understand the risks" is a separate from "I don't want to proceed force pushing this one instance". No strong feelings on this as it could go either way. 🤷♂️
Hard to say, as the user has already selected the menu option "Rebase current branch...", chosen a branch, and clicked "Rebase X onto X" button. I have the same stance as above. We can use "Beginuing" button 😆 |
Just to reiterate - this is only updated when you "continue" - cancelling will not trigger updating this: desktop/app/src/ui/rebase/warn-force-push-dialog.tsx Lines 89 to 92 in 14160c2
We don't say "Begin" or "Start" when choosing the branch: I still prefer changing this to "Begin rebase" because the corresponding action is not "Abort rebase" (which suggests the rebase is underway) but "Cancel" which suggests it's easier to bail out now. |
|
Thanks @shiftkey! I think we're aligned on both of those things then. I made the suggestion to change "Continue" to "Begin," but wasn't sure if any of the function names should change for clarity. |
Co-Authored-By: shiftkey <[email protected]>
|
Added |
|
Refreshed the screenshot in the PR description with the latest changes |


Overview
Closes #6963
Description
Branchshape rather thanstringas this contains the relevant tracking branchBranchrather thanstringRelease notes
Notes: no-notes