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 16 Next »

Repos that we’ll change

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

intl-whitlabel-cms: https://github.com/rbilabs/intl-whitelabel-cms

intl-whitlabel-graphql: https://github.com/rbilabs/intl-whitelabel-graphql

Solution proposal

When the system completes the purchase successfully, it will validate if any of the purchased products provide a drink refill, this validation will occur through information contained in Sanity.

Sanity will return a list of stores and products that provide the drink refill, the whitelabel-app will go through this information from Sanity, validating if it has a product that is compatible, if so, it will send some information to the “GraphQL” backend .

In the backend we will get the information, and we will get the secrets from DynamoDB, this secrets is a key to generate an MD5 and with that we will generate a hash with MD5 encryption, and this hash will be returned to the whitelabel-app to use as QRCode.

Task summary

Intl Whitelabel CMS:

  • Task 1 - Add new Field for add Stores and Items

  • Task 2 -

 

Intl Whitelabel App:

  • Task 1 - Update GraphQL Query to get new data

  • Task 2 - Validate if purchased products have a refill

  • Task 3 - Create a new request for backend “intl-whitelabel-graphql” - GetRefillDrinkQRCode (Request GraphQL implementation)

  • Task 4 - Get and use QRCode of GetRefillDrinkQRCode (Request GraphQL implementation)

  • Task 5 -

Intl Whitelabel GraphQL:

  • Task 1 - Create a request for get secrets for MD5

  • Task 2 - Create new function GetRefillDrinkQRCode for generate hash (Request Whitelabel implementation)

  • Task 3 -

Tasks breakdown

Intl Whitelabel CMS

Task 1 - Add new Field for add Stores and Items

Add new objects for add Stores and Items in schemas/features/objects/

Add this new objects in the document of QRCode refill schemas/features/documents/refill-drinks-qrcode.tsx

Add new objects in schema file in schemas/schema.tsx

In case have any questions about these files, you can to consult this PR: https://github.com/rbilabs/intl-whitelabel-cms/pull/86/files because here was created this files fot QRCode Refill

Doubts:

1 - These items, we can add just items or just menu “Combo” or both?

2 - How to add an object of restaurants/stores?

We have this example for groups restaurants

  • No labels