Skip to content

Improve merge dialog by making merge direction clearer - #5957

Merged
outofambit merged 10 commits into
desktop:masterfrom
JQuinnie:branch-merge-dialogs
Oct 26, 2018
Merged

outofambit merged 10 commits into
desktop:masterfrom
JQuinnie:branch-merge-dialogs

Conversation

@JQuinnie

@JQuinnie JQuinnie commented Oct 20, 2018 •

Copy link
Copy Markdown
Contributor

This PR fixes #5930 with context below;

The directional merge flow is not as obvious as it could be. It should be perfectly clear which branch you're merging into which branch.

Two changes were made to make it more obvious as to which branch (selected branch) is getting merged into what (current branch);

  1. Updated the merge text dialog to include selected branch merge into current branch.
  2. Moved the merge text dialog above the Merge button.

Before the Change
issue5930-before-merge
issue5930-before-conflict

After the Change
issue5930-after-merge
issue5930-after-conflict

NOTES:

@j-f1

j-f1 commented Oct 21, 2018

Copy link
Copy Markdown
Contributor

How does the UI look if you switch the line with the Octicon and the text describing the conflicts?

@iAmWillShepherd iAmWillShepherd changed the title Add branch merge dialog for directional merge flow Improve merge dialog by making merge direction clearer Oct 22, 2018
@iAmWillShepherd

Copy link
Copy Markdown
Contributor

Also along the lines of styling, I noticed that there is quite a bit of space at the top of the dialog/button combo... found in class dialog-footer with a padding of 20px.

@ampinsk how do you feel about reducing the amount of padding? At the moment, it's set to 10px.

dialog#merge {
.merge-info {
margin-top: var(--spacing-half);
}
.merge-status-component {
margin-top: var(--spacing);
}
}

@outofambit outofambit added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Oct 22, 2018
@JQuinnie

JQuinnie commented Oct 22, 2018 •

Copy link
Copy Markdown
Contributor Author

How does the UI look if you switch the line with the Octicon and the text describing the conflicts?

@j-f1 see below for mock-up of switching Octicon with text (this is not incorporated into the PR yet, will add if popular demand);

image

It actually looks better than the original 😃

@outofambit outofambit added this to the 1.5.0 milestone Oct 23, 2018
@ampinsk

ampinsk commented Oct 23, 2018

Copy link
Copy Markdown
Contributor

Hey @JQuinnie thanks so much for working on this! I'd love to get this looking like the mockup in the original issue:

mockup

That would mean:

  1. The icon indicator is above the message
  2. We reduce the padding on top
  3. We remove the horizontal rule around the octicons

Are you comfortable making those changes? If not, we can handle the styling changes in a separate PR and cc you so you can see how for next time! 😄

@JQuinnie

JQuinnie commented Oct 23, 2018 •

Copy link
Copy Markdown
Contributor Author

Are you comfortable making those changes? If not, we can handle the styling changes in a separate PR and cc you so you can see how for next time! 😄

Hi @ampinsk thanks for the input! I'd love to help fix these changes and ping you if I have issues? Is it okay if I made them in this PR?

@ampinsk

ampinsk commented Oct 23, 2018

Copy link
Copy Markdown
Contributor

@JQuinnie Of course, totally fine to work on them in this PR! Ping us if you run into anything 😄

@JQuinnie

JQuinnie commented Oct 24, 2018 •

Copy link
Copy Markdown
Contributor Author

Latest Updates

I have included the additional items below, please see screen captures;

  1. Remove padding on top of the merge dialog text
  2. Remove horizontal rule around octicon

See first comment for final output.

I am ready for review, thanks!

@ampinsk ampinsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is looking great! Let me know if you have any questions about the comments I left 😄

Comment thread app/src/ui/merge-branch/merge.tsx Resolved
Comment thread app/styles/ui/_merge-status.scss Resolved

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks so much for looking at this @JQuinnie! This is looking good to me and as soon as we address @ampinsk's comments I think we'll be good to merge. ⛷ let me know if you have any questions!

Comment thread app/src/ui/merge-branch/merge.tsx Resolved
@JQuinnie

Copy link
Copy Markdown
Contributor Author

@ampinsk @outofambit as I was looking at the styling code again for the changes on naming conventions and such, I noticed that an earlier commit I made (6e4b507) took away the padding at branch selection screen;
screen shot 2018-10-24 at 8 23 56 pm

So I made an update commit (8edfb22) to address this issue, and now it looks like below;
screen shot 2018-10-24 at 8 48 21 pm

Hope that is acceptable, whew!

outofambit
outofambit previously approved these changes Oct 25, 2018

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks so much for making these changes @JQuinnie! looks great!

@outofambit outofambit self-assigned this Oct 25, 2018
@outofambit
outofambit requested a review from ampinsk October 25, 2018 15:22
@tierninho

Copy link
Copy Markdown
Contributor

UI for this has been tested and all looks good ✅

  • Branch order in the merge button
  • branch order in the merge status messaging
  • correct merge status icon
  • selecting a new branch in the list updates above tests

Comment thread app/styles/ui/_merge-status.scss Resolved
Comment thread app/styles/ui/_merge-status.scss Resolved

@ampinsk ampinsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great! Thanks so much for picking this up, @JQuinnie! ✨

@billygriffin billygriffin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So exciting to see this @JQuinnie, thanks so much for the great work and collaboration! ❤️ 🎉

@outofambit
outofambit merged commit 7dbf9b0 into desktop:master Oct 26, 2018
@iAmWillShepherd iAmWillShepherd mentioned this pull request Oct 31, 2018
2 tasks done
@billygriffin

Copy link
Copy Markdown
Contributor

@JQuinnie Hi! For our 1.5 release one of the things we want to highlight is the contributions from our community and how grateful we are for them. Would you mind if we use your GitHub handle and reference your participation in helping make this release possible in our blog post announcing the release?

@JQuinnie

JQuinnie commented Nov 3, 2018 via email

Copy link
Copy Markdown
Contributor Author

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.

7 participants