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

Quiz Creation Select Resources - Implement Keyword search. #11786

Closed
4 tasks
Tracked by #11741
AllanOXDi opened this issue Jan 25, 2024 · 0 comments · Fixed by #11887
Closed
4 tasks
Tracked by #11741

Quiz Creation Select Resources - Implement Keyword search. #11786

AllanOXDi opened this issue Jan 25, 2024 · 0 comments · Fixed by #11887
Assignees

Comments

@AllanOXDi
Copy link
Member

AllanOXDi commented Jan 25, 2024

Overview

We need a search functionality on the Resource selection to allow users to search resources by keyword in the topic tree as included in the design. If in doubt, reach out to @tomiwaoLE for clarity.

Guidance

What we need to add is that the search should be integrated into the router similarly to how we've differentiated between Bookmarks & normal topic navigation (basically, we'll want a /search route in addition to what we've added)
The search was handled previously in Vuex, largely by way of this handler -- we will not be using handlers anymore, so the same API call & logic there should be migrated to a new module useFetchTree which gives an example of how to handle the "fetching more"

Using LessonSearchBox we can leverage the this.$route.params.searchTerm in the setup function in ResourceSelection. The the only pain is going to be migrating the API calls from the old Vuex handler, and to make sure that contentList is set to show the results.

Acceptance criteria

  • 1. Migrate the old from Vuex handler to the useFetchTree module to handle data fetching.
  • 2. Add a /search route to the router, similar to the bookmarks route. You can confirm this is working by testing against the API rather than within a component. Even using something like console logging to see the object is returned would work.)
  • 3a. Utilize the existing LessonSearchBox component within ResourceSelection and leverage the this.$route.params.searchTerm in the setup function to access search terms. (Now we are implementing actually into the frontend)
  • 3b. When a user exit the search and should route back to ResourceSelctionPage
@AllanOXDi AllanOXDi changed the title (Resource Selection) Reinstantiate the previously working Keyword search. This will require additional routes to handle the separate search navigation and may need a bit of design clarification w/ @tomiwaoLE Resource Selection - Implement Keyword search. Jan 25, 2024
@AllanOXDi AllanOXDi changed the title Resource Selection - Implement Keyword search. Quiz Creation Select Resources - Implement Keyword search. Jan 25, 2024
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

Successfully merging a pull request may close this issue.

2 participants