...
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 if conditions.Task objectives (DOD-like):
Don’t impact the rules current status
The status should follow the same rules from other flows of “normal hours”.
Closed Today
Closes at hh:mm(60 min before)
Open at hh:mm(60 min before)
Open now
Closed now
...