You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calendar: preview the home page button before 1 December when logged in #62
The home page button that leads to the advent calendar (src/app/(frontend)/_components/CalendarButton.tsx) only shows from 1 December. Before launch, we want to check it on the live site without showing it to the public.
Deliverables
A checkbox in CalendarSettings, for example "Show the home page calendar button to logged-in users before 1 December" (migration). Off by default.
When the checkbox is on and the visitor is logged in to Payload, the home page shows the calendar button before 1 December, in both languages, linking to /calendrier or /calendar.
Visitors who aren't logged in see no change: no button before 1 December, whatever the checkbox says. From 1 December, the button shows for everyone, as it does today.
Acceptance criteria
With the checkbox on, a logged-in Payload user sees the calendar button on / in French and English before 1 December
With the checkbox off, a logged-in user sees no button before 1 December
A visitor who isn't logged in sees no button before 1 December, with the checkbox on or off
From 1 December, everyone sees the button whatever the checkbox says
Activity