We currently have two different widgets for editing a list of categories, with different but largely overlapping functionalities. We should only have one.
ve.ui.MWCategoryWidget is used by VisualEditor, in the Page options → Categories dialog. mw.widgets.CategorySelector is used by UploadWizard on the "Describe" step, and in the file upload dialog (mw.ForeignStructuredUpload.BookletLayout, which is used by VisualEditor and WikiEditor).
mw.widgets.CategorySelector | ve.ui.MWCategoryWidget | |
---|---|---|
Screenshot | ||
Widgets used | CapsuleMultiSelectWidget | ButtonWidgets+TextInputWidget+Popup |
API | action=opensearch | action=query/allcategories |
Can set sort key for category | ||
Can reorder categories | (requested T108490: Let you drag items in a CapsuleMultiselectWidget to re-order them) | |
Can edit (not just delete) | (requested T67518: VisualEditor: Allow editing of a category link (not just add/remove)) | |
Can view category page | (requested T56656: VisualEditor: Category editing tool should preview or at least link to the input categories) | |
Cross-wiki | (hacky) |