Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata Lexicographical data, Wikidata, 
Special:NewLexeme revival (Special:NewLexeme revival - sprint 8).

TASK DESCRIPTION
  Use the `error` prop of the Wikit `TextInput` component to show an inline 
error if the lemma length exceeds a certain maximum length. Do this using the 
`input` event, i.e. as soon as the lemma becomes too long (rather than only on 
submit).
  
  The length needs to be passed from `WikibaseLexeme.git` into the Vue app. 
Currently, the limit of 1000 (Unicode code points) is hard-coded in 
`WikibaseLexeme.entitytypes.repo.php`; making it configurable is beyond the 
scope of this task, but we might want to at least extract a PHP constant on 
some related class, so that we can refer to it in the ResourceLoader module 
definition without copying the value directly.
  
  A preliminary message will be added at T305854#7937644 
<https://phabricator.wikimedia.org/T305854#7937644>, which should only be added 
for the dev entry point initially (i.e. in `DevMessagesRepository.ts`); the 
final message, to be translated as well, will be decided afterwards.
  
  To count Unicode code points (rather than UTF-16 code units) of a string in 
JavaScript, we can use `[ ...string ].length`.

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

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

To: Lucas_Werkmeister_WMDE
Cc: Lydia_Pintscher, Erdinc_Ciftci_WMDE, karapayneWMDE, ItamarWMDE, noarave, 
Michael, Lucas_Werkmeister_WMDE, Astuthiodit_1, Invadibot, maantietaja, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, 
LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, Wikidata-bugs, aude, 
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to