You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
In an effort to address #606, #645, #854 and related UX issues around staging/unstaging/discarding, I'd like to start a quick UX discussion first to guide development.
As part of this, the plan is to keep the file diff view open rather than closing it abruptly as is currently the case. Here are the UX interactions I’ve thought through and I’d be curious to hear what others think 💭, especially @simurai. It’s quite likely that I’ve missed something that’s worth considering
Changed list view UX
after hitting enter to stage file, select next file
if diff view is open, display next selected file
if diff view is closed, display no file diff
when there is no other file in list, go to next list and display diff
Note: this automatic shift from one type of changes (staged vs unstaged) to another might be unexpected to users, or confusing if they don’t notice that there has been a switch of change type
might be able to address this by styling the diff view headers to make the change type more obvious
Diff view UX
after staging all hunks
keep empty diff view open, offer buttons and keyboard shortcuts to
go to the next diff in the list of changed files
go to staged/unstaged version
Questions
when git panel is closed, should we close file diff? I think not. because it could be that the user just wants more screen space to view the diff so they close the panel