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
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.
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.
Screenshots
POC
N/A
Impact Analysis
N/A
Dependencies
N/A
Unit Test
N/A
0 Comments