-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Feature Request]: Implement recommended lessons in home tab (Learner Dashboard Redesign) #21488
Comments
@amyyeung17 I think the temporary solution is actually what we want to do -- we only want to recommend "curated" lessons here, and not community lessons. Given the above, could you please update this issue to clarify what further updates are needed? You mention "Will need to verify" in the second bullet point but I'm a bit confused about whether there's actually a bug here or not. If there's a bug, would it be possible to provide the repro steps? Thanks! |
@seanlip To be honest, this should have been include in #21486 as well. These are more potential areas of improvements rather than issues. I tried examining the backend to see if the completed nodes are organized when added finished out of order. Something like if a user finishes 2, 1, 3 would it be automatically be sorted to 1, 2, 3? The old learner dashboard does not consider these cases and returns the next in-progress node as getCompletedNodeTitles().length + 1, regardless of what node was actually completed. Another example, out of [1, 2, 3, 4]:
I've handled this by sorting it in the frontend. However, it is fairly complicated. First, I had to loop through the story nodes and find the actual position of each completed node, since the real ids aren't representative of where they are (ex. completed ['kh', 'cd', 'pl'] out of ['op', 'kh, 'cd', 'ad', 'pl']). I would return the next in-progress and recommendation nodes based on the positions. There are a lot of edge cases to consider. Knowing that 'pl' is the most recent of the completed nodes, I loop to see if index = 0 is available. Now that I've marked 'ol' (index = 0) as in-progress, I have to loop again to find the next available node to recommend which is 'ad'. While I'm fairly certain the completed nodes are added out of order, I think double-checking the backend would be a good idea. Improvements that could be made in these scenarios
Ultimately, all of the code can coincide. This is more about future plans and code maintainability. |
Is your feature request related to a problem? Please describe.
This is part of #18384. Currently, there is no official recommendation system for the home tab in the new learner dashboard. It is temporarily implemented to suggest the next available classroom lessons only. This can not apply to explorations and collections.
Describe the solution (or solutions) you'd like
Describe alternatives you've considered and rejected
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: