Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Repos that we’ll change

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

Figma:


Solution proposal

In the Sanity went can set images of the product by Restaurant, Delivery or Kiosk

The White Label must show images of accord selected channel, Restaurant with delivered, Restaurant selected or without restaurant.

Restaurant selected.

Delivery


Acceptance Criteria

  1. Overall goal:

    1. The platform must allow assigning specific images to the products on the menu according to the purchase channel: home delivery, mobile ordering, kiosk and public menu.

    2. The configuration of the images must be done from Sanity.

  2. Platforms: Web, Android and IOS

  3. Brands: all - PLK ES, BK ES and BK PT

  4. Service modes: Home Delivery, Pick-up, Dine-in and Table Service

    1. It also includes “Public Letter” → Public Menu → It means the menu NOT linked with any selected restaurant / delivery.

    2. Regarding kiosk, impacts on kiosk app are out-of-scope, but we can add a slot image in Sanity for it (to be used in the future, although it’s not mandatory for development).

  5. Images in scope:

    1. Menu: Picker Combo and Item (also in the check-out and in the customization/extra)

  • Items.

  • Combo.

    • Items inside the Combo must show the changed images

  • Picker.

    • Items and Combos inside the Picker must show the changed images


  • In Section should not change image, example “Top Sales”

  • It should show correct image in Recent Order.

    • It should not change after the order ends.

  • It should show correct image in Checkout.

    • if a product is at the checkout and you change restaurants (Delivery → Restaurant), the image should change.

  • When you finish the order, it must show the correct image in the Add On section.

    • Should change image in Add Extra as well

    • Catalog Update: existing image configuration as fallback option and include new ones per channel in order to override it optionally.

     

    1. Out of scope: localization and language

Task summary

Intl Whitelabel App:

  • Task 1 - Create a Feature Flag

  • Task 2 - Add imagesByChannels in Graphql

  • Task 3 - Add new interfaces and update.

  • Task 4 - Implement logic for show image by channel (function change image)

  • Task 5 - Implement function change image in the add-on section and add extra (Ketchup)

  • Task 6 - Replicate to menu legacy (To analyze)


Tasks breakdown

Intl Whitelabel APP

Task 1 - Create a Feature Flag

  • New feature flag for front-end: ENABLE_IMAGES_BY_CHANNELS

Task 2 - Add imagesByChannels in Graphql

DOD-LIKE

Update Sanity Graphql with command yarn apollo-generate.

Task 3 - Add new interfaces and update

Link reference: https://github.com/rbilabs/intl-whitelabel-app/pull/1841/files#diff-3c5a6dd1f32b86cde31b8257a1e8332e9f8ccd97ae8931f47c64ad105103601c

File: workspaces/frontend/src/types/menu.d.ts

  • Should add new imagesByChannels interface with imageDelivery, imageKiosk and imageRestaurant.

  • Should add imagesByChannel in IPickerItem

  • Should add imagesByChannel in IBasePicker

  • Should add imagesByChannel in IBaseCombo

  • Should add imagesByChannel in IBaseItem

  • Should add imagesByChannel in IMainMenuPickerView

Task 4 - Implement logic to image show per channel.

Link reference: https://github.com/rbilabs/intl-whitelabel-app/pull/1841/files#diff-4516aec29cee97c67b42f2b6e7ebb3e2a78da046f48149a0002e9cb815c0e505

  • Should create a new function to change image.

    • Example: changeImageByChannel

      • workspaces/frontend/src/state/main-menu/new-main-menu.tsx

    • This function should be used everywhere

DOD-LIKE

  • Should add Piotr and Marco in Code Review.

Task 5 - Implement function change image in the Addons section and Add Extra (Ketchup)

Links reference:

Add Ons

https://github.com/rbilabs/intl-whitelabel-app/pull/1841/files#diff-93b83a363f89eac56923577fd7624748a3041ad034ed535fd74229bc2794257a

Add Extra

https://github.com/rbilabs/intl-whitelabel-app/pull/1841/files#diff-24dff43fd9fee6ee00763e2616430b61687ab9803c6020ce2f8f6f3997a2f8ec

  • Must use image change function in Add-on Section and Add Extra (implemented in the task 4)

Task 6 - Replicate to menu legacy (To analyze)

  • We should verify if it needs to replicate this functionality to Legacy Menu


POC:

https://github.com/rbilabs/intl-whitelabel-app/pull/1841

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.