ItamarWMDE added subscribers: ItamarWMDE, noarave, Michael, 
Lucas_Werkmeister_WMDE.
ItamarWMDE added a comment.


  **Task Breakdown Notes**:
  
  - The copy included in the table below is preliminary copy only. 
@Erdinc_Ciftci_WMDE will collaborate with engineer who implements these 
messages on the copy aspect.
  - @ItamarWMDE will copy over copy from T298153 
<https://phabricator.wikimedia.org/T298153>
  - Field errors will generally show by each field after submit, unless 
otherwise specified.
  - For the empty field errors we assume that fields are considered empty after 
performing a trim on their value
  
  | Field            | Error        | Event  | Message |
  | ---------------- | ------------ | ------ | ------- |
  | Lemma            | Empty        | submit | ""      |
  | Lemma            | Over X Chars | input  | ""      |
  | Lexeme Language  | Empty        | submit | ""      |
  | Spelling Variant | Empty        | submit | ""      |
  | Lexical Category | Empty        | submit | ""      |
  |
  
  **Potential plan of action**
  
  - For all the cases below: Ensure all messages are passed down to the Vue 
application from MediaWiki via ResourceLoader (Dependent on finalized copy) 
[Task TBD @noarave].
  
  - For Lemma length [Task TBD @Lucas_Werkmeister_WMDE]:
    1. Pass down the config variable or otherwise set value where the 
acceptable lemma length is determined into the Vue application
    2. Implement the error messaging logic on `input` event in the `LemmaInput` 
component
  
  - For empty cases [Task TBD @Michael]:
    1. Model the errors in the store somehow
    2. On `submit` evaluate and show the errors by their relevant fields
    3. On `input` clear the relevant error per field emitting the event

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

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

To: Erdinc_Ciftci_WMDE, ItamarWMDE
Cc: Lucas_Werkmeister_WMDE, Michael, noarave, ItamarWMDE, karapayneWMDE, 
Erdinc_Ciftci_WMDE, Lydia_Pintscher, 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 -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to