hack4impact-uiuc / 7000-languages

Helping Indigenous communities around the world teach, learn and sustain their languages
GNU General Public License v3.0
12 stars 2 forks source link

Create a Manage Vocab Items page #233

Closed ashayp22 closed 2 years ago

ashayp22 commented 2 years ago

Goals

Screen Shot 2022-10-13 at 12 27 54 AM Screen Shot 2022-10-13 at 12 27 02 AM

Create a ManageVocab page that has the same functionality as ManageLessons and ManageUnits:

  1. Selecting and unselecting vocab items
  2. Deleting vocab items
  3. Reordering vocab items

Steps

Client:

  1. Duplicate the functionality from the ManageLessons and ManageUnits pages. You'll have to create a new ManageVocab page.
  2. Add the necessary functionality to LessonHome to only show selected vocab items.

API:

  1. We'll have to add a selected field to the VocabItem Mongoose Schema in api/src/models/language.js. This selected field will be used on the ManageVocab page. Also make sure to update the vocab endpoints with this new change if necessary.

Extra There will have to be a good amount of testing done with this issue. Make sure to consider all edge cases and mess around with selecting/unselected vocab items and seeing if the changes are reflected on the LessonHome page.