Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "Yes-No-Address-Form" #541

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Implement "Yes-No-Address-Form" #541

merged 3 commits into from
Nov 27, 2024

Conversation

gbirke
Copy link
Member

@gbirke gbirke commented Nov 21, 2024

Add an A/B test implementation for the new "Yes/No choice form" that gets presented when the user donates a low amount

Ticket: https://phabricator.wikimedia.org/T380462

@gbirke gbirke force-pushed the C24_WMDE_Mobile_DE_10 branch 4 times, most recently from ca0211d to 21f6fc0 Compare November 25, 2024 10:52
@moiikana
Copy link
Contributor

Till also left some comments in the ticket,

I spotted something else while checking out the code locally:
on xf=1:
"nein" is still selectable on lastschrift, it's not disabled
Bildschirmfoto vom 2024-11-25 14-19-34

  • when hitting submit, an empty error summary appears

@gbirke gbirke force-pushed the C24_WMDE_Mobile_DE_10 branch from 21f6fc0 to b70db33 Compare November 25, 2024 15:04
@moiikana
Copy link
Contributor

I'm not sure about the current state of error summary behaviour,

but I noticed the options here don't turn red + no red error prompt below the options,
when you click on submit (trigger validation)
Bildschirmfoto vom 2024-11-25 16-34-38

I don't know whether we need that.

@gbirke gbirke force-pushed the C24_WMDE_Mobile_DE_10 branch 2 times, most recently from c8e9bc6 to 1d6c091 Compare November 25, 2024 16:14
- Add new form component - it'll contain a new section
- Add new section component - it'll contain a new address type selection
- Add new address type component that just switches between "Person" and "Company"

These components take the "regular" donation form component as a base.

Ticket: https://phabricator.wikimedia.org/T380462
@gbirke gbirke force-pushed the C24_WMDE_Mobile_DE_10 branch 2 times, most recently from e372966 to 7ea8ba2 Compare November 25, 2024 17:09
@gbirke gbirke marked this pull request as ready for review November 25, 2024 17:09
@gbirke
Copy link
Member Author

gbirke commented Nov 25, 2024

I left those error messages out on purpose because of the proximity to the error summary. But wouldn't be a problem to add them, will have to discuss that with PM.

Comment on lines 29 to 31

describe( 'DonationForm.vue', () => {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe( DonationFormAnonymousChoice.vue, () => {

- Add new model with composable
- Add new ErrorSummary component that only shows payment errors and
  non-selection of opt-out/opt-in
- Adapt `PersonalDataSectionAnonymousChoice`
- Adapt `DonationFormAnonymousChoice`
- Grace fully handle user changes of payment type (enforcing address for
  direct debit)

Ticket: https://phabricator.wikimedia.org/T380462
@gbirke gbirke force-pushed the C24_WMDE_Mobile_DE_10 branch from 7ea8ba2 to 762330b Compare November 27, 2024 09:29
@gbirke gbirke merged commit a28123e into main Nov 27, 2024
3 checks passed
@gbirke gbirke deleted the C24_WMDE_Mobile_DE_10 branch November 27, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants