Repository navigation
feat(calendar): preview the home page button before 1 December when signed in - #64
Merged
maxitect merged 3 commits intoNov 26, 2026
Conversation
maxitect
force-pushed
the
feat/62-calendar-preview-the-home-page-button-before-1
branch
from
November 26, 2026 19:47
c537744 to
055e46d
Compare
maxitect
force-pushed
the
feat/62-calendar-preview-the-home-page-button-before-1
branch
from
November 26, 2026 20:44
055e46d to
6a4ebdf
Compare
✅ Deploy Preview for clarksbowlingclub ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
maxitect
marked this pull request as ready for review
November 26, 2026 20:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
CalendarSettingscheckbox that lets someone signed in to the Payload admin see the home page calendar button before 1 December. The public sees nothing different until then.Changes
behaviour.previewButtonin the calendar settings, off by default, with migration20261126_193319_calendar_preview_button(one nullable-default boolean column).GET /api/calendar/buttonreturns{ show }: true only for a signed-in member when the checkbox is on.no-store.CalendarButtonstill decides the 1 to 24 December season in the browser. Before 1 December it asks that route once (never during or after the season) and shows the button whenshowis true.Acceptance criteria
/in FR and EN before 1 Dec/Closes
Closes #62
Notes
CalendarSettingsmigration, and this branch is based on it./stays static (○). The cost: until 1 December every home page visit makes one small request to/api/calendar/button, which is a function call, because the Payload session cookie ishttpOnlyand cannot be read in the browser. From 1 December the request is no longer made.t62-proof(child ofpreview) with a throwaway admin user, since deleted. The branch itself is left for you to delete; I did not run the app againstpreviewordev.payload migrateagainst themainNeon branch. The deploy preview build applies it topreview.Review
Verdict: ALL CLEAR
Rounds: 2
main; this PR is stacked on #63)Re-verified on the rebased tree (main 2c25ab7, then #60, then #62),
next startbuild on a Neon branch frompreviewwith #62's migration applied after #60's: AC1 (browser) PASS, AC2 (browser) PASS, AC3 (browser) PASS, AC4 (browser, 2 Dec; 26 Dec shows no button and makes no request) PASS, AC5 (cli,/is○) PASS, AC6 (db,20261126_193319_calendar_preview_buttonmigrated in batch 6,behaviour_preview_button boolean default false; browser, 0 console errors on/) PASS · check.sh PASSEvidence
AC1 and AC2 and AC4 (production build, port 4062, Playwright with real clock 26 Nov 2026; "2 Dec" uses a faked clock)
AC5
AC6
Console errors on
/in every case above: 0.pnpm check(lint, typecheck, build): PASS.