Page MenuHomePhabricator

Combowiki: Better UX for the country drop down
Closed, ResolvedPublic

Description

When you go to change the country it jumps in the country list to the selection in a not friendly way

Like we do for the employer field https://doc.wikimedia.org/codex/latest/components/demos/lookup.html#lookup

Related Objects

Event Timeline

Cstone removed AnnWF as the assignee of this task.Oct 6 2026, 11:34 PM
Cstone triaged this task as High priority.
Cstone added a subscriber: AnnWF.

Ramon replied for the https://doc.wikimedia.org/codex/latest/components/demos/combobox.html, but seems like we should use predefined list, so lookup is suitable here.

Change #1352574 had a related patch set uploaded (by Wfan; author: Wfan):

[mediawiki/extensions/DonationInterface@master] Combowiki: Better UX for the country drop down

https://gerrit.wikimedia.org/r/1352574

These screenshots supplement a comment in the patch:

Step 1: first page load sets donation.country to US

image.png (3,228×1,206 px, 640 KB)

Step 2: after clearing the lookup field value (not selecting another country yet) automatically changes donation.country to null

image.png (3,228×1,206 px, 643 KB)

Change #1352574 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Combowiki: Better UX for the country drop down

https://gerrit.wikimedia.org/r/1352574

Change #1354097 had a related patch set uploaded (by Wfan; author: Wfan):

[mediawiki/extensions/DonationInterface@master] Only update country value if not null

https://gerrit.wikimedia.org/r/1354097

These screenshots supplement a comment in the patch:

Step 1: first page load sets donation.country to US

image.png (3,228×1,206 px, 640 KB)

Step 2: after clearing the lookup field value (not selecting another country yet) automatically changes donation.country to null

image.png (3,228×1,206 px, 643 KB)

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DonationInterface/+/1354097 make sense to not set country to null, I have this patch to update only when value select update country, plus @RLopez-WMF Do you like this codex lookup or select, we are using select for current donate wiki, so maybe Laura is make a good point that we can still use select since input introduce some confuse here when clear the value.

Change #1354097 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Only update country value if not null

https://gerrit.wikimedia.org/r/1354097

AnnWF set Final Story Points to 4.