Page MenuHomePhabricator

Update the affiliate question to have only 4 options
Closed, InvalidPublic

Assigned To
Authored By
cmelo
Jul 11 2023, 6:41 PM
Referenced Files
Restricted File
Jul 18 2023, 7:40 AM
Restricted File
Jul 18 2023, 7:40 AM
Restricted File
Jul 18 2023, 7:40 AM
F37141847: Screenshot 2023-07-17 at 6.58.46 PM.png
Jul 17 2023, 11:59 PM
F37137870: Screenshot 2023-07-13 at 10.11.32.png
Jul 13 2023, 9:19 AM
F37137340: Screenshot 2023-07-12 at 3.12.36 PM.png
Jul 12 2023, 8:21 PM
F37137338: Screenshot 2023-07-12 at 3.12.11 PM.png
Jul 12 2023, 8:21 PM
F37137336: Screenshot 2023-07-12 at 3.11.56 PM.png
Jul 12 2023, 8:21 PM

Description

Given I am a participant
When I click on "Register" on the event page or on the RegisterForEvent special page
Then I should see the question Affiliate with only 4 options:

1 - Select an option
2 - No
3 - Affiliate (chapters, user groups, thematic organizations)
4 - Other organizing partners

And both options 3 and 4 should provide a free text field when chosen

Event Timeline

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

[mediawiki/extensions/CampaignEvents@master] Update affiliate question options

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

@cmelo Can you please confirm that the option in the task description have been finalized and put them in the description of T321822 if so? Thanks!

Change 937181 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Update affiliate question options

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

Given I am a participant
When I click on "Register" on the event page or on the RegisterForEvent special page
✅ Then I should see the question Affiliate with only 4 options:

Screenshot 2023-07-12 at 3.11.56 PM.png (414×1 px, 74 KB)

Affiliate has a free text field

Screenshot 2023-07-12 at 3.12.11 PM.png (324×1 px, 53 KB)


Other organizing partners also has a free text field

Screenshot 2023-07-12 at 3.12.36 PM.png (326×1 px, 47 KB)


AC is met, sending this to design sign off with a question for @gonyeahialam. Should we change this to a radio button since there are only four options now, and What is your gender identity? is currently a radio with six options? If so, we could create another task for this.

@vaughnwalters @cmelo Does the free text box have a placeholder text, if so, what is it?

Should we change this to a radio button since there are only four options now, and What is your gender identity? is currently a radio with six options? If so, we could create another task for this.

I believe it was once mentioned that having text boxes between radio buttons posed some technical challenges. cc @Daimona @cmelo is this correct?
@vaughnwalters The initial design when this was just a yes or no question before we made these changes to the question, had your suggestion as shown below

Screenshot 2023-07-13 at 10.11.32.png (702×894 px, 94 KB)

@vaughnwalters @cmelo Does the free text box have a placeholder text, if so, what is it?

Should we change this to a radio button since there are only four options now, and What is your gender identity? is currently a radio with six options? If so, we could create another task for this.

I believe it was once mentioned that having text boxes between radio buttons posed some technical challenges. cc @Daimona @cmelo is this correct?

I think it may be possible in JavaScript given this example, but I'm a bit concerned about the semantics because the text field is part of the label. I also don't think it would be possible to do the same in the special page form. All the places that I can think of where you need to choose an option amongst several and then optionally provide some free text use a dropdown with a text field; for instance, the "expiry" and "reason" fields on Special:Block, and definitely others that I can find if you're interested. MediaWiki even provides a standard component for select+text, although I think we can't use it here because the text field should be shown conditionally depending on which option is selected.

@vaughnwalters @cmelo Does the free text box have a placeholder text, if so, what is it?

The free text box placeholder text is Please state

Screenshot 2023-07-17 at 6.58.46 PM.png (310×1 px, 54 KB)

@gonyeahialam For now, I think we should let it as it is, there is a conversation happening since yesterday, and the options may change depending on what will be decided.
FTR what is being decided is if we should remove the option "Other organizing partners".
We can create another tasks, if we really need to change this again.

This is the current way it is implemented:
{F37142399}

{F37142398}

{F37142397}

@cmelo your images are restricted and therefore not showing

@ifried can we close this task as invalid now since the affiliate question has changed to have only two options per T321822?

Yes, I have closed it, @vaughnwalters. Thanks for the heads up!