Questions:
N/D
Technical Refinement
Description
Task 1 - Create a Feature Flag
Task 2 - Adjust Layout for Communication Preferences for Push And Email
In this task, we need to add just one checkbox to enable communication with Push and Email. In Sanity, we already this checkbox together on the way: https://dev-plk-es-whitelabel-cms.rbi.tools/desk/marketingContent;features;account;featureAccount
We need to activate this flag “Single TickBox” to join the Push and Email.
But the layout crash, so we need to adjust. src/pages/account/comm-preferences/comm-card-email-push.tsx
Task 2 - Mark push and email for promotion check
In the agreements we have a checkbox for enable communication, but now, this check activates just communication through email, so we need to add Push too.
In file src/state/auth/hooks/use-current-user.ts on the function updateRequiredAcceptanceAgreementInfo we check this checkbox and to add true, we can basead in the file src/pages/account/comm-preferences/use-comm-prefs.ts in the function updateCommPrefs for to apply our solution.
Task 3 - Show check case just one option, it true.
In case just one option it checked, for example email true and push false, we need to show this check for user enable both option. src/components/modal-agreement/index.tsx, adjusted the logic in the const hasMarketingEmail.
Task 4 - Add Push and Email in mParticle
Verify for sending mParticle events for push and email.
Screenshots
POC
N/A
Impact Analysis
N/A
Dependencies
N/A
Unit Test
N/A
Add Comment