Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Update src/hooks/use-free-refill-drinks/use-free-refill-drinks.ts:

  • Update the localStorage destructuring (freeRefillOrderInfos) to get the restaurantId and cartEntries (that will come from the Successful order)

  • Update the destructuring from featureQrCodeRefillDrinks to get the new values from Sanity

  • Create two new methods to validate the restaurant from the order and another to validate if an item from Sanity matchs with an item from the order

Add this new data in cache. → we’ll not implement this for now and created a new task to analyze the performance

...

DOD-LIKE

  • Get data with success;Create or adjust unit tests for this flow;

Task 3 - Validate if purchased products have a refill for this store

...

This new logic can be created in the hook src/hooks/use-feature-qrcode-refill-drinks/use-feature-qrcode-refill-drinks.ts

  • Update the localStorage destructuring (freeRefillOrderInfos) to get the restaurantId and cartEntries (that will come from the Successful order)

  • Create two new methods to validate the restaurant from the order and another to validate if an item from Sanity matchs with an item from the order

DOD-LIKE

  • Validate if items purchased have can generate a QRCode

    • have a store;

    • have an item available;

    • have a service mode;

  • Create a unit tests

...