Page MenuHomePhabricator

Allow editing of Capsules in CapsuleMultiSelectWidget by clicking on them
Closed, ResolvedPublic

Description

This is pretty useful when the widget allows you to add arbitrary values. If you make a typo you have to remove the capsule and re-type it.

Event Timeline

Prtksxna raised the priority of this task from to Needs Triage.
Prtksxna updated the task description. (Show Details)
Prtksxna added a project: OOUI.
Prtksxna added a subscriber: Prtksxna.

T121201 is related. Perhaps pressing Backspace should enter this editing mode instead of just deleting a capsule, and to actually delete one you'd have to remove all of its text?

matmarex added a subscriber: Herzi.Pinki.

'improved' feature. Previously (e.g. in September 2015) selection of categories in the UW worked differently (There was this 'add another category'-button which might have been considered not to be state-of-art.)

The old implementation allowed to change the category-name in the course of entering all the data. Now once a category is entered, you cannot change the name any more, but you have to delete it and re-enter it completely. This is because once the name is entered, it is converted to a link and you cannot move the cursor into it, you can open the category instead. For my part changing / copy-changing category names is the feature used more often compared to opening the category (Which I know by heart in most cases).

Furthermore the category selection is (and was) far beyond the elegance of HotCat. The UW does not allow to navigate the category tree. Which is a pity especially in combination with the changed usability above. In former times it was possible to change e.g. 'Cultural heritage monuments in Austria' to 'Cultural heritage monuments in somewhere else' by just replacing the Austria part. Now you have to start anew with typing once the category name is selected / entered.

  • Selecting categories should allow to navigate the category tree the same way HotCat does. (here category names are left bound!)
    • this should include the possibility to change already selected categories (like with HotCat).

There is a tradeoff with respect to newbies, which I cannot put in the right place. Navigation as in HotCat is a bit more complicated and may be too complicated for newbies or silver surfers. It is on you to make the design right.

T121201 is related. Perhaps pressing Backspace should enter this editing mode instead of just deleting a capsule, and to actually delete one you'd have to remove all of its text?

See T119045: Make CapsuleMultiSelectWidget keyboard accessible. It doesn't address the backspace throttling problem though.
I do like the idea of entering edit when you hit backspace, one doesn't usually want to remove the category they just added. They can also use OS specific keyboard shortcuts (/ + Backspace), to remove the entire category if that is what they really wanted to do.

Oh, that'd be neat. On PC, I think Ctrl+Backspace is a common shortcut to
delete a whole word, we could use that.

Change 268076 had a related patch set uploaded (by Prtksxna):
CapsuleWidgets: Edit on click and remove on Ctrl Backspace

https://gerrit.wikimedia.org/r/268076

Change 268076 merged by jenkins-bot:
CapsuleWidgets: Edit on click and remove on Ctrl Backspace

https://gerrit.wikimedia.org/r/268076

Prtksxna edited projects, added OOjs-UI-next-release; removed Patch-For-Review.
Prtksxna set Security to None.