After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702639 - Do something else with the sidebar
Do something else with the sidebar
Status: RESOLVED OBSOLETE
Product: gitg
Classification: Applications
Component: gui
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-19 10:59 UTC by Allan Day
Modified: 2018-05-22 13:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allan Day 2013-06-19 10:59:17 UTC
The current sidebar doesn't make good use of the screen space. You don't use branches or tags all that often, and you don't need them displayed while you are viewing a particular branch/tag. The sidebar eats space that could be used to show the commit history.

This would be the ideal place to use a popover - you could have a visible control in the toolbar for the branch/tag, which could be opened when you want to switch. I say popover rather than combobox, because you really need a way to easily scroll and/or search - there will sometimes be a lot of branches and tags.

In the absence of a popover widget for GTK+, it might make sense to simply have the sidebar pop out on demand: by default it would be hidden and you would press a button and to display it. Then if you switch branch/tag it would hide again.
Comment 1 Paolo Borelli 2013-06-19 12:05:12 UTC
(In reply to comment #0)
> The current sidebar doesn't make good use of the screen space. You don't use
> branches or tags all that often, and you don't need them displayed while you
> are viewing a particular branch/tag.

I beg to disagree there :-)

I keep a lot of local branches and switch betweek them all the time, e.g. to compare things, try different solutions, check regressions etc.

The old gitg had a combobox and that was one of the parts I really didn't like and was cumbersome to use
Comment 2 Sindhu S 2013-06-20 04:45:18 UTC
IMO, the sidebar would be fully utilized if one could switch branches by clicking on the branch names. Currently, we can view commits of various branches by clicking on the branch names. This dual behaviour could perhaps be given as setting in the 'Preferences' dialog tabs?

+1 on the option to hide the sidebar with a button though I think it should be open by default.

Marking bug as NEW and enhancement.
Comment 3 Allan Day 2013-06-20 10:50:05 UTC
(In reply to comment #1)
...
> I beg to disagree there :-)
> 
> I keep a lot of local branches and switch betweek them all the time, e.g. to
> compare things, try different solutions, check regressions etc.
...

Right, there might be some situations when you want to explore a repository and will be switching between branches fairly frequently. However, I think we can also say that in the majority of cases, people will be focused on a particular branch for periods of time.

Maybe it would be possible to have the autohide behaviour that I described with the option to pin the sidebar so it is always open, or to have a configuration option to make it always visible.
Comment 4 Paolo Borelli 2013-06-20 12:26:17 UTC
(In reply to comment #3)..
> Right, there might be some situations when you want to explore a repository and
> will be switching between branches fairly frequently. However, I think we can
> also say that in the majority of cases, people will be focused on a particular
> branch for periods of time.
> 

I am not sure that's the "majority of cases": I definitely advocate to have one (local) branch per feature, so switching and comparing branches is a frequent operation and most importantly it is one of the operation where I would really enjoy using a GUI.


That said, I agree with having the sidebar collapsible. gnome-maps has a similar pattern.

I think I would prefer just an explicit toggle to show/hide (persisted in a setting) instead of autohide and pin.
Comment 5 jessevdk@gmail.com 2015-08-08 16:28:21 UTC

*** This bug has been marked as a duplicate of bug 702600 ***
Comment 6 jessevdk@gmail.com 2015-08-08 16:29:02 UTC
Not the same kind of collapsing, my bad.
Comment 7 GNOME Infrastructure Team 2018-05-22 13:07:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gitg/issues/22.