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| {F4582307} | {F4582298} |
|Widgets used|`CapsuleMultieSelectWidget`|`ButtonWidgets`+`TextInputWidget`+`Popup`|
|API|action=opensearch|action=query/allcategories|
|Can set sort key for category|{icon times color=red}|{icon check color=green}|
|Can reorder categories|{icon times color=red} (requested {T108490})|{icon check color=green}|
|Can edit (not just delete)|{icon check color=green}|{icon times color=red}|
|Can view category page|{icon check color=green}|{icon times color=red} (requested {T56656})|
|Cross-wiki|{icon bomb color=green, spin} (hacky)|{icon times color=red}|