Codelabz
Codelabz copied to clipboard
[ Feat : Select, Edit And Display Tags For Tutorials ]
Description
- Added a new field called
tagswhich is an array and holds the selected tags for specific tutorial. - Changed the Cards to show Chip mapped over tags array.
- Allowing users to edit the tags while writing the tutorial - see video.
- Created two actions
updateTutorialTagsandfetchTutorialTagsto update tags and fetch the selected tags in Modal. - So, when the modal opens, and the already
selected tagsare shown, selected and then can change the array - allowing more flexibility for users while creating tutorials. - Currently, the tagOptions is fixed and limited just to 6-7 tags, I am thinking whether it would be a good idea to give users flexibility to create their own tags or we can create, some limited tagOptions at the time of
organisation creation
Related Issue
Fixes #1209
Motivation and Context
There is no option to select tags.
How Has This Been Tested?
Locally on my machine
Video:
Here, in this video I selected the tags at the time of tutorial creation and editing those tags array in tutorial edit mode.
https://github.com/scorelab/Codelabz/assets/123815256/55e860de-6ba5-412b-950f-f84ff0291089
Then here the tags are updated in Cards as well.
https://github.com/scorelab/Codelabz/assets/123815256/ee64c913-e255-4efd-a4c9-c4cd42fc1867
Types of changes
- [x] New feature (non-breaking change which adds functionality)
Checklist:
- [x] My code follows the code style of this project.
- [x] All new and existing tests passed.