Description
In Function Editor, the input/output types are selected by the ZObjectSelector with type=Z4 and returnType=Z4. This means that a lookup returns not only references to types, but also function that return types. This allows direct selection of Typed Lists.
In Default View, the type selection is set to only type=Z4, which means that in order to select Typed List, we need to expand the field, select Function Call, and then search for the Function Typed List.
With the recent changes on ZObjectSelector, we can now use this feature in Default View the same way that type selection works on Function Editor.
Desired behavior/Acceptance criteria
- Searching for "typed" in https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateObject would allow to directly select "typed list", "typed pair" or "typed map"
- Selecting "typed list" would create a typed list component with the correct type set to "F(x) Typed list ( Select type )"
- The type "F(x) Typed list ( Select type )" can then be expanded to select the type of the list items
Devices and Design (URLs or screenshots)
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist