🔍 Problem Statement
SPEQ process may not be complete by the time a new product needs to be launched. In that case the product nutritional information will not sync into Sanity
Certain items don’t have nutritional information in SPEQ or have incorrect information (e.g. packaged goods). Those items require manual overwriting via MDS, bug the content team does not have access to MDS
The nutritional information provided by suppliers may not be mathematically exact. The frontend calculates certain numbers assuming they’re exact. E.g. energy info - calorie (
cal
) vs kilojoule (kJ
)Misconfigured MDS modifiers sync are added to items every time MDS sync runs. Content team does not have MDS access to reconfigure them and needs to manually delete them after every sync
🛠️ Proposed Solution Plan
Step | Outcome | Work Required | How to test | Eng Task | Owner | ETA | Status | ||
---|---|---|---|---|---|---|---|---|---|
1 | Make N&A fields editable | Nutritional and allergen fields are editable in Sanity staging. Menu sync still runs and overwrites those values. |
| N&A Fields can be edited in Sanity staging |
|
| Semih (dev) Lionel (UAT) |
📌 Available to test in Staging: |
| ✅ Release in Production: |
2 | Stop MDS Menu sync | (1) new menu items, (2) N&A information and (3) modifiers no longer sync from MDS to Sanity staging. Content agency has full control of menu content in Sanity. |
| Modifiers are deleted once and don’t sync anymore |
|
| Semih (dev) Lionel & Silvia (UAT) | 📌 Available to test in Staging: Jul 19th
| ✅ Menu Sync only happens in Staging. | ||||||
3 | Remove calculations from FE | Nutritional & allergen information in the frontend is read as-is from Sanity |
| Frontend displays numbers with multiple decimals (e.g. Salt 0.0025g). Frontend displays different energy values for kJ and cal |
|
|
Semih (dev) Lionel (UAT) | 📌 Available to test in Staging:
Aug 18th | ✅ Released in Production | |||||||
4 | Control displayed fields and their order | Content team can manage what nutritional fields are displayed in the N&A modal, and the order in which they’re shown. This is done at a market level, not product level | TBD | Change order of nutritional fields in Sanity. Choose nutritional fields to be displayed in Sanity |
|
|
| Semih (dev) Lionel (UAT) | 📌 Available to test in Staging:
Aug 18th | ✅ Released in Production |