Versions Compared

Key

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

...

  • Create a feature flag - DELIVERY-CLOSED-AT-MOMENT

Task 2 - Add the additional hours in graphQL

We need to create a new fragment for add in Additional hour for use in operating hour fragment - src/queries/rbi/fragments/operating-hours-fragment.graphql

We need to run the command “yarn apollo:generate"

Task 3 - 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 to check the status of delivery quotes, so we need to improve this logic, we can add more details and validate the statusStore. Also, we need to add new dispatch for delivery closed.

...

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

...

Task

...

4 - Create the 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

  • ATTENTION - the component in line 641 is not to be use, we need to create a new component for use in this local.

...

  • 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 transform in a React component and pass the attribute for next open date.

  • The component to be create is this:

...

  • Create this component in src/components/address-modal/new-component

  • We need to pass the next open date and next Day Open

  • The button "Use Different Address“ return to screen of search delivery.

Task

...

5 - Create a validation for enable/disable “Order Pickup” button

  • Need to validate if restaurant has a service mode "Order Pickup", case not we need to disable this button

    • validate if it has service mode correct

    • validate if this service mode is opened

  • Get information that back-end returned, you can get a storeId and source the information in Sanity, or get the RestaurantData of back-end and search in this object

...