-
Notifications
You must be signed in to change notification settings - Fork 7
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
Loading indicator for line and x-range layers #1017
Conversation
45fbd84
to
61ff409
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
Hold up – not necessarily an issue with this PR but seeing that we're fetching resources and external resources every time the simulation progress updates which causes a flash of the resource loading message. Can see this on Bananation, not sure about other models. Will investigate. |
799feef
to
f3087ae
Compare
Made some fixes to how we load resources and spans in the plan page to avoid duplicative/unnecessary fetches. Also now aborting stale external resource, resource, and span requests. Ready for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it out a bit locally and changes look good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably also not related to this PR, but just exposed by it, I'm seeing the loading
text show up if I drag a directive but haven't run a simulation yet. The text does eventually go away once everything is downloaded again. I'll leave it up to your discretion if it's something that needs to be addressed. Other than that, I think it's good to go!
Can't reproduce this yet, can you show me once you're back? |
…resource download
…tor. Delay loading indicator by 1 second to prevent flash of content for quick loading resources.
…dates and abort stale requests.
f3087ae
to
bb3b1a5
Compare
* Display a loading indicator when a line or x-range layer is awaiting resource download * Consider external resource loading when presenting row loading indicator. Delay loading indicator by 1 second to prevent flash of content for quick loading resources. * Fix redundant resource and span fetches during simulation progress updates and abort stale requests.
* Display a loading indicator when a line or x-range layer is awaiting resource download * Consider external resource loading when presenting row loading indicator. Delay loading indicator by 1 second to prevent flash of content for quick loading resources. * Fix redundant resource and span fetches during simulation progress updates and abort stale requests.
Display a loading indicator on a row when the row has at least one layer and resources are loading. Abort stale resource requests and avoid unnecessary refetching of resources.