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

Create a minimal version composable for managing resource selection panel state #12731

Open
1 task
Tracked by #11888
marcellamaki opened this issue Oct 22, 2024 · 0 comments
Open
1 task
Tracked by #11888
Assignees

Comments

@marcellamaki
Copy link
Member

marcellamaki commented Oct 22, 2024

Overview

As we update the selection and state management for lessons and quizzes in the side panel for coach resource discovery, we will be starting with the lessons, as they have a simpler state management (no sections, no question ids) as compared to quizzes.

The first step is to review the ResourceSelection component, and to create a minimal version of a composable, that does selection/state management for the resource selection panel state. This composable doesn't need to be in the top levels /composables folder, because it won't be widely shared beyond selection/state management in coach. The purpose of creating a composable is to keep the code modularized and manageable -- it's essentially just to create some helper methods that could be tweaked further for quizzes or shared for both lessons and quizzes.

Start by reviewing the code in ResourceSelection and useQuizCreation, and run develop to understand how the code is connected to the UI/UX within quizzes specifically.

Acceptance criteria

  • Create a useResourceSelection() composable (or if you have a better name suggestion, propose it), that takes the core parts of selection and state management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants