Skip to content

Calendar opens on 1 December by itself, with a home page button until 24 December #56

Closed

Description

@maxitect

Follow-up to #29 (PR #50). The calendar is live at /calendrier but hidden behind a manual "Visible" switch in the admin, which defaults to off. Decided on 13 November 2026:

  • The calendar shows to the public from 1 December by itself, with no one having to switch it on
  • It stays up after 24 December until the band decides to take it down
  • No link in the main navigation. Instead, a button on the home page only, shown from 1 to 24 December

Deliverables

  • /calendrier and its endpoints treat the calendar as public from 1 December of the calendar's year (Paris time), whatever "Visible" says before that date
  • "Visible" still works as the off switch: turning it off after 1 December takes the calendar down (holding page, endpoints 404), and the band can turn it back on
  • Before 1 December the public gets the holding page as today; signed-in members keep the preview
  • A button on the home page linking to /calendrier, shown from 1 to 24 December (Paris time) and not before or after, in French and English with the site's language toggle. It fits the home page design and doesn't cover the teaser's controls
  • The home page stays static: the button's dates are checked without making / render per request (for example a small client check, or a cached value that refreshes at midnight Paris time)
  • The admin guide (docs/admin-guide.md) says what the "Visible" switch now does

Acceptance criteria

  • On 30 November 23:59 Paris time a visitor gets the holding page; on 1 December 00:00 they get the calendar, with no admin change and no deploy (prove with a shifted clock)
  • With "Visible" turned off after 1 December, visitors get the holding page and both endpoints return 404; turned back on, the calendar returns
  • The calendar is still public on 25 December and in January
  • The home page button shows on 1 December and on 24 December, and not on 30 November or 25 December, in both languages, at 1280 and 390 px
  • Lighthouse mobile on the home page stays at 90+ (median of three) and / stays static
  • No console errors or CSP violations on / or /calendrier

Depends on

#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions