Githawk: Change repo branch

Created on 13 Sep 2018  Â·  9Comments  Â·  Source: GitHawkApp/GitHawk

I know this is requested elsewhere but just listing out how the feature should work:

  • New option in repo ... menu “Change branch”

    • Append active branch “:branch” to alert title, eg GitHawkApp/GitHawk:branch

  • Selecting menu item shows centered ContextMenu (ex Labels)

    • Load all available branches

    • Check mark on selected

    • Only one selected at a time (see Milestones, code might be bad?)

  • On dismiss, having changed selection, reload Overview and Code VCs

    • (_stretch_) If not at root in Code, restore to active file with new branch selected

Sent with GitHawk

🆕 feature request ✨ good first issue

Most helpful comment

Look good?

contextmenuswitchbranch

All 9 comments

Will give this a go

2062 for ref

@rnystrom or anyone else that has thoughts -
1) Do you envision users selecting a row and the contextMenu dismissing immediately, or selecting a row and then confirming with an "Ok" or "Cancel" button at the bottom of the contextMenu?

2) Should we get all the repo branches as a field in the first GQL query (ie the SearchRepo query), or make a separate request for them when the user asks to switch branches?

For 1 I'd say no confirmation needed but not necessarily dismiss right away. Maybe have the button at the top right say "dismiss" or "Close". So the user can pick 1 branch and then pick another if they made a mistake or something.

@huddie what would the button at the top right look like? I'm envisioning this as similar to a tableView embedded in an Action Sheet, with Cancel and Select/OK buttons at the bottom.

@BrianLitwin you should select, check mark the new branch cell and deselect the prev, then need to hit Done to apply. Similar to selecting Milestones on an issue.

Sent with GitHawk

Look good?

contextmenuswitchbranch

@BrianLitwin amazing!! Love it.

Sent with GitHawk

Ya that’s perfect!!!! @BrianLitwin super cool!!!!!

Sent with GitHawk

@Huddie I see what you mean by top right button now! Haha

Sent with GitHawk

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rnystrom picture rnystrom  Â·  3Comments

Iron-Ham picture Iron-Ham  Â·  3Comments

rnystrom picture rnystrom  Â·  3Comments

rnystrom picture rnystrom  Â·  3Comments

rnystrom picture rnystrom  Â·  3Comments