Skip to content

let users work with tags in the app #257

Closed

Description

@shiftkey

We currently display tags in TNG alongside remote branches and local branches:

For reference, this is the current behaviour:

There's likely some UX things we can do differently this time around to make these a proper first-class feature:

  • differentiate between branches and tags visually
  • help users land in the pit of success when checking out a tag (which puts them in a detached HEAD state) by crafting a workflow to ensure they can switch from that state to a new branch quickly and painlessly when they want to make changes

I'm sure others have their own bright ideas around this.

cc @donokuda

Activity

  1. donokuda commented on Aug 15, 2016

    @donokuda
    Contributor

    differentiate between branches and tags visually

    We could do something similar to dotcom and separate out branches and tags using something like a segmented control:

    image

    help users land in the pit of success when checking out a tag (which puts them in a detached HEAD state) by crafting a workflow to ensure they can switch from that state to a new branch quickly and painlessly when they want to make changes

    💯 When do developers find it important to create a new branch from a tag (as opposed to a branch?) What happens when you start committing from a detached state and how do you normally get back on track after you started committing?

    I'm trying to think of ways where someone could "fail" and how to prevent them from getting there, or help them get out of that state with their work intact ideally.

  2. shiftkey commented on Aug 15, 2016

    @shiftkey
    MemberAuthor

    When do developers find it important to create a new branch from a tag (as opposed to a branch?)

    One common scenario is "investigating and fix a bug in a certain release" - while they might be able to get close to the right source using a branch, it's much quicker to checkout the tag and start from there.

    What happens when you start committing from a detached state and how do you normally get back on track after you started committing?

    Doing this on the command line starts with a sweet and terrifying warning message:

    C:\Users\shiftkey\Documents\GitHub\octokit.net [release]> git checkout v0.20.0
    Note: checking out 'v0.20.0'.
    
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
    
      git checkout -b <new-branch-name>
    
    HEAD is now at 2990cbf... one last typo
    C:\Users\shiftkey\Documents\GitHub\octokit.net [(v0.20.0)]>
    

    And as Git suggests, you're now free to do whatever you want - however new commits are essentially orphaned, because there's no ref to easily track them once you switch away to a different branch or tag:

    C:\Users\shiftkey\Documents\GitHub\octokit.net [(v0.20.0) +0 ~0 -1 !]> git rm README.md
    rm 'README.md'
    C:\Users\shiftkey\Documents\GitHub\octokit.net [(v0.20.0) +0 ~0 -1 ~]> git commit -m "ha ha business"
    [detached HEAD 8cd6153] ha ha business
     1 file changed, 99 deletions(-)
     delete mode 100644 README.md
    C:\Users\shiftkey\Documents\GitHub\octokit.net [(8cd6153...)]>
    

    At any point the user could create a branch with git checkout -b {name} and they're back on track, but I'd rather encourage a flow where they create the branch as early as possible (because branches are freeeeee) - that point where they're making changes to the working directory seems to be the easiest opportunity...

    I'm trying to think of ways where someone could "fail" and how to prevent them from getting there, or help them get out of that state with their work intact ideally.

    I think most of the traps here would be due to detached HEAD and how Git is noisy with it's warnings on the command line, but it won't stop you from doing something silly to yourself.

  3. shiftkey commented on Aug 15, 2016

    @shiftkey
    MemberAuthor

    We could do something similar to dotcom and separate out branches and tags using something like a segmented control:

    I like this idea ✨

  4. changed the title [-]Make Tags Great Again[/-] [+]let users work with tags in the app[/+] on Apr 27, 2017
  5. joshaber commented on Jun 29, 2017

    @joshaber
    Contributor

    Thanks for the suggestion!

    This idea is interesting for the future, but this is beyond the scope of our current roadmap.

    I'm going to add the future-proposal label to this issue and close it out, so that we don't get overwhelmed with our backlog! We'll revisit these as part of our next planning session.

  6. billygriffin commented on Dec 19, 2018

    @billygriffin
    Contributor

    Since this is captured in the open issue #4829, I'm going to remove future proposal here. There's a lot of good info here though so we definitely want to refer back to this when we start looking at tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions