Versions Compared

Key

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

...

  • 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

...

Code Block
languagetypescript
closeDate = closeDate < openDate ? add(closeDate, { days: 1 }) : closeDate;

Impact Analysis

  • Hero component

...