Migrate CategoryOptions dropdown to KMultiSelect - #6092
Migrate CategoryOptions dropdown to KMultiSelect#6092Prashant-thakur77 wants to merge 3 commits into
Conversation
|
👋 Hi @Prashant-thakur77, thanks for contributing! For the review process to begin, please verify that the following is satisfied:
Also check that issue requirements are satisfied & you ran Pull requests that don't follow the guidelines will be closed. Reviewer assignment can take up to 2 weeks. |
|
@LianaHarris360 I’ve created the PR for the hierarchical use of KMultiSelect in CategoryOptions |
| }, | ||
| $trs: { | ||
| noCategoryFoundText: 'Category not found', | ||
| clearText: 'Clear all', |
There was a problem hiding this comment.
Most of these strings are general and will be reused for the KMultiSelect, perhaps the strings that we know will be reused should be moved to contentcuration/contentcuration/frontend/shared/strings/commonStrings.js?
There was a problem hiding this comment.
Good idea, done, the general ones are in commonStrings.js now:)
4416411 to
11094ae
Compare
Summary
Migrates the
CategoryOptionsdropdown from Vuetify'sVAutocompleteto KDSKMultiSelect, as part of moving Studio off Vuetify. This is the Category field in a resource's Edit details panel.The expanded mode used by the bulk edit modal is intentionally left on
VAutocompleteit needs an inline mode and externally controlled indeterminate values from KMultiSelect, which don't exist yet.Partof: learningequality/kolibri-design-system#1259
Notable points:
onKMultiSelectInputconverts KMultiSelect's flat array back to{ categoryId: [nodeIds] }and preserves partially applied categories. Partials can't occur today (single node only): this is forward-compatibility for the expanded-mode migration.References
Screencast.From.2026-08-17.02-11-04.mp4
Expanded Mode:
Screencast.From.2026-08-17.02-20-34.mp4
Reviewer guidance
All tests are covered and there are no regressions.
AI usage
I used Claude to generate this discription and done changes as needed