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

DON-1121: Add age confirmation checkbox #1891

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

bdsl
Copy link
Contributor

@bdsl bdsl commented Feb 28, 2025

Not sure if the copy is exactly right - the "Please tick the box to confirm" message makes sense for adults who didn't notice the form but maybe isn't right for children who didn't tick the box. Doesn't make sense to ask them to wait years and come back though.

image

Type was FormGroup<any>, now it's inferred as:

FormGroup<{
    donationAmount: FormControl<string | null>;
    billingPostcode: FormControl<string | null>;
    optInCharityEmail: FormControl<boolean | null>;
    optInTbgEmail: FormControl<boolean | null>;
    giftAid: FormControl<boolean | null>;
    homeOutsideUK: FormControl<string | null>;
    homeAddress: FormControl<string | null>;
    homePostcode: FormControl<string | null>;
    unmatched: FormControl<boolean | null>
  }>
@bdsl bdsl force-pushed the DON-1121-regular-giving-adult-checkbox branch from 595f244 to 7c8f88c Compare February 28, 2025 18:32
bdsl added 2 commits February 28, 2025 18:53
…tep changes

Previously for me validation was only running when I step-changed with
the continue button, not when I clicked a step heading.
@bdsl bdsl changed the title DON-1121: Refactor - make regular giving form strongly type DON-1121: Add age confirmation checkbox Feb 28, 2025
@bdsl bdsl marked this pull request as ready for review February 28, 2025 19:14
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.

1 participant