Skip to content

successful merge banner - #6011

Merged
shiftkey merged 5 commits into
masterfrom
merge-success-banner
Oct 30, 2018
Merged

shiftkey merged 5 commits into
masterfrom
merge-success-banner

Conversation

@outofambit

@outofambit outofambit commented Oct 26, 2018 •

Copy link
Copy Markdown
Contributor

Overview

Closes #5851

Adds a banner that appears when the user completes a merge.

screenshot:

success banner

in action:

great success

Description

  • This PR will need to be updated once Conflicted merge resolution flow #5809 is merged to make sure we cover all ways of merging
  • This required more reworking of the git-related parts of the codebase than i would have liked, so if there alternate approaches, I'm all ears
  • This PR doesn't attempt to make a banner management system as we only have two banners currently. (As we add more we'll have to cross that bridge.)

Release notes

Notes: Displays merge success banner

@outofambit outofambit added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Oct 26, 2018
@outofambit outofambit added this to the 1.5.0 milestone Oct 26, 2018
@outofambit
outofambit requested a review from a team October 26, 2018 23:23
@agisilaos

Copy link
Copy Markdown
Member

@outofambit Since this is a UI change can you provide a screenshot in the description about how the banner is gonna look like? It would be easier to see the final result without going back and forth in the issue or run the app locally.

@outofambit

Copy link
Copy Markdown
Contributor Author

@agisilaos good point! added now :)

Comment thread app/src/lib/app-state.ts Outdated
currentBranch: string
theirBranch: string
}
| false

This comment was marked as spam.

Comment thread app/src/lib/stores/git-store.ts Outdated

/** Merge the named branch into the current branch. */
public merge(branch: string): Promise<void> {
public merge(branch: string): Promise<void | true> {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey 🍏

@shiftkey shiftkey self-assigned this Oct 29, 2018

@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 - will let this sit for the day to see if anyone else has feedback to provide

@outofambit

Copy link
Copy Markdown
Contributor Author

thank you @shiftkey!

@tierninho

Copy link
Copy Markdown
Contributor

Tested and LGTM 👍

@shiftkey

Copy link
Copy Markdown
Member

Ignore that pending merge status, it totally went green :shipit:

@shiftkey
shiftkey merged commit 2a41995 into master Oct 30, 2018
@shiftkey
shiftkey deleted the merge-success-banner branch October 30, 2018 12:56
@tierninho

Copy link
Copy Markdown
Contributor

Spotted this on 1.5.0-beta2 after selecting Branch > Update from <branch_name>

screen shot 2018-10-30 at 1 25 56 pm

Truncation needed 😄

@billygriffin

Copy link
Copy Markdown
Contributor

It doesn't seem like this shows the success banner after you've completed a merge successfully after resolving conflicts. @donokuda and I both tested it on beta3, and it showed up after a normal merge, but not after a conflicted merge was completed successfully.

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.

5 participants