Skip to content

you too can create a branch - #789

Merged
joshaber merged 13 commits into
masterfrom
create-branch-popover
Jan 19, 2017
Merged

joshaber merged 13 commits into
masterfrom
create-branch-popover

Conversation

@shiftkey

@shiftkey shiftkey commented Jan 12, 2017 •

Copy link
Copy Markdown
Member

Fixes #720

  • layout and transitions from branch popover
  • wireup the thing so that it works
  • when created, dismiss the popover
  • give the styles another pass
  • can dismiss the form without creating branch
  • merge in sentence case changes from Some small polish #779
  • create branch button should be toggle button
  • update menu item to open this dialog

@shiftkey
shiftkey force-pushed the create-branch-popover branch from 1dbbabc to 8c81e49 Compare January 12, 2017 00:42
@shiftkey

Copy link
Copy Markdown
Member Author

@niik @donokuda do we have any sort of UX precedence for being able to dismiss parts of a foldout? I might be wordsing poorly, so let me try and explain visually what's happening...

screen shot 2017-01-12 at 11 45 58 am

I've clicked "Create new branch" and expanded the form. The only options I have here are to complete the form or click outside the foldout to dismiss it. What if I accidentally clicked this, and just want to go back and select a branch? I'd have to go back and re-click on the current branch.

A couple of ways out of this:

  • an X in the top-right to dismiss this - familiar concept to users
  • make the "Create new branch" button into a toggle button - probably not so familiar, feels a bit kludgey

@niik

niik commented Jan 13, 2017

Copy link
Copy Markdown
Member

I've clicked "Create new branch" and expanded the form. The only options I have here are to complete the form or click outside the foldout to dismiss it. What if I accidentally clicked this, and just want to go back and select a branch?

I think hitting Escape while focused inside the form should close the foldout within the foldout, additionally I think we can add a cancel button in the forms themselves to back out.

make the "Create new branch" button into a toggle button

Yeah, I'm digging this, fits well in with our other toggle buttons in the toolbar.

@shiftkey shiftkey mentioned this pull request Jan 17, 2017
1 task done
@shiftkey
shiftkey force-pushed the create-branch-popover branch 2 times, most recently from b2a386d to 168df8b Compare January 17, 2017 21:37
@shiftkey
shiftkey force-pushed the create-branch-popover branch from 168df8b to cea2929 Compare January 18, 2017 00:20
@shiftkey shiftkey changed the title [WIP] you too can create a branch you too can create a branch Jan 18, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

Ready for review 🐑

@joshaber joshaber self-assigned this Jan 18, 2017

@joshaber joshaber 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.

I also noticed that the File > New Branch menu item still opens it as a popup, where it should open the Branches foldout, etc.

Comment thread app/src/ui/branches/index.tsx Outdated
dispatcher={this.props.dispatcher}
repository={this.props.repository}
hideBranchPanel={this.onHideCreateBranch} />
</div>)

This comment was marked as spam.

ref={this.storeListRef}
invalidationProps={this.props}/>
<div id='branch-popover'>
<div>

This comment was marked as spam.

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member Author

I also noticed that the File > New Branch menu item still opens it as a popup, where it should open the Branches foldout, etc.

Good shout. Added to the list.

@joshaber joshaber modified the milestone: M1: The First One Jan 18, 2017
@shiftkey

Copy link
Copy Markdown
Member Author

🍖

@joshaber

Copy link
Copy Markdown
Contributor

👍

@joshaber
joshaber merged commit 9e9ec6b into master Jan 19, 2017
@joshaber
joshaber deleted the create-branch-popover branch January 19, 2017 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants