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

fix (cherry-pick) : hide privacy policy toast during onboarding, and for onboarded users #25303

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

jonybur
Copy link
Contributor

@jonybur jonybur commented Jun 13, 2024

Description

Fixes two bugs:

  • Privacy policy toast should not be seen during onboarding
  • Users who onboarded after the privacy policy date should not see the new privacy policy toast.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

New user onbaording after the date:

  1. Set the privacy policy date to a date in the future from today
  2. Onboard (create a new user)
  3. User should not see the privacy policy toast at any moment

New user onboarding before the date:

  1. Set the privacy policy date to a date in the past from today.
  2. Onboard (create a new user)
  3. User should not see the privacy policy toast at any moment
  4. Set the privacy policy date to a date in the future from today
  5. User should not see the privacy policy toast on the home screen

Old user after the privacy policy date:

  1. Have a user already onboarded
  2. Make sure the onboardingDate is null in the redux state (this simulates a user who has registered before this PR has been in production)
  3. Set the privacy policy date to a date in the future from today
  4. User should not see the new privacy policy toast

Old user before the privacy policy date:

  1. Have a user onboarded
  2. Make sure the onboardingDate is null in the redux state (this simulates a user who has registered before this PR has been in production)
  3. Set the privacy policy date to a date in the past before today
  4. User should see the new privacy policy toast

TL;DR: If the privacy policy date is in the future, the user should never see it -BUT- if the privacy policy is in the past, the user should see it, as long as the user onboarded before the privacy policy date.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

…sers (#25217)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

Fixes two bugs:
- Privacy policy toast should not be seen during onboarding
- Users who onboarded after the privacy policy date should not see the
new privacy policy toast.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/25217?quickstart=1)

Fixes:

New user onbaording after the date:
1. Set the privacy policy date to a date in the future from today
2. Onboard (create a new user)
3. User should not see the privacy policy toast at any moment

New user onboarding before the date:
1. Set the privacy policy date to a date in the past from today.
2. Onboard (create a new user)
3. User should not see the privacy policy toast at any moment
4. Set the privacy policy date to a date in the future from today
5. User should not see the privacy policy toast on the home screen

Old user after the privacy policy date:
1. Have a user already onboarded
2. Make sure the `onboardingDate` is `null` in the redux state (this
simulates a user who has registered before this PR has been in
production)
3. Set the privacy policy date to a date in the future from today
4. User should not see the new privacy policy toast

Old user before the privacy policy date:
1. Have a user onboarded
2. Make sure the `onboardingDate` is `null` in the redux state (this
simulates a user who has registered before this PR has been in
production)
3. Set the privacy policy date to a date in the past before today
4. User should see the new privacy policy toast

TL;DR: If the privacy policy date is in the future, the user should
never see it -BUT- if the privacy policy is in the past, the user should
see it, as long as the user onboarded before the privacy policy date.

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

<!-- [screenshots/recordings] -->

<!-- [screenshots/recordings] -->

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

---------

Co-authored-by: David Walsh <[email protected]>
Co-authored-by: Brian Bergeron <[email protected]>
Co-authored-by: NidhiKJha <[email protected]>
Co-authored-by: Nidhi Kumari <[email protected]>
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@darkwing darkwing marked this pull request as ready for review June 13, 2024 17:48
@darkwing darkwing requested a review from a team as a code owner June 13, 2024 17:48
@darkwing darkwing changed the title fix: hide privacy policy toast during onboarding, and for onboarded users fix (cherry-pick) : hide privacy policy toast during onboarding, and for onboarded users Jun 13, 2024
@danjm danjm merged commit 3464aea into Version-v11.16.11 Jun 13, 2024
74 of 75 checks passed
@danjm danjm deleted the Version-v11.16.11-hotfix-privacy branch June 13, 2024 17:56
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants