Versions Compared

Key

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

...

Task 2 - Update hook for get new objects of sanity (validate cache)

Update src/hooks/use-feature-qrcodefree-refill-drinks/use-feature-qrcodefree-refill-drinks.ts hook for get stores and items of sanity.:

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

...