Michael created this task.
Michael added projects: Wikidata Query Builder, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Analogous to ItemValueInput and StringValueInput, we need a 
QuantityValueInput componet.
  
  - needs to adhere to the interface of ValueInput
    [ ] take a `value` prop
    [ ] emit a `input` event when the value changes
    [ ] take a `disabled` prop
    [ ] take a `error` prop
  
  - implement Lookup-behavior for unit lookup part
    - when the user types text into the unit lookup part of the query input -> 
search for item
    - present those items as menu items
    - if the user selects an item -> emit `input` event
    - react to scroll to load more results, etc.
    - => it needs to have all the functionality of EntityLookup 
<https://github.com/wmde/query-builder/blob/master/src/components/EntityLookup.vue>
 and ItemValueLookup 
<https://github.com/wmde/query-builder/blob/master/src/components/ItemValueLookup.vue>
      - consider synergies instead of duplicating that logic
  
  NOTE: validation of the number is //not// part of this task but happens in 
the store and is going to be implemented in FIXME
  
  **open questions:**
  
  - the error prop will apply for now only to the number input. We still need 
to figure out when/how it should apply to the unit input

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

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

To: Michael
Cc: Aklapper, Michael, maantietaja, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
abian, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to