🛠️ Potential Solutions
Note: this section should be short and sweet, documenting notes about different solutions that were considered during ideation. Can just be a link to a whiteboard for example. Expected outcome: one solution is chosen and documented in more detail under Proposed Solution.
The solution is to add a field in sanity so that franchisse can add the texts related to the policy cover and thus communicate with the frontend on the support page.
✅ Proposed Solution
Description of the proposed solution.
The solution involves adding a new field to the Sanity support document, allowing policy cover texts to be included. In addition, a policy cover field will be inserted on the support page, just below the form, which will display the information provided in Sanity. We will also have a temporary feature flag that will be used to validate the feature in production and that can be removed afterwards.
On the support page we will have a field where the user can read the information about the policy cover before finalizing the submission of the form.
Within the sanity support document there will be a field where the franchisee can add a document with the texts related to the policy cover.
By clicking on the policy cover document, the user will be able to change the policy cover texts to various languages that will be used for the frontend as shown in the screens above.
To implement this solution, it will be necessary to make some changes to two repositories: intl-whitelabel-cms and intl-whitelabel-app. An example of changes required for each is described below.
Intl-whitelabel-cms
Intl-whitelabel-app
Potential Challenges
List here potential challenges that have come across the opportunity definition or from the potential solutions so far.
N/A
💰 Cost
Describe any additional cost this solution may imply.
N/A
🎛️ Configuration
Include here any configuration required (Sanity, LaunchDarkly flags, etc.) required to enable the solution.
Sanity
The first step in this solution involves adding the texts in Sanity. To do this, you will need to navigate to the support document and add a new item in the “Support Policy Cover” field via the following path:
CTG Configs -> Support -> Support Data
Once the item has been created, clicking on it, it will open a modal, allowing you to include the messages that will be displayed in the “Disclaimer Content” field. In addition, all translations must be entered in the corresponding fields for each language.
Launch Darkly
The second stage is simpler and will only be carried out in the initial stages of validating the feature in production, and will be removed after this phase.
If the feature flag is still present, you will need to access the “support-policy-cover-to-contact” flag and enable it in the desired environment. Otherwise, the feature will already be working and you'll just need to add the content to Sanity.
📈 Metrics
Describe the metrics that will be used to measure the solution’s success, as well as how to measure those KPIs.
N/A
🗓️ Delivery Plan
Link to the task or list of all the tasks required to deliver the solution, along with its progress.
Step | Task | Status |
---|---|---|
Add new field in sanity support document | BACKLOG | |
Add new field in WL support page | BACKLOG |
🧑🚒 QA Plan
Testing scenarios. See example /wiki/spaces/EGMT/pages/4080861189.
Scenario | Steps | Result |
---|---|---|
Open the support form and show the policy cover field |
| A policy coverage field should appear below the “Describe your problem” field. |
Open the support form and not show the policy cover field |
| A policy coverage field should not appear below the “Describe your problem” field. |
Open the support form and show the policy cover field translated |
| A policy coverage field should appear below the “Describe your problem” field with the text translated. |
⚠️ Call-outs
Tip: Document here any improvement or discussion regarding the feature
N/A
Add Comment