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

Migrate quizzes to updated resource selection #13043

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

AlexVelezLl
Copy link
Member

@AlexVelezLl AlexVelezLl commented Jan 29, 2025

Summary

  • Updates Quiz Resource Selection workflow to use the new UpdatedResourceSelection component, and the same sub pages structure we use in lessons.
  • Remove logic to select folders and max number of questions on random mode.
  • Adds new subpage to manage the selection settings.
  • Move LessonResourceSelection subpages to common to use the same components for lessons and quizzes.
  • Use the useResourceSelection composable in quizzes for data loading, not yet used to store the resource selection.
  • Adapt useResourceSelection to accept filters and annotators for channels, quizzes and bookmarks.

Screencast

Compartir.pantalla.-.2025-01-30.11_54_11.mp4

References

Closes #12994.

Reviewer guidance

  • Play with quizzes resource selection in random mode
  • Does the flow match the figma specs?
  • Test that there are not regression in the whole quiz resource selection flow
  • Test that there are not regression in the lessons resource selection flow, I have modified most of these files, so there are chances that I have accidentally broken something here 😅.

@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Jan 29, 2025
@@ -0,0 +1,431 @@
<template>
Copy link
Member Author

Choose a reason for hiding this comment

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

Even though github shows this as a new file, I managed to keep the blame, as this was renamed and refactored from https://github.com/learningequality/kolibri/pull/13043/files#diff-de1998b52a97bdcd29e801e6fee5e43980b32478bf3afda44537e61aba2b47a8

image

@AlexVelezLl AlexVelezLl marked this pull request as ready for review January 30, 2025 17:03
@marcellamaki
Copy link
Member

@pcenov (cc @radinamatic) this should also be ready for manual QA - Alex has left a few notes above. Thank you!

Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

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

I really like the injection w/ the bookmarks, channels, etc objects w/ the annotator function and such - a very clean way to pass around and handle that logic <3

I left a few comments and read through the code and in general, things are looking great.

I didn't get a chance to manage my resources due to the error I noted below - ping me if you cannot replicate it or when you're able to resolve it - I look forward to playing with this PR 😃

Comment on lines +86 to +90
selectAllRules: {
type: Array,
required: false,
default: () => [],
},
Copy link
Member

Choose a reason for hiding this comment

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

This appears to expect an array of functions, might be good to add a validator to that effect. Could use lodash's isFunction on each item given to make it simple

Copy link
Member

Choose a reason for hiding this comment

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

Also it might be good to note in a comment here that it specifically expects a set of predicate functions that should return bools

},
},
beforeRouteEnter(to, from, next) {
next(vm => {
Copy link
Member

Choose a reason for hiding this comment

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

I'm getting this error, the initial stack trace points to here

image

Copy link
Member

Choose a reason for hiding this comment

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

This prevents me from adding any contents as everything beneath the "[] Choose questions manually" string is blank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update existing "randomized" quiz selection workflow UI with new helper text and components
3 participants