-
Notifications
You must be signed in to change notification settings - Fork 153
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
[#746, #1351] Dashboard: show a spinner when the view is changing #1372
[#746, #1351] Dashboard: show a spinner when the view is changing #1372
Conversation
The data can be found here. Since your PR does not edit the file structure. You can just use the data directly. So you may need to clone this An even better choice is that, we have a repo for generating reposense using travis or github actions. By modifying the The second part can leave as a bonus part, that you submit a PR for our publish RepoSense so it can support |
Meanwhile, do remember to follow the development guide in DG. Including the PR title and description. |
Perhaps there should be an article in the DG about how to test frontend without repeatedly generating the data as I am still not entirely sure of the instructions. |
This is indeed in our plan. But currently, we have to achieve it using a workaround. You may just terminate the A more standard way is to use |
add to default slot
fix problem mentioned by travis
Fix formatting as mentioned by travis
Add missing comma
@damithc Prof, can you help to check the UI? I feel OK, but we may add some text for it, like: |
Meanwhile, there is latency time when |
Mostly fine 👍 Shall we use the same spinner used at the very start? No reason to use two different ones. Yes, we can show something like |
@gerhean As pointed out by the Prof, let's use the new loading spinner for both resource loading and data processing. Meanwhile, please add some text below the spinner to notify the user of the different loading stages. Finally, please look into the loading of |
also updated look of loading overlay
I am having a problem in which v-authorship is being created twice and destroyed once on startup, which causes |
Force tabs to be updated before userUpdated is set to true.
Any suggestions for modifying this key: I want to change it as it is causing the whole component to rerender multiple times (as the loading screen requires some data to be updated asynchronously). This is causing the EDIT I changed the key generation to only use specific object keys, not sure if that would break anything in the future. |
use camel case
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.
@gerhean Good observation of the issue! Actually, there is an attempt to fix it but fails. You may refer to #967 and #1167 for more details. Your proposed implementation is quite nice and can fix it as a workaround. However, I believe the ideal solution is to make use of the re-rendering of Vue directly like what is done in #967 but fix the bug caused by it.
@gerhean Do request a review from me once the PR is finished. Good Work done also, I have recommended you to the Prof.
@jamessspanggg Can you check the implementation also to make sure that the attributes listed are the key components to re-render the sidebar?
Done
Thanks for telling me. Fixed. |
@Tejas2805, your review is needed. |
That is indeed what will happen in the current implementation. Changing the implementation will be done in a separate PR. |
Memory usage on Edge:
Did we do something since Dec 4 to degrade performance? |
Don't seem to have done anything that may downgrade the performance. @gerhean Can you help to check this issue? |
I checked again now. Seems the memory usage is similar for both cases. Goes to 1Gb at the start but comes down to 600Mb after some time. So, should be fine. OK to go ahead. |
@Tejas2805 Can you review again? |
The issue was closed so thought that it had been fixed. Just checked it was closed by PR #1065 |
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.
LGTM!
Fixes #1351, #746
Probably fixed, but unsure how to test as need large amount of data for the loading to actually be seen.
Edit:
Before:
Screen frozen and unresponsive.
After:
Example of loading spinner (will ensure link works until PR is merged): https://gerhean.github.io/tp-dashboard/
setTimeout() is used to force this.filtered to update only after browser rerender (loading screen is displayed).
Something to note is that the animated loading indicator uses css to be animated, so it spins even if the website is actually not working. It is basically just eye candy.
Proposed commit message: