Page MenuHomePhabricator

Add the new country drop-down field on Special:EnableEventRegistration and Special:EditEventRegistration
Closed, ResolvedPublic

Description

User stories:

As an organizer, I want the event country to be stored as structured data, so that anyone who is interested can easily learn about the event location and then decide to learn more about it or join it as a result.

As a contributor, I want to know the event location and be able to have it stored as structured data, so that I can easily find and join events based on country.

Design

Screenshot 2025-07-01 at 8.45.51 PM.png (286×1 px, 30 KB)

Figma file

Acceptance Criteria:
  • Given an organizer tries to enable or edit an event registration
    • And the event is In Person or Hybrid,
      • They should see a drop-down list of countries to choose,
      • And this field should be required if the event is In Person or Hybrid
      • And the label for this field should be "Country"
      • If the organizer submits the form and the country field is filled,
        • The country data must be stored in the DB T397269

Event Timeline

cmelo changed the task status from Open to In Progress.Jun 23 2025, 3:45 AM
cmelo claimed this task.

Change #1162644 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Introduce CountryProvider responsible for providing a list of countries from CLDR

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

Change #1162645 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add new country dropdown field

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

Change #1162994 had a related patch set uploaded (by Cmelo; author: Cmelo):

[mediawiki/extensions/CampaignEvents@master] Add CampaignEventsEnableEventCountryCode feature flag

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

Change #1163347 had a related patch set uploaded (by Cmelo; author: Cmelo):

[integration/config@master] Add CLDR as a dependency for CampaingEvents extension

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

Change #1163347 merged by jenkins-bot:

[integration/config@master] zuul: [mediawiki/extensions/CampaignEvents] add cldr as dependency

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

Change #1162644 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Introduce CountryProvider to provide a list of countries from CLDR

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

cmelo changed the task status from In Progress to Stalled.Jul 9 2025, 1:57 AM
ifried removed cmelo as the assignee of this task.Jul 14 2025, 4:31 PM
Daimona added a subscriber: JFernandez-WMF.

Quick check-in @ifried @JFernandez-WMF: in the AC I see that the field label should be "Choose a country", despite the design prototype below being different and, most importantly, none of the other field labels using a verb. So, I wanted to confirm that the change is intentional.

(Also noting that I just removed an error message from the AC based on a previous conversation that wasn't reflected here)

Ticket updated to have the label say "Country," @Daimona. Thanks for catching that!

Change #1162645 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add new country dropdown field

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

vaughnwalters subscribed.
  • Given an organizer tries to enable or edit an event registration
    • And the event is In Person or Hybrid,
      • ✅ They should see a drop-down list of countries to choose,
      • ✅ And this field should be required if the event is In Person or Hybrid
In personHybrid
Screenshot 2025-08-01 at 10.46.49 AM.png (504×1 px, 55 KB)
Screenshot 2025-08-01 at 10.47.09 AM.png (952×1 px, 87 KB)
  • ✅ And the label for this field should be "Country"
  • If the organizer submits the form and the country field is filled,
    • ✅ The country data must be stored in the DB T397269

All AC is met so sending to design sign off. The UX of the dropdown is not great, but I am pretty sure this is an OOUI limitation as similar issues have been discussed before. Thoughts @Daimona or @JFernandez-WMF ?

Screen Recording 2025-08-01 at 11.08.08 AM.gif (873×640 px, 3 MB)

@vaughnwalters, thank you! I don't think the last screenshot was attached - could you try attaching it again so I can take a look?

@vaughnwalters, thank you! I don't think the last screenshot was attached - could you try attaching it again so I can take a look?

attached! If you need a better video I can create a longer one and send it to you too - this is just a gif that could fit in the phab task

I am moving this to Dev input for now while I ask Engineering if this is a OOUI-related issue