Versions Compared

Key

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

...

Now with back-end returning the status correct and the field nextEarliestOpen we can to do correct logic in the front-end.

Task 1 - Adjusted front-end for get the status closed restaurant

  • In the file src/components/address-modal/index.tsx int the handleQuoteResult function we have a logic for check the status of delivery quotes, so we need improve this logic, we can add more details and validate the statusStore. Also we need add new dispach for delivery closed.

...

  • About the dispach, we have a logic for it, and conciste in get the status of quote and store, we need create a new for closed restaurant, we need create a new types for AddressModalAction, have this in the POC.

...

Task 2 - Create or change component for show message of the restaurant closed

  • With this made we can use this in moment for call a delivery and show the error correct in case of closed restaurant

...

  • We need change or create a new component for show message about closed restaurant. In this POC I’m use the component src/components/modal-no-delivery-stores-open/no-stores-open-delivery-modal.tsx this component don’t is used currently in the app, so we can change some thing and use, this is a example of component:

...

  • In the file of this component we need to change some things for work, for example we need to tranform in a React component and pass the atribute for next open date.

...

POC - intl-whitelabel-app

The POC of this solution:
https://github.com/rbilabs/intl-whitelabel-app/pull/2422

...