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

[Fyst-294] add notification preferences page #5027

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

squanto
Copy link
Contributor

@squanto squanto commented Nov 25, 2024

Link to pivotal/JIRA issue

https://codeforamerica.atlassian.net/browse/FYST-294

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

Add :sms_notification_opt_in and :email_notification_opt_in

How to test?

Step through state return flows until you've verified a code, then enter either a phone number or select email

Screenshot

Screenshot 2024-11-25 at 3 19 19 PM

squanto and others added 5 commits November 25, 2024 11:49
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Copy link

Heroku app: https://gyr-review-app-5027-815e197df5c3.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5027 (optionally add --tail)

squanto and others added 3 commits November 25, 2024 13:05
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Co-authored-by: Mike Rotondo <[email protected]>
Copy link
Contributor

@powersurge360 powersurge360 left a comment

Choose a reason for hiding this comment

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

I think you are missing form specs at least. The form is pretty simple so I think you can get away with a quick one with just shoulda_matchers. The controller is so basic as to more or less not be there so I guess it's alright to not have a spec.

Co-authored-by: Mike Rotondo <[email protected]>
@squanto
Copy link
Contributor Author

squanto commented Nov 26, 2024

I think you are missing form specs at least. The form is pretty simple so I think you can get away with a quick one with just shoulda_matchers. The controller is so basic as to more or less not be there so I guess it's alright to not have a spec.

Good call, added form specs for the validations

Copy link
Contributor

@powersurge360 powersurge360 left a comment

Choose a reason for hiding this comment

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

Looks good! You may consider using shoulda_matchers in the future which can simplify standard rails tests. Not that it's invalid to do things this way, I just personally find writing validator tests a little tedious lol

anisharamnani and others added 10 commits November 27, 2024 12:47
Co-authored-by: Tahsina Islam <[email protected]>
Co-authored-by: Anisha Ramnani <[email protected]>
* tweak the default render call for landing page bullets
* hint for the linter; because the key is used as a default, the i18n linter doesn't recognize it as being used
Co-authored-by: Hugo Melo <[email protected]>
Adds persona import/export CLI tool
Co-authored-by: Hugo Melo <[email protected]>
* johnny

* alexis

* shell
Co-authored-by: Hugo Melo <[email protected]>
Co-authored-by: Hugo Melo <[email protected]>
Co-authored-by: Hugo Melo <[email protected]>
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.

6 participants