-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Animating background for tree nodes #3450
Comments
I like an idea of displaying loading, especially when a connection is lost. Also if loading is failed it would be nice to show a reason, maybe as a child error node. Not sure about the animated background. It could be also a child node with a spinning loading indicator which either resolves to real children or to an error node. //cc @svenefftinge |
Displaying resource resolution is not specific to trees. There can be different resources opened, not necessary from the navigator. In VS Code one can report progress as the blueish bar running at the top of the main area, maybe we can make use of something like that for Theia as well. |
What shall we do when node has no children? Adding and then removing temporary node may look KO. |
Another issue. We have to show something when tree is opening root nodes? |
I would like to try a version with animated background as a cheapest option. And then decide how good it looks. |
I am not sure what is triggering it in VS Code. I see it from time to time. It looks like here, only in the main area: microsoft/vscode#50730 (comment)
With the progress bar, we can run it till there is no content. |
@vitaliy-guliy @akosyakov I really like the |
As we discussed earlier
Something like VS Code does |
@vitaliy-guliy yes exactly |
@vince-fugnitto please discuss it with @svenefftinge first, it was not done on the purpose to have more space and avoid duplicate title (we have a title already in the sidebar). For |
@akosyakov thanks and I agree that we save some space but I was also thinking in the case that we display icons rather than titles in the sidebar (#2867). Perhaps in such a case we'd want to display widget titles within the widget themselves for easier identification. |
I reopened #716 for the vertical tab bar icons. Let's discuss there |
Regarding this issue, I'd prefer to look into a general way of reporting progress. Also because we need to support the VS Code Api in our plug-in system I'd say it makes sense to go with a similar approach. I.e. show progress on top of a widget. |
We can support the VS Code API and do whatever we want with Theia UI.
I think having some animation in the tree is enough for now. By the way, I don't see that VS Code API describes the way to display a progress inside view. |
So we are in agreement that it would make sense to implement it similarly to VS Code?
|
@akosyakov That looks like #5535. At the time I was holding off as other progress work was being done and I never got back to it. Our use-case was slightly different, as we wanted the progress indicator to be active when certain context actions are unavailable on a tree node, eg a tree node representing a project that is being built. If you have this in hand then I will close the PR, otherwise I will resurrect it and ensure it covers this issue. |
@westbury ok, thanks for reminding, i need quite urgent for the customer, so planing to work myself. I will have a look at your PR though. |
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
Now expanding of tree nodes works asynchronously and it is not clear how long it needs to wait until the children appear. It's looks strange when the user click on tree node, arrow on this node has been changed on opened but children appears with some delaying.
Let's see how expanding of tree nodes works with tree-sample-plugin provides ftp-explorer widget.
In this example the opening time depends on the speed of the network and may take some time.
The proposal is to add animation to the background of the tree node when it's fetching the children.
We did something similar for our Che IDE. Let's see how it looks
The same video https://youtu.be/RYAopXBC0HU
The styles for the tree node may look like styles for Che IDE
https://github.com/eclipse/che/blob/master/ide/che-core-ide-ui/src/main/resources/org/eclipse/che/ide/ui/smartTree/TreeStyles.css#L144
The text was updated successfully, but these errors were encountered: