-
Notifications
You must be signed in to change notification settings - Fork 730
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
Improve polling on the home page to more accurately and quickly display information related to sync statuses #11883
Comments
@marcellamaki Can i give it a shot |
Hi @Technmad! Sure, I'll assign this issue to you :). Thanks for your interest in contributing to Kolibri 👐 |
@AlexVelezLl Thanks for opportunity, I'll start right away |
can I work on this issue, as a GSOC 24' applicant? @AlexVelezLl |
Hi @Technmad! are you still working on this? If @Technmad is no longer working on this, we can assign it to you @Janarthana2992. 👐 |
Hello, since @Technmad did not respond, I will assign this issue to you, @Janarthana2992. Thank you very much for volunteering. Let us know if you have any questions. |
Unassigning as no updates in over 6 months. |
This issue is still open? |
Hi @Jeevansm25! Yes, this issue is still open. I just assigned you another issue so lets wait for now before I assign you this. Once you have a PR for the other issue you can ping us to assign you this one 🤗. |
Thank you for assigning me the other issue 😊. I'll work on it and submit a PR soon. Once it's done, I'll reach out to you for this issue. Thanks again for your guidance and support! 🙌 |
@AlexVelezLl Can you assign this issue to me as @Jeevansm25 is already on other issue. |
Hi @yashhash2! For sure! I will assign this to you. Please let us know if you have any question :) |
Hi @yashhash2, I wanted to mention that Learning Equality will be closed from December 23 to January 5. |
To address the issue of missing resources on lesson and quiz cards, the following approach is proposed: showMissingResource Function: This function will check whether an individual lesson or quiz has a missing_resource flag. If the flag is present, the function will return true, indicating that the warning icon should be displayed for that specific card. Polling for Missing Resources: A polling mechanism will be implemented to check for missing resources every 5 seconds. This polling behavior will update the missing_resource flag for each lesson and quiz, ensuring that the status of resources is regularly refreshed. Conditional Rendering on Cards: A yellow warning icon ( Disabling Card Interaction: If a resource is missing for a particular card, that card will be visually disabled by applying the pointer-events: none CSS style. This will prevent user interaction with the card until the resources are available. This approach will ensure that users receive clear and timely feedback regarding missing or syncing resources on lesson and quiz cards. It will also provide a more intuitive user experience by disabling interaction with cards that lack resources. Let me know if you have any suggestions or feedback on this approach before proceeding with implementation. |
Hi @yashhash2 - overall this sounds like a good summary of the approach needed. Before you get started, I'd like to request that you investigate a little bit more the previous polling implementation on the home page and do some troubleshooting. Then, share a little bit about what you find here and we can decide together a bit more on the specifics of implementation. You can use git history of the files that compose the home page to see if polling is still happening, if it's happening sometimes, or if it's not happening at all. There may be some commits after we implemented it the first time that broke it, or it may just be not polling frequently enough. Building this skill of investigating the underlying causes of bugs in a codebase is a very useful one, and this is a great opportunity to do so. Taking a little bit of extra time early will help you uncover the root cause of the issue and make the best decision about the approach moving forward. After that, we can discuss further what decisions would need to be made for the frontend components, although it seems like you're on the right track. :) Let me know if you have any questions! |
Hi @marcellamaki, I was reviewing the history of components related to the homepage and noticed a change made about a year ago under the commit titled "Rehydrate the home page when syncing has completed to refresh missing resources." This change may be contributing to the issue where the "Resources are missing or not supported" banner persists for too long without disappearing automatically. Potential CauseThe change involved using Reactivity Problems with
|
Observed in connection with several different issues during the 0.16 sync session on Feb 14 2024
Observed behavior
Desired behavior/Acceptance Criteria
Steps to reproduce
Context
0.16.x
The text was updated successfully, but these errors were encountered: