Skip to content

clear merge conflicts banner after there are no more conflicted files - #6428

Merged
shiftkey merged 1 commit into
masterfrom
dismiss-banner-normal-flow
Dec 18, 2018
Merged

shiftkey merged 1 commit into
masterfrom
dismiss-banner-normal-flow

Conversation

@outofambit

Copy link
Copy Markdown
Contributor

Overview

Currently, the Merge Conflicts Banner is only hidden after going through the Committing Conflicted Files Warning. this PR adds the command to clear the banner after there are no more conflicted files left to be committed.

@outofambit outofambit added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 15, 2018
@outofambit outofambit added this to the 1.5.1 milestone Dec 15, 2018
@tierninho

tierninho commented Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

(Update: this still exists even when testing against your PR)

I believe there is another use case for this but feel free to let me know if this belongs in another PR.

If you dismiss the merge conflict modal, then right-click to discard all changes (includes conflicted files), then the merge banner remains present. Secondly, the user can click "view conflicts" and decide to Abort or Commit, which do nothing at this point.

After discarding all changes:
screen shot 2018-12-17 at 10 17 28 am

Clicking "view conflicts":
screen shot 2018-12-17 at 10 17 44 am

@billygriffin

Copy link
Copy Markdown
Contributor

I'd like to hold off on merging this until we have a chance to discuss a bit further.

I think we decided to do this intentionally to allow people to reopen and complete the merge after seeing their nice list of checked off previously conflicted files. It's potentially a bit misleading in the banner since the verbiage is "Resolve conflicts and commit..." and "View conflicts" but I don't think we want to force them to commit through the changes/diff pane. If anything I'd say if we could detect the state and update the banner's verbiage, that might be a good solution, but I'm uncertain. Open to others' thoughts.

@billygriffin billygriffin modified the milestones: 1.5.1, 1.6.0 Dec 18, 2018
@shiftkey shiftkey modified the milestones: 1.6.0, 1.5.1 Dec 18, 2018
@shiftkey

Copy link
Copy Markdown
Member

Tentatively pulling this into 1.5.1 as hiding the banner when there are no more conflicted files is A Good Thing To Do™. Are we tracking this feedback somewhere? #6428 (comment)

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shiftkey shiftkey self-assigned this Dec 18, 2018
@shiftkey
shiftkey merged commit 22fbc3c into master Dec 18, 2018
@shiftkey
shiftkey deleted the dismiss-banner-normal-flow branch December 18, 2018 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants