Repository navigation
Add a merge button to the branch selector - #5977
Conversation
|
@bruncun, the build is failing due to linter errors. Run |
|
@iAmWillShepherd Oops, sorry. 😅 Done. |
iAmWillShepherd
left a comment
There was a problem hiding this comment.
I know this is still a work in progress, but I figured I'd jump in early to make sure you were on the right track. I've included some guidance, let me know if it makes sense.
|
@desktop/design Would you mind taking a quick look at @tierninho's thoughts/questions above? My thoughts:
I definitely don't think we should remove it because I think it's important to convey an expectation that this is where they can merge from (like if they use multiple repos). It's not greyed out in the menu bar at present, so whichever direction we go, I think we should do the same thing in both places. I think greying it out in both places seems reasonable, as there's really nothing you can do in the modal at that point.
I agree that it looks a bit odd in the case when there are no branches or very few, but again I think the consistency of location might be a good idea to maintain, and I also don't think it floating would look very good unless we decided to change the visual representation of the entire dropdown to only drop vertically by the amount of space needed (I don't think we should consider that here). |
👍 Agree with this. Maybe we leave it in case people are curious and want to get a sense of what clicking on it would do? Disabling it might be frustrating especially if it's not clear why it's disabled. I don't feel strongly though, would also be cool with disabling it
👍 Also agree here. |
|
@iAmWillShepherd I refactored the button into BranchesContainer as requested and also wired it to show the merge dialog. I believe this now works for the happy path. |
|
Based on @ampinsk's feedback above, let's go ahead and leave those things as is from @tierninho's questions. |
@billygriffin does that mean the PR is fine as is? Is it worth create issues to capture y'alls thoughts so we may evaluate them in the future? I'm happy to tackle those changes in a separate PR. @bruncun it looks to me like this may be ready for review. Am I correct? |
|
UI tested ✅, and no issues found. |
@iAmWillShepherd It means the things that @tierninho brought up we're going to leave as is for the moment, and if they present problems in the wild we'll re-evaluate. No issues needed at the moment, but thank you! I haven't looked at the rest of the PR, as I assume the review will ensure that it's in line with the designs from the issue and verify that the flow works as expected. |
|
@iAmWillShepherd I believe that’s correct. 🎉 |
ampinsk
left a comment
There was a problem hiding this comment.
Looks good to me design wise!
|
@iAmWillShepherd Updated. 👍 |
|
Hi @bruncun, thanks again for this great work and being so open to feedback and collaborative! 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? |
|
@billygriffin The pleasure was mine. I don't mind at all being mentioned. 👍 |

Fixes #5929
Morning! This is an early PR for #5929 as requested by @iAmWillShepherd. So far it visually mocks out the new merge button - the following still needs to be done:
My plan is to complete the above in order and just get it working before reviewing for potential refactors. Please let me know if I missed anything or whether I should go about this feature differently somehow.