-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon request for local history entry #144823
Comments
I also wonder if they should be children of the "Uncommitted Changes" entry? |
I like
I also saw this on GH which feels like a more relevant variation on |
@bpasero do we know what other types of entries will appear here for local history entries? or is it only for saving? |
That is not possible with how the API works: "Uncommitted changes" originates from the Git extension, "Local history" originates from the core workbench.
I like the save icon, because that is the event that triggers the addition of a new local history entry: every save of a file.
The trigger is saving but I was planning to add support to provide a label for the circumstances: for example a file might be saved by the user typing in the editor but also via refactoring. Would be nice to tell apart the one from the other to see a nice history of what actually happened to the file. but I would probably not show a different icon, just a different label. |
Ah ok, I misunderstood. Got it. |
Btw even more interesting: entries from Git are mixed with entries from Local history, so grouping them under "Uncommitted changes" is not really telling the truth. It is 2 distinct sources of timeline entries, you can have 5 Git entries, followed by 5 local history entries, followed by 5 git entries and so on. |
Makes sense. I think the save icon probably is the most truthful then. The file with the nested +/- icons could also work but may be a little bit too close to git concepts like a diff. |
Here is how that looks like with an example of entries mixed: I am happy for feedback on the local history item specifically: given we do not have a good label by default, I ended up putting the date first and then a description in the end. This is pretty much what Eclipse and IntelliJ also tend to do: |
Will go with the save icon. |
From the UX call feedback was that the save icon looks like 1980. And in reality we have more sources of history events than the user hitting save (e.g. refactorings, search and replace). Maybe a more generic icon after all should be used then? Reopening to consider that. //cc @isidorn |
Btw I am not yet sure we can get to the solution where local history entries appear as a tree node with children, at least not in the first iteration. If I can somehow get the "Load more..." thing to behave like I want for my items, it would be very similar, the entries would simply appear at the place you clicked. |
Would they appear below the commits? I didn't quite follow that bit when we were talking through it earlier. |
@daviddossett here is a complete end to end with the label and icon changes including timeline and editor:
I think so, yeah. basically you see a placeholder for a group (1-many) of local history entries anywhere in the timeline where multiple entries of the local history appear. And when you click that item, it would go away and resolve the local history entries, similar how "Load more..." loads more items to the list. That said, agree it is not such a nice model, because you can also not go back. Having a way to expand/collapse might be the way to go, will see. UI wise that is probably the better solution, but need to see it in action first. |
Looks good and modern! Nit: can we use a longer vertical line for the Git icon so they look a bit more connected and easily distinguishable from the new saved icon? |
Yeah I had a similar feeling that now local history and git history entries look quite similar. |
Nevertheless, I really like that both icons look somewhat similar in a way, because that conveys the information that each entry is a change to the file. Just the kind of change is different, or rather: the source 👍 |
Looking good!
I see. I probably wouldn't have expected the behavior before clicking on it. I think a tree would make more sense if it's possible. |
I am exploring to add entries to the "Timeline" view from saving files (= local history). This requires to use an icon to tell apart from SCM entries:
I am happy to use an existing icon or a new one, filing this issue to discuss.
The text was updated successfully, but these errors were encountered: