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-819: Use snackbar to show errors in stepper recieve updates step #1327

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

bdsl
Copy link
Contributor

@bdsl bdsl commented Oct 4, 2023

Message now pops up every time the donor tries to continue from this step without filling in their choices:

image

@bdsl bdsl force-pushed the DON-819-receive-updates-errors branch from 0a8823c to 7be0d10 Compare October 4, 2023 10:53
<p class="error" *ngIf="triedToLeaveMarketing && marketingGroup.get('optInCharityEmail')?.hasError('required')" aria-live="assertive">
Please choose whether you wish to receive updates from {{ campaign.charity.name }}.
<p class="error" *ngIf="triedToLeaveMarketing && errorMessagesForMarketingStep().optInCharityEmailRequired" aria-live="assertive">
{{errorMessagesForMarketingStep().optInCharityEmailRequired}}.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we should remove this or adjust it if don819FlagEnabled - given that this step is quite short duplicating the message here and in the snackbar feels excessive. Not sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

True, it does feel a bit excessive, especially that the entire section is in view

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. I think I'll leave it for now though, the popup is temporary and is there to make sure the donor's attention is drawn, the message above stays on screen until the user does something or their computer breaks so they can read it at their leisure. And it's consistent with the other sections.

Maybe we'll decide to take it off later when we get more people involved to review the page as a whole with these messages.

Copy link
Contributor

@dorota-joanna dorota-joanna left a comment

Choose a reason for hiding this comment

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

left a comment, otherwise LGTM

@bdsl bdsl merged commit 31a196a into develop Oct 5, 2023
3 checks passed
@bdsl bdsl deleted the DON-819-receive-updates-errors branch October 5, 2023 09:08
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