Page MenuHomePhabricator

ZObjectSelector: Prepopulate with most common objects depending on the selection type
Open, MediumPublic

Description

In https://www.wikifunctions.org/wiki/Special:CreateObject, If I click the arrow of the type field nothing will happen. It will be nice that you can select some some common types (e.g. function) without entering anything manually to the type field.

Event Timeline

We'd likely want to do the same approach in this and T343209: Display UN6 languages as suggested languages in the Global Language Selector, allowing certain targets to be shown at the top/in high profile.

gengh renamed this task from prepopulate common types in the type selector to ZObjectSelector: Prepopulate with most common objects depending on the selection type.Oct 24 2023, 9:12 AM

Specifically:

  • Z4 -> String, Boolean
  • Z61 -> UN6 (i.e. T343209)

And maybe:

  • Z8 -> current target function, string equality, boolean equality [for tester and implementation editing, but possibly useful elsewhere]

OK, the simplified, hard-coded version is now done and will ship next week: T350037.

For this, we should think about how we'd want to allow the Wikifunctions community to manually push particular Types (e.g. right now, Number is new and exciting), and/or automagically suggest ones based on general popularity (blocked by wider metrication of user activity). For restricted-value Types, once we support them, we'd potentially also want to prompt the user with a drop-down, which is a similar but slightly different selection need.

Jdforrester-WMF added a subscriber: gengh.