Versions Compared

Key

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

Questions:

  •  N/D

Technical Refinement

Description

This activity should be considered a solution to Highlight current day to restaurants that close after midnight.

For example:

A restaurant with the following date:

Open → 10 am

Closes → 2 am

 

In this case, 2 am should be considered the next day at 2 am closing of the restaurant.

The period of this restaurant is CLOSED from 2 am to 10 am.

  • intl-whitelabel-app

    • TASK 1— Change the component rule to status

      • path: intl-whitelabel-app/workspaces/frontend/src/components/store-status/hooks/use-store-status.ts

      • We will create a feature flag: enable-close-hours-status-after-midnight

      • We will have to change the component rule to consider the closing time after midnight

        • The idea is:

          • When the close hours are less than the open hours, we will add on close hours, 1 day.

          • Currently:

            • open: 10 am (2024/01/01)

            • close: 2 am (2024/01/01)

          • After the change, will be:

            • open: 10 am (2024/01/01)

            • close: 2 am (2024/01/02)

      • The change will be on hook: useStoreStatus on method: getStoreStatus, before if’s.

Screenshots

  • N/A

POC

  • N/A

Impact Analysis

  • Hero component

Dependencies

  • N/A

Unit Test

  • N/A

  • N/A