Repository navigation
always be showing the branch information - #786
Conversation
…born/detached HEAD
|
We have #720 which moves creating branch into the popover. This means showing the popover helps users switch back to a valid branch, but users also might be interested in creating a new branch from the detached HEAD. @joshaber rather than go deep here, should I write up a separate issue about these scenarios and what we want to support here in terms of features? |
| description='Current branch' | ||
| onDropdownStateChanged={this.onBranchDropdownStateChanged} | ||
| dropdownContentRenderer={this.renderBranchFoldout} | ||
| dropdownState='closed' /> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Ready for review |
Yeah, I think you're right to not include it. I'm not sure that we should be using the alert icon when we're detached, we should probably look at incorporating some warning next to the commit box instead. |
Any thoughts on using the commit icon instead? |
👍 tracking this in #788 |
|
@donokuda here's what it looks like with the commit icon. I like it. |
|
yaas. Looks good! ✨ Plus I'm also hoping that'll help explain what it means to be in a detached HEAD state if you're new to Git (assuming they're familiar with the Octicon tho.) |
Yeah, I think that's better. Not completely sold on it but let's roll with it and see how it feels. |
|
I was gonna review this but I have to run, someone else feel free to pick it up or I'll try getting to it tomorrow |
joshaber
left a comment
There was a problem hiding this comment.
Tip kinds is a great distinction 👍
| Remote, | ||
| } | ||
|
|
||
| export enum BranchState { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🐒 |




The current branch selector only appears when you have a valid branch. This PR adds support for detached HEAD and unborn repository scenarios.
Fixes #762
[ ] clarify branch selector behaviour for both scenarioscurrentBranchusages and ensure they work with a valid tip