Skip to content

Allow Branches button to take up full middle of toolbar because get truncated pretty early #4569

@jglovier

Description

@jglovier

Description

The team I working with has a convention of using branch names that follow this format: [gh-username]/[project-name]/[feature-or-fix-title], which can make for pretty long branch names.

This is especially convenient when scanning a list of branches for your current feature branch, such as in this branches tab of the GitHub.com repository with a search param for our team or project name.

The Desktop experience of working with these longer branches is a little less helpful, however – . specifically when glancing to see which branch I'm currently on, something I do frequently when I have several different feature branches in progress:

image

The truncation kicks in pretty early, so given our convention, I typically don't even get to see my feature name part of the branch.

Suggestion: a floated Fetch origin button

The solution I'd like to propose is a floated (visual description, not technical implementation advice 😉) Fetch origin button that allows for the branch button (and menu dropdown) to occupy the entire full width of the toolbar. E.g.:

image

This would:

  • allow the full branch name to be displayed for most branches, even longer ones
  • put the Fetch button (which I would assume is the button most frequently clicked in the navbar) in a very familiar primary call to action location
  • open up some extra breathing room in the dropdown to display full branch names there too

There may be some glaring downsides that I'm not considering, too. What might those be?

Not sure how many developers or teams of developers on GH follow a similar pattern of branch naming that produces relatively longer names. Do we have any existing data around average branch name length that might help inform us here?

cc @donokuda @nerdneha

Version

  • GitHub Desktop: Version 1.1.1
  • Operating system: MacOS 10.13.4

Steps to Reproduce

  1. Create a branch with a very long name, for example myusername/myproject/my-new-feature-1
  2. Observe that truncation in the branch button cuts off the branch name after a relatively few amount of characters.

Expected Behavior

I would expect to be able to see the entire branch name.

Actual Behavior

I cannot see the full branch name.

Additional Information

Not applicable.

Logs

Not applicable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-input-neededIssues that require design input from the core team before the work can be startedenhancementnot-plannedNot in the team's roadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions