Skip to content

Enable SCM Views to move to panel #90461

Closed

Description

Tracking item to enable SCM views to move using new infra. It looks like SCM has some hurdles when moving to the panel. it registers views as they come in but the views have relationships kind of like extensions viewlet. wondering if we need a way to say "this container is a unit and everything must move together"

Activity

  1. joaomoreno commented on Feb 12, 2020

    @joaomoreno
    Contributor

    SCM is definitely a strange beast. Its UX baggage (one view controls others' visibilities) makes it hard to reason about when we consider moving views around.

  2. sandy081 commented on Feb 12, 2020

    @sandy081
    Member

    Yeah same boat as in extension viewlet views. I decided not to move extension because they are tightly associated to the search functionality. Same applies for SCM too.

  3. sbatten commented on Feb 12, 2020

    @sbatten
    MemberAuthor

    João Moreno (@joaomoreno) due to the fact that other views can be contributed to the scm viewlet and they could be moved, I think we should explore getting scm views to be movable too.

  4. joaomoreno commented on Feb 28, 2020

    @joaomoreno
    Contributor

    After discussing this with Sandeep Somavarapu (@sandy081) we've come up with an idea:

    1. Currently, the SCM Providers view acts as a father in a paternity (hint!) relationship to all repository views. When rows are selected in its list, views get visible and vice-versa. This is a UX pattern which does not exist anywhere else in the workbench. We suggest to simply drop this, knowingly annoying some users, breaking up that relationship. We can do this since view management is now such a core part of using VS Code, which it wasn't when this pattern was created. Users can still collapse and hide views by using the usual context actions that work across the workbench.
    2. Once that relationship is broken, then adopting moving views in SCM is easy: we just enable it!

    What do you think SteVen Batten (@sbatten)? We could act on step 1 beginning of April for Insiers, once I'm back, and see what the feedback is.

  5. 9 remaining items

  6. sandy081 commented on Apr 6, 2020

    @sandy081
    Member

    I see the point from SteVen Batten (@sbatten). But SCM changes views are workspace scoped views. For example hiding a repository change view does not impact the repository change view in another window. Is not the same expected when the repository changes view is moved? It is also clear from UI as these views are called differently in each workspace?

    IMO logical grouping comes from specific area like SCM and may be as João Moreno (@joaomoreno) mentioned users can move SCM container in that case?

  7. sbatten commented on Apr 9, 2020

    @sbatten
    MemberAuthor

    we do not currently do anything that would allow us to know that moving the SCM view container by dragging the SCM icon from the activity bar is a logical grouping. we could support this, but is this the intention?

    I see the point about scm being workspace specific but we had not yet enabled view movement which is a much more obvious representation of differences between workspaces. i.e. if a user moves a view to the panel and every other view remembers its location, they should expect that scm does the same. i don't think users of single-repo (the most common case) think of each changes view as a different view. also the repository view is unique in that it only applies to workspaces with multiple repos and thus has some workspace context associated with it.

  8. sbatten commented on Apr 27, 2020

    @sbatten
    MemberAuthor

    With view container movement, it would be possible to move the entire SCM container to the panel; however, we need to ensure that all SCM views will behave before allowing it. We should try this in debt week.

  9. johncalvinyoung commented on May 7, 2020

    @johncalvinyoung

    As a user who usually has multiple repos in workspace scope who badly wants to move the SCM view around, I'm alright treating the various change views as one view.

  10. joaomoreno commented on May 29, 2020

    @joaomoreno
    Contributor

    I've attempted to simply enable this, but given the reach onto the view model that the SCM Providers view has, it completely blew up. I need to postpone this for next month, sorry all!

  11. sbatten commented on Jun 26, 2020

    @sbatten
    MemberAuthor
  12. joaomoreno commented on Jun 26, 2020

    @joaomoreno
    Contributor

    Awesome, thanks! Let's close this!

  13. locked and limited conversation to collaborators on Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions