Pablo-WMDE added a comment.

@Lydia_Pintscher

Lexeme lemmas and form representations use two rather different UX paradigms. This was the case already before this ticket was started but as we are now also dealing with validation and error messages we have to use one approach or the other.

  • Lemmas offers you the save button to click while the form is invalid (e.g. a lemma w/o a term value) - validation is done on the server-side and only presented after receiving the answer (tooltip on the save button).
  • Form representations disables (or at least tries to) the save button while the form is invalid - validation is done (partially) on the client and shown before the mistake is submitted.

The latter works well with the new approach of highlighting the invalid form field and indicating the problem already while the user is editing.
Applying the approach taken for representations to the lemmas would cause an inconsistency in how lemma (or header) errors are communicated to the user.

How do we proceed? There will be an inconsistency but we can transition away from it, the question is in which direction. In case of redundant lemma languages...

  • keep the lemma widget's submit button enabled and show the error only when the user clicks? (accept the inconsistency between lemma and representation widget)
  • disable the lemma widget's submit button? (accept the inconsistency inside lemma widget)

Remarks:

  • Technically the first option would be easier
  • Even when transitioning towards the "show errors immediately" generally we'd still need to maintain the capability to display post-submit errors because the frontend can only facilitate plausibility checks, backend errors can always still happen

TASK DETAIL
https://phabricator.wikimedia.org/T193636

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pablo-WMDE
Cc: gerritbot, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to