Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the prominence of Branch Protection #8795

Closed
nycdotnet opened this issue Dec 13, 2019 · 3 comments · Fixed by #8954
Closed

Reduce the prominence of Branch Protection #8795

nycdotnet opened this issue Dec 13, 2019 · 3 comments · Fixed by #8954
Assignees

Comments

@nycdotnet
Copy link

nycdotnet commented Dec 13, 2019

Describe the feature or problem you’d like to solve

The new protected branch warning is a pretty cool feature, but I have a lot of repos that I just look at (other teams' microservices). It's a bit stressful/distracting to see a warning all the time when I have not made any changes, nor do I intend to. I just want it to be easy to get latest master all the time.

image

Proposed solution

Only show the protected branch warning if there are any tracked changes. Alternately, only show the protected branch warning if the user has entered text in the commit summary or description boxes (though I know this would defeat the purpose with the automatic commit message). Alternately, hide the yellow caution icon when there are zero tracked changes, but leave the other functionality the same; in this scenario, the yellow caution icon would unhide if there were tracked changes.

Additional context

Thanks for such an awesome app!!

@tierninho
Copy link
Contributor

@nycdotnet Thanks for the thoughtful write-up. We will mull this over internally and circle back. Given the holiday period, this may take some time.

Glad you are enjoying Desktop!

@tierninho tierninho changed the title Branch Protection stress Reduce the prominence of Branch Protection Dec 13, 2019
@tierninho tierninho added the design-input-needed Issues that require design input from the core team before the work can be started label Dec 17, 2019
@kuychaco kuychaco added this to Backlog (unprioritized) in Desktop 2.3 release via automation Dec 18, 2019
@billygriffin
Copy link
Contributor

Thanks for the idea @nycdotnet! We discussed this as a team and we're comfortable with the suggested implementation to only show the warning when there are changes present (regardless of whether the changed files are checked or unchecked). I'm hoping we can get this into our upcoming release in a couple weeks, but depends on bandwidth. Really appreciate your feedback! ✨

@billygriffin billygriffin removed the design-input-needed Issues that require design input from the core team before the work can be started label Jan 14, 2020
@billygriffin billygriffin moved this from Backlog (unprioritized) to Prioritized backlog (ordered) in Desktop 2.3 release Jan 14, 2020
@kuychaco kuychaco moved this from Prioritized backlog (ordered) to In Progress Issues in Desktop 2.3 release Jan 15, 2020
@kuychaco kuychaco self-assigned this Jan 15, 2020
@billygriffin
Copy link
Contributor

I also wanted to point out that for whomever picks this up, we think the same logic should apply to the warning for being on a repository where you don't have write access and therefore won't be able to push. That warning should only show up when you have changes present.

Additionally, for both of these cases (branch protection and no write access warnings), if you go ahead and make a commit in spite of the warning, we think it's probably fine for the warning to go away until you have further uncommitted changes at which point it would return.

Happy to clarify further if there are any questions or if this is unclear.

cc: @kuychaco and @outofambit

Desktop 2.3 release automation moved this from In Progress Issues to Done! Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants
@nycdotnet @billygriffin @kuychaco @tierninho and others