Repository navigation
feat(calendar): apply Loic's changes before the 1 December opening - #63
Merged
maxitect merged 14 commits intoNov 26, 2026
Merged
Conversation
✅ 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 19:32
maxitect
marked this pull request as draft
November 26, 2026 19:37
maxitect
marked this pull request as ready for review
November 26, 2026 19:43
maxitect
marked this pull request as draft
November 26, 2026 20:12
maxitect
marked this pull request as ready for review
November 26, 2026 20:23
maxitect
marked this pull request as draft
November 26, 2026 20:28
maxitect
marked this pull request as ready for review
November 26, 2026 20:33
… Clark's with red shadow, centred ball
…ng Advent calendar to fit
… above the sound button
… logo colours from the site theme
maxitect
force-pushed
the
feat/60-calendar-lo-c-s-round-of-changes-before-1-december
branch
from
November 26, 2026 20:44
518ce63 to
b44e545
Compare
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
Loïc's 26 November changes to the advent calendar, ported from his Codex copy: no download, no per-door colour, an opening sound chosen in the admin, an Instagram button, a new intro, snowflakes and the site-header logo.
Changes
downloadtext ordownloadLabel, and?download=1no longer setsContent-Dispositionon/api/calendar/audio/{day}.colorfield removed fromcalendar-doors; every door takes thedoorColorspalette.audio(audio/mpeg, public bucket likemedia) and anopeningSoundupload oncalendar-settings.openingSound.ts(inline base64) is deleted; the page fetches the file. Loïc'scalendar-opening.mp3is inpublic/audio/as the fallback when the field is empty./api/calendar/opening-sound, a same-origin proxy of the storage file, because the page's CSP hasconnect-src 'self'andfetchof the bucket URL would be blocked (and would need a bucket CORS rule). Cached immutably per?v=version./?isFrench=…, on the masthead and the holding page.calendar_remove_download_and_colorandaudio_and_opening_sound.Acceptance criteria
?download=1not an attachment/publicfallback/calendrierand/calendarshow the new intro in prodCloses
Closes #60
Notes
Post-merge steps, in order (production data is not touched by this PR):
payload migrateagainst Neonmain. This dropscalendar_doors.colorandcalendar_settings_locales.texts_download. Read-only check of prod on 26 November: door 1 hascolor = #f7ab55(door 2 none); it will fall back to the palette, as the ticket intends. If Loïc wants that colour kept, add it todoorColorsin the admin.calendar-opening.mp3(the same file aspublic/audio/calendar-opening.mp3), then set it as the Opening sound in Calendar settings. Until then the/publicfallback plays the same sound.calendar_settings_localeshas no rows (read-only check), so no saved intro overrides the defaults: nothing to change for the new intro. If an intro is saved later or by the time of merge, clear it or replace it with the new text.Other points:
previewbranch (migrations applied, one audio, two doors, one settings row withyear = 2025so the doors are open before 1 December) and its bucket.neon env pullwas used to read the branch variables.check.shranpnpm build, which rewrites.nextin the shared checkout; this affects a dev session on port 3000./api/calendarin the console of the last run are the expected response while the calendar is switched off (holding page).Prises-pour-Max-2026-11-26.zipis untracked and not committed.Review
Verdict: ALL CLEAR
Rounds: 7
payload migratehung on the "dev mode push" prompt, because adevrow (batch -1) was left in the preview branch'spayload_migrationsby a dev server run against itpreviewbranch (row deleted); later previews runpayload migratewith no promptneon env pull/api/calendar/audio/1on the preview answers 200 from storageToggleis stacked above the sound button/api/calendar/opening-soundthrew a 500 when the storage fetch rejected, and its 404 had no cache header/audio/calendar-opening.mp3when the proxy fails/publicfileRe-verified locally (518ce63): opening-sound fallback (browser) PASS · on the deploy preview (d3e818c): language toggle (browser, deploy) PASS, AC8 (browser, deploy) PASS, AC1 (browser) PASS, AC3 (browser, deploy) PASS, AC5 (browser) PASS, AC6 defaults (deploy) PASS, AC7 (browser, both motion settings) PASS · check.sh PASS · CI check PASS
The only console error on the preview is Netlify's preview-only drawer (
/.netlify/scripts/cdp) framing app.netlify.com againstframe-src; production does not inject that script.CSS weight on the calendar page: before, 11.3 KB inline (3.6 KB gzip) plus the 19.9 KB font stylesheet (2.8 KB gzip); now the site stylesheet is added, 38.8 KB (7.3 KB gzip), served from 'self' and shared with the rest of the site.
Evidence
AC1
AC2
AC3
AC4
AC5
AC6
AC7
AC8
AC9
Review evidence
Screenshots at 390px and in English were taken in review (above).