Repos that we’ll change

Whitelabel: https://github.com/rbilabs/intl-whitelabel-app

RBI Sanity Shared Schemas: https://github.com/rbilabs/rbi-sanity-shared-schemas

Whitelabel CMS: https://github.com/rbilabs/intl-whitelabel-cms

Figma: https://www.figma.com/file/sfH3mHXoEUfHbm5qMul0Vn/branch/VNb1dzeeYVV0IphMPJo0lt/Popeyes?type=design&node-id=3189-125398&t=b8GDYgoS6YtWAr0K-0


Solution overview

We’ll extend the “AddOn section” (that we already use for the “Bag with Handles” solution) and add there the new logic to handle add-on free items.


Task summary

RBI Sanity Shared Schemas/Whitelabel CMS:

 

Whitelabel:


Tasks breakdown

RBI Sanity Shared Schemas

Order in UI

Task 1: Add a new toggle to enable the “free items” on AddOnSection

PATH FOR THE SOLUTION

DOD-LIKE

Task 2: Extend the Option item to have new fields

We’ll have two new fields: “Free addon item” and “Menu items to offer the free item” on the add-on-section-option.ts:

“Free addon Item”

“Menu items to offer the free item”

Create the new object (addOnSectionMenuOptions)

For this object we’ll have:

“Free quantity”

“Menu item”

DOD-LIKE

Task 3: Create a new section (fieldset) for the free-addon modal

We also will have the following fields inside this fieldset:

PATH FOR THE SOLUTION

DOD-LIKE


Whitelabel

Task 2: Update types and graphql after changes in the CMS repo

PATH FOR THE SOLUTION

DOD-LIKE

Task 3: Create a new component to show the add-on free modal

Create a new sub-component that will be used on the add-on free promotion info

PATH FOR THE SOLUTION

DOD-LIKE

Task 4: Add a description on the AddOnsItemsContainer section for the addon-free items

Rules:

PATH FOR THE SOLUTION

OBS: this is only an example and will not be exactly this.

DOD-LIKE

Task 5: Deal with the free quantity item price on the extra modal and cart total price

… WORK IN PROGRESS … DISCOVERING