Skip to content
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

display tree node loading on slow connections #7249

Merged
merged 2 commits into from
Mar 2, 2020

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Mar 1, 2020

What it does

  • fix Animating background for tree nodes #3450
    • mark node as busy after 800ms during refreshing
    • new api TreeModel.markAsBusy(node, ms, cancellationToken) to allow clients indicate that some task is performed for the given node (makes visul effect currently only for composite nodes)
  • fix Show progress in Explorer #5959
    • report navigator busy node progress in explorer view container
    • new progress location explorer for the view container

Copied icons were already were approved in previous CQs.

loading

How to test

  • emulate slow connection on the system level, for instance with Network Line Conditioner or Charles2 proxy
  • try to expand some nodes in different trees
    • you should see loading indicator in any tree (i.e. try in npm scripts for the plugin system)
    • you should see blueish bar in the explorer view container for the navigator tree

Review checklist

Reminder for reviewers

@akosyakov akosyakov added navigator issues related to the navigator/explorer tree issues related to the tree (ex: tree widget) labels Mar 1, 2020
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@akosyakov akosyakov force-pushed the akosyakov/animating-background-3450 branch from 5c3b62d to 3b5ff2c Compare March 1, 2020 10:00
@akosyakov akosyakov requested a review from jbicker March 1, 2020 10:09
@akosyakov akosyakov added the progress issues related to the progress functionality label Mar 1, 2020
@akosyakov akosyakov force-pushed the akosyakov/animating-background-3450 branch from 3b5ff2c to d748b70 Compare March 1, 2020 11:04
@AlexTugarev
Copy link
Contributor

@akosyakov just for completeness, could you please state which CQ you refer to?

@akosyakov
Copy link
Member Author

@AlexTugarev #6993 (comment)

padding-right: calc(var(--theia-ui-padding)*2/3);
padding-left: calc(var(--theia-ui-padding)/2);
padding-right: calc(var(--theia-ui-padding)/2);
min-width: var(--theia-icon-size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried, and it works as advertised. Thanks Anton!

Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
@akosyakov akosyakov force-pushed the akosyakov/animating-background-3450 branch from d748b70 to 2f8f418 Compare March 2, 2020 09:57
@akosyakov akosyakov merged commit e48b9b5 into master Mar 2, 2020
@akosyakov akosyakov deleted the akosyakov/animating-background-3450 branch March 2, 2020 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
navigator issues related to the navigator/explorer progress issues related to the progress functionality tree issues related to the tree (ex: tree widget)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show progress in Explorer Animating background for tree nodes
2 participants