| Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added a project: Lexicographical data. Herald added a project: Wikidata. |
As an editor, I want to edit forms without getting API errors. If a form must have at least one representation, then the UI should not let me try to save a form with no representations and then show me an API error.
Problem/Example:
Currently, the UI lets you remove any form representation, including the last one.
F23797384: Screenshot_2018-07-16 L123.png
When you save the form, you get an API error.
F23797390: Screenshot_2018-07-16 L123(1).png
Screenshots/mockups:
Instead, the “remove” button should be grayed out on the last representation:
F23797396: Screenshot_2018-07-16 L1(3).png
BDD
GIVEN I am on a lexeme page
AND I edit a form with one representation
WHEN I try to remove the representation
THEN the “remove” button is grayed out.
GIVEN I am on a lexeme page
AND I edit a form with one representation
WHEN I add a second representation
THEN I can remove either of the two existing representations.
Acceptance criteria:
- It is no longer possible to remove the last representation.
- When there is more than one representation, any one of them can be removed, including the first or last one (no single representation is “pinned” to be the one that must remain).
Open questions:
@Lydia_Pintscher does this sound okay? It’s slightly different from the behavior specified for sense glosses in T198035: Sense should have at least one Gloss, where you wrote that the save button should be grayed out.
Cc: Lucas_Werkmeister_WMDE, Lydia_Pintscher, Mringgaard, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
