As a shopper I visit the home page of a hub/shop which has an order cycle which is open all the time.
In the blue order cycle notice box in the top right corner the text 'Next Order Cycle Closing in ....' is displayed. This is confusing. I might think I won't be able to collect my food for another year/month.

Proposed improvement
If order cycle end date is more than 3 months ahead of current date then the text 'Next Order Cycle closing in...' is not displayed.

hello @lbwright22 I believe that the one Kirsten has opened here: https://github.com/openfoodfoundation/openfoodnetwork/issues/5216 Works as well in your case isn't it? I would favor it as it gives a solution that is broader than one particular use case.
@RachL These are different enhancements
@lbwright22 Rachels comment makes it clear the enhancement isn't yet clearly specified. I gave a few tips on Slack for improving it :smile:
@RachL and @lin-d-hop hope the description makes more sense now. Sorry for confusion
~Okay after reading this adding in 'New Order Cycle Closing in...' text when it's missing is fine but I would suggest wording like 'This shop has not set up the next order cycle' or 'Pending next order cycle'~
Okay so I misunderstood the acceptance criteria on this issue. I agree that when a shop has an order cycle that is more than 3 month in the future, removing the text 'New Order Cycle Closing in...' is good. No UX, no design but just flagging I struggled to understand what the issue was proposing.
The reason why I meddled and was commenting is that I see the order cycle selection as a critical part of the user path to purchase. Critical user paths are where UX, wording and etc. is super important.
Hello, initially I used 3 months exactly for the OC date test but if the OC closes in 2.6 months from now the message will still be "closing in 3 months". So I used 75 days as the measure in the code. This way the message will never be "closing in 3 months" but either empty or "closing in 2 months". Do you agree this is better or do you prefer to have exactly 3 months?
Just a note to say I've seen out on other sites, services that you can place orders for 16 weeks in advance which seems like a lot to me. I expect there are more 'regular' shopper out there where 2 months sounds like way in the future to be ordering goods but also that 4 months has been 'seen' out there. Therefore I would say the original 3 months splits the difference :) so 3 months from my pov but would love to hear Louise & support teams thoughts.
ok :+1:
I am not sure I was clear, may I was, I'll clarify amyway:
The problem I tried to solve is that if the OC closes in 3 month exactly, for example from today, 21 Jan 2021. The label will show "closing in 3 month", same if the OC closes on the 15th Jan 2021, it will still say "closing in 3 months". Only if the OC closes on the 6th of Jan 2021, it will say "closing in 2 months". The label will only disappear if OC closes on the 22nd of January or afterwards.
What I did was to make the label disappear, for this example above, if OC closes after the 6th Jan 2021. I did this so that it will never show "closing in 3 months" but only "closing in 2 months" at a maximum.
Makes sense 馃憤
Would an alternative message like "Orders are open" be better than a blank space?
@Matt-Yorkley yup, but I'm not sure in what circumstances we have a blank space now given Luis's explanation. Either orders are open until 2 months re. "closing in 2 months" or they are closed. I don't think we have a blank space state in Luis's proposal?
My proposal is only about the time window when the message shows: I fixed it at max "closing in 2 months".
The original requirement is still there, after this time window is past (OCs closing in 4 months for example) we show it empty as per issue description above.
I am happy to change it and add some text for those cases of OCs closing in over 3 months, if you agree it's better, should be very easy :+1:
So with the proposed changes:
Example OC closing in less than 3 months:

What the OC selector will show with these changes, if the OC is closing in more than 3 months:

What we could show instead, for OCs closing in 3 or more months:

LGTM @Matt-Yorkley
ok, I can go back to the PR to do that.
@lbwright22 @RachL @lin-d-hop any concerns?
LGTM2
Looks great :) Maybe just a comment that this will need a translation key for that new text. I apologize if this is obvious 馃檲 , I just don't want to open missing translation issue anymore :)