Page MenuHomePhabricator

Default View: Allow multi-mode lookups in the type selector of Default View
Open, MediumPublic

Description

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

Event Timeline

Jdforrester-WMF added a project: Design.
Jdforrester-WMF subscribed.

Denny suggests unifying the experience to use the same experience as we already have in the Function editor in the general context too.

Amin says this may need design stress-testing in how it'll be used in different context/mental models.