Skip to content

feat(frontend): add opt-in seasonal decorations - #397

Merged
lowicz merged 8 commits into
mainfrom
fm/oncall-festive-accent-scout
Dec 2, 2026
Merged

lowicz merged 8 commits into
mainfrom
fm/oncall-festive-accent-scout

Conversation

@lowicz

@lowicz lowicz commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Intent

Design a feature for the oncall project: a festive / fun accent for the tool, with animation welcome (for example a Christmas / winter holiday touch, but also ideas that are just playful). It must be switched on through oncall's configuration (opt-in, off by default). Come up with several to a dozen-plus distinct variants and present them to the captain for a decision through a Lavish page.

Fifteen variants (V01 to V15) were presented on a review board with a written report, and the decision was made there. During the review this was asked: "w jaki sposob bedzie to ustawiane w konfiguracji? chodzi mi konkretnie o V01 - bo niby ustawiamy to na zimowe swieta ale loga odnosza sie do innych wydarzen w ciagu roku rowniez - to byloby wdrozone na stale wtedy czy jak?" The answer shown on the board, and accepted: the setting is written once and stays; each name is a pack with its own calendar built into the product, so nobody edits the configuration when a season starts or ends, and a pack listed permanently is not shown permanently. V01 became the winter hat only (pack winter), and the all-year logo doodles became V15 with their own pack doodles.

The decision: implement V01 (winter hat on the logo mark), V05 (light garland under the "Teraz" strip), V06 (snow inside the "Teraz" strip, combined with V05 as shown on the final board), V09 (winter night on the sign-in screen), V12 (sleigh on the generator progress bar), V15 (all-year logo doodles on their seven days). Skipped: V02, V03, V04, V07, V08, V10, V11, V13, V14. Setting shape: a name plus an optional date window, off by default, e.g. ONCALL_ACCENT=winter,doodles with optional ONCALL_ACCENT_FROM / ONCALL_ACCENT_UNTIL; winter carries V01, V05, V06, V09, V12 (6 Dec to 6 Jan), doodles carries V15. Build exactly as designed in the report; honor prefers-reduced-motion, no external assets, no effect on printed or exported reports. The review ended with "ok" after the combined set was shown.

What the report and the board say about the chosen set:

The switch. ONCALL_ACCENT= (empty, the default) means off. A name turns a pack on; several names are comma-separated. Optional ONCALL_ACCENT_FROM / ONCALL_ACCENT_UNTIL (MM-DD, inclusive, may wrap the year) move the winter season only; without them winter runs 6 December to 6 January, and doodles ignores them. An unknown name, a malformed date or half a window is refused at startup. The days are evaluated on the Warsaw business date. Each person can turn the decorations off for themselves with a switch in the account menu, remembered in the browser like the theme and shown only while an accent is active; this switch is a hard requirement of the set, because the garland and the strip snow move continuously. A share-link session (people outside the team) gets no accent. A deployment without the setting downloads nothing extra. Guardrails for every variant: off by default; prefers-reduced-motion honoured with a still fallback; nothing drawn above matrix cells, role marks, state colours or text; no external assets, no sound; screen only, so CSV, e-mail, calendar feeds, printouts and documentation are untouched; new colours are a few accent tokens; the operator documentation describes the variables in both languages.

V01 A hat on the logo mark. The logo mark (rail, phone bar, sign-in) wears a small hat from 6 December to 6 January and is the plain mark for the rest of the year; one nod on load. The favicon and the e-mail header keep the plain mark.

V05 Light garland under the "Teraz" strip. A string of about 20 small lights hangs from the lower edge of the blue strip, in the free 24 px of page padding, twinkling slowly and out of step, in the product's palette (teal, salmon, signal blue, violet). The board describes it as mounted as a child of the strip (and of the phone's top bar). Steady glow with reduced motion; it covers nothing, pointer events off; identical in both themes.

V06 Snow inside the "Teraz" strip. Snow falls only inside the strip, behind its text. Combined with V05 on one strip: the snow stays inside the strip, the garland hangs below it, and the snow drift on the strip's lower edge is left out so the garland wire is the only thing there.

V09 Winter night on the sign-in screen. Stars, slow snow, a snow cap on the card and a Christmas tree built from the matrix's own role marks (P, S, 11-19), lighting up one by one. All decoration sits beside or behind the form; the tree hides below 900 px; there is no personal switch before sign-in, so the snow ends by itself after about 20 seconds.

V12 Sleigh on the generator's progress bar. A small sleigh rides the leading edge of the progress bar while the solver runs. It adds 26 px above the bar while a generation runs.

V15 Mark doodles through the year. On seven days a year the logo mark carries a small doodle: a sparkle on 31 December and 1 January, a pączek on Fat Thursday, a heart on 14 February, a pisanka on Easter Sunday and Monday, an upside-down mark on 1 April; the plain mark on the other 358 days. The pack knows its days, the movable ones included (Fat Thursday is 52 days before Easter); the list of days lives in the code. On 31 December and 1 January, which belong to both packs, both are drawn: the hat stays and the mark's dot becomes the sparkle.

Decided later, at the review and test gates of the first validation of this branch. Where these differ from the wording above, these stand:

  • The garland and the strip snow are on the desktop "Teraz" strip only. Leaving them off the phone's top bar is accepted: that bar is sticky and a garland under it would cover content. A phone shows the hat or the day's doodle on the mark and nothing else, and the documentation says so.
  • The garland is identical in both themes: theme-independent accent tokens for the blue bulbs, the bulb caps and the wire.
  • Under prefers-reduced-motion the V06 and V09 snow is a static scatter of flakes, a still fallback, not an empty strip or sky.
  • Pack names are exactly winter and doodles (no other spelling or case), and the bounds are exactly two digits each, MM-DD; everything else is refused at startup.
  • Easter comes from the calendar workdays.py already takes from the holidays package, not from a private computus, and with no new dependency (python-dateutil is not to be added or imported directly).
  • The hat nods once when a page opens and once each time the pointer passes over the logo, as the V01 board card says ("nods once when a page opens and on hover"): a nod when the pointer enters, none when it leaves.
  • The New Year sparkle keeps its one twinkle on load, as the V15 board card says ("Still, apart from one twinkle on the New Year sparkle").
  • The sleigh adds exactly 26 px above the progress bar.
  • On a phone the doughnut's icing takes the same visible colour as the egg there (the bar's blue), so the doughnut keeps its icing on the white mark.
  • The hat nods on hover on every logo that wears it: the rail, the bar of a narrow window and the sign-in screen, one nod per pass.

A later requirement: SonarCloud must report exactly 0 issues for the pull request (new and open). It reported 7 open issues (no hotspots): python:S6353 in config.py twice (use \d instead of [0-9]); in art.tsx S7767 (Math.trunc instead of | 0), S4624 (nested template literals), S6759 twice (mark component props read-only) and S6479 (a stable key instead of an index). Fix every one without changing behaviour: the seeded sequence must stay deterministic, the one-nod hover and all previews unchanged. Keep the 100 percent coverage gates. Do not mark issues as accepted or won't-fix to get to zero; fix the code.

A further ask, about the Christmas tree on the sign-in screen (V09): in the video in the pull request description the tiles the tree is built from light up one after another; on the review board's mockup the tiles twinkle. Make the implementation consistent with the mockup: the tiles twinkle, as designed. Keep the tree's placement exactly as it is in the code now (do not move it to where the mockup puts it). Honor prefers-reduced-motion (still fallback), keep determinism and the tests at 100 percent coverage, keep SonarCloud at exactly 0 issues, and refresh the pull request description's video and screens so they show the twinkling tree. This replaces "lighting up one by one" in the V09 description above.

What the mockup's tree does: every tile runs the same 3.4 s cycle in which it briefly brightens and glows in the colour of its own role, and each tile is at a different moment of that cycle, so they twinkle out of step; the tree is lit from the start and has no lighting-up sequence.

What Changed

  • Setting, off by default: ONCALL_ACCENT takes a comma-separated list of packs, winter and doodles. Each pack knows its own days, based on the Warsaw date, so the setting is written once. ONCALL_ACCENT_FROM / ONCALL_ACCENT_UNTIL (MM-DD) move the winter season only. Unknown names, malformed dates, or only one of the two dates stop the API at startup. /api/v1/config now lists the decorations to draw today.

  • What people see: winter (6 December to 6 January) adds:

    • a hat on the logo
    • a garland under the desktop "Teraz" strip and snow inside it
    • a winter night on the sign-in screen, with a tree of twinkling role marks
    • a sleigh above the generator's progress bar

    doodles puts a small drawing on the logo on seven days a year. The drawings load as a separate chunk, only when there is something to draw. They show on screen only, take no clicks, and stand still under prefers-reduced-motion. Motion on the sign-in screen stops by itself.

  • Personal control and docs: The account menu and the "More" screen get a Decorations on/off switch, shown only on decorated days and remembered in the browser. Share-link sessions never show decorations. If the browser refuses to store a preference (theme, density or decorations), the choice now holds until the page is reloaded. The setting is documented in .env.example, Compose, DESIGN.md, and the Polish and English docs.

Risk Assessment

✅ Low: The decorations are off by default, screen-only and optional, a failed download leaves the plain interface, earlier findings are fixed or settled, and the new twinkle changes only one animation and its test and matches the stated cycle.

Testing

I ran the real product (API, worker, solver, database, nginx, Chromium) with throwaway data. No baseline commands had been run before this step. The tree is lit from the start, and every tile twinkles on the same 3.4 s cycle at its own moment, in its role's colour. It sits exactly where the previous commit had it, and it stops by itself in about 20 s. I also rechecked the strip, hat, switch, share link, print, sleigh, calendar, doodles and startup refusals, and ran the related unit tests; everything passed. I had to rerun two checks because my own scripts were at fault: a missing security token on the share link, and a probe that made the sleigh jump. Both were clean on the rerun. Still open: the SonarCloud count and the pull request's refreshed video, which come after the push. I did not rerun the CSV, e-mail and calendar feed outputs. All test services and files were removed.

  • Live validation: ✅ go - 12 of 14 scenarios driven live against the product
Scenario Result Live Evidence
Open sign-in in winter: every tree tile is lit from the start and twinkles on one 3.4 s cycle, each at its own moment and in its role's colour (dark and light) ✅ pass live signin-tree-measurements.txt, signin-tree-twinkle-frames.png, signin-tree-twinkle.webm
The tree stays exactly where the previous commit had it, at 1440, 1280, 1920 and 901 px wide ✅ pass live signin-tree-measurements.txt
Leave sign-in open: all motion ends by itself after about 20 s and the tree stays lit ✅ pass live signin-tree-dark-after-27s.png, signin-tree-light-after-27s.png, signin-tree-measurements.txt
Reduced motion: tree lit, flakes drawn, nothing moves on sign-in or the strip; reloading draws the same night ✅ pass live signin-tree-reduced-motion.png, signin-tree-measurements.txt, app-checks.txt
The tree never gets in the way: hidden at 900 px and below, shown at 901 px, clear of the card, and no sign-in control is covered ✅ pass live signin-tree-measurements.txt
Desktop strip in both themes: snow stays inside, the garland hangs in the 24 px gap with the same colours, and all controls stay usable; a phone wears only the hat ✅ pass live winter-desktop-dark.png, winter-desktop-light.png, phone-winter.png, app-checks.txt
Hat nods once when the pointer enters the logo and not when it leaves, on rail, narrow window and sign-in ✅ pass live app-checks.txt
Personal switch: off removes everything, is remembered, works with blocked storage, and can be turned back on ✅ pass live switch-menu-on.png, switch-menu-off.png, app-checks.txt
Boundaries: share link is plain with no switch, printout is identical with and without decorations, a lost decoration file leaves sign-in and the app working, and an empty setting downloads nothing ex… ✅ pass live share-link.png, setting-off.png, app-checks.txt
Generate a schedule with the real solver: the sleigh follows the bar's edge, adds exactly 26 px, and goes away at the end ✅ pass live sleigh.png, generator-after-run.png, app-checks.txt
Operator settings: wrong names, wrong case, bad dates and half a window are refused at startup, valid ones start ✅ pass live startup-settings.txt
Calendar and doodles: winter 6 Dec to 6 Jan by Warsaw date, seven doodle days a year, both drawn on 31 Dec, and the plain mark on an ordinary day ✅ pass live calendar.txt, doodle-checks.txt, doodles-contact-sheet.png
SonarCloud reports exactly 0 issues for the pull request ⏸️ untested no SonarCloud analyses the pull request only after this commit is pushed, and pushing and CI belong to later phases. Static analysis is also off limits in this phase. Check the SonarCloud result on the p…
The pull request description's video and screens show the twinkling tree ⏸️ untested no Editing the pull request belongs to a later phase that this one must not run. The new video and screenshots are in the evidence folder for that step.
signin-tree-twinkle.webm

Tree: eight moments side by side

Sign-in, light theme

Sign-in after 27 s, lit and still (dark)

Sign-in after 27 s, lit and still (light)

Sign-in with reduced motion

Evidence: Tree measurements
PASS placement same as previous commit at 1440x900 :: 982,368.5,145,163
PASS placement same as previous commit at 1280x720 :: 902,278.5,145,163
PASS placement same as previous commit at 1920x1080 :: 1222,458.5,145,163
PASS placement same as previous commit at 901x800 :: 712.5,318.5,145,163
PASS dark lit from the start: every tile opacity 1, never dimmed
dark twinkle peak times (s) per tile:
   P 1.96 5.39 8.76 12.18 15.55 18.98
   S 0.25 3.67 7.05 10.47 13.89 17.27
   P 1.26 4.68 8.05 11.48 14.85 18.27
   11–19 2.97 6.39 9.77 13.19 16.56
   S 1.76 5.19 8.56 11.98 15.35 18.77
   P 0.65 4.08 7.45 10.87 14.25 17.67
   P 3.37 6.75 10.17 13.59 16.96
   11–19 1.06 4.48 7.85 11.28 14.65 18.07
   S 2.57 5.99 9.36 12.79 16.16
   P 1.56 4.98 8.36 11.78 15.15 18.57
   S 0.86 4.28 7.65 11.07 14.45 17.87
   P 2.77 6.19 9.57 12.99 16.36
   S 2.06 5.49 8.86 12.28 15.65 19.08
   11–19 0.15 3.57 6.95 10.37 13.79 17.16
   P 0.45 3.88 7.25 10.67 14.04 17.47
PASS dark every tile twinkles 5-6 times
PASS dark same 3.4 s cycle :: 3.37-3.43
PASS dark all at different moments
PASS dark never all lit up together :: most tiles bright at once: 5
PASS dark glow is the colour of the tile role
PASS dark still and lit after 21 s
   last twinkle peak at 19.08
PASS dark whole sign-in screen still after 27 s (identical screenshots)
PASS dark tiles still drawn at rest
PASS dark no page errors :: Failed to load resource: the server responded with a status of 401 (Unauthorized)
PASS light lit from the start: every tile opacity 1, never dimmed
light twinkle peak times (s) per tile:
   P 1.96 5.38 8.76 12.18 15.55 18.97
   S 0.25 3.67 7.05 10.47 13.84 17.26
   P 1.26 4.68 8.05 11.48 14.85 18.27
   11–19 2.97 6.34 9.77 13.14 16.56
   S 1.76 5.18 8.56 11.98 15.35 18.77
   P 0.66 4.08 7.45 10.87 14.24 17.67
   P 3.37 6.74 10.17 13.54 16.96
   11–19 1.06 4.48 7.85 11.28 14.65 18.07
   S 2.57 5.94 9.36 12.74 16.16
   P 1.56 4.98 8.36 11.78 15.15 18.57
   S 0.86 4.28 7.65 11.08 14.45 17.87
   P 2.77 6.14 9.56 12.94 16.36
   S 2.06 5.49 8.86 12.28 15.65 19.07
   11–19 0.15 3.57 6.95 10.37 13.74 17.16
   P 0.45 3.88 7.25 10.67 14.04 17.46
PASS light every tile twinkles 5-6 times
PASS light same 3.4 s cycle :: 3.37-3.43
PASS light all at different moments
PASS light never all lit up together :: most tiles bright at once: 5
PASS light glow is the colour of the tile role
PASS light still and lit after 21 s
   last twinkle peak at 19.07
PASS light whole sign-in screen still after 27 s (identical screenshots)
PASS light tiles still drawn at rest
PASS light no page errors :: Failed to load resource: the server responded with a status of 401 (Unauthorized)
PASS same night on every load
PASS reduced motion: nothing moves
PASS reduced motion: no decoration animations :: 0
PASS reduced motion: 30 flakes still drawn, tree fully lit
PASS tree at 900px hidden
PASS at 900px glow stays clear of the card, no sideways scroll :: {"over":false,"sx":false,"right":0}
PASS tree at 901px shown
PASS at 901px glow stays clear of the card, no sideways scroll :: {"over":false,"sx":false,"right":857.5}
PASS tree at 390px hidden
PASS at 390px glow stays clear of the card, no sideways scroll :: {"over":false,"sx":false,"right":0}
PASS no sign-in control is under a decoration
Evidence: App checks
PASS dark garland hangs from the strip edge within the 24 px gap, covers no text :: {"t":0,"h":24,"first":24,"bulbs":24}
PASS dark snow is clipped to the strip
PASS dark every control still reachable :: 122 controls
PASS dark nothing drawn in matrix cells
PASS light garland hangs from the strip edge within the 24 px gap, covers no text :: {"t":0,"h":24,"first":24,"bulbs":24}
PASS light snow is clipped to the strip
PASS light every control still reachable :: 122 controls
PASS light nothing drawn in matrix cells
PASS garland colours identical in both themes
PASS hat nods once per pass on rail :: enter/leave 1/0 1/0 1/0; starts since page open (sign-in and app together): 1
PASS hat nods once per pass on narrow :: enter/leave 1/0 1/0 1/0; starts since page open (sign-in and app together): 1
PASS hat nods once per pass on sign-in :: enter/leave 1/0 1/0 1/0; starts since page open (sign-in and app together): 1
PASS switch off removes all decoration at once
PASS off is remembered after reload
PASS switch still offered while off
PASS back on
PASS switch works with blocked browser storage
PASS phone: hat only
PASS reduced motion strip: still, flakes and lights drawn :: {"a":0,"f":34,"b":24}
PASS printout same with and without decorations :: visible fx 0
   share link 201
PASS share link: no decorations
PASS share link: no switch
PASS art.js lost: sign-in still works
PASS art.js lost: app still works
PASS art.css lost: sign-in still works
PASS art.css lost: app still works
   sleigh samples [{"now":30,"add":26,"lead":-220.18292236328125,"right":953.1829223632812,"above":0},{"now":34,"add":26,"lead":-5.6820556640625455,"right":693.4820556640625,"above":0},{"now":39,"add":26,"lead":-9.576586914062545,"right":640.8765869140625,"above":0}]
PASS sleigh rides while the real solver runs, adds exactly 26 px :: 26.0
PASS sleigh stays at the edge of the bar and inside the track
PASS sleigh gone when the run ends
PASS setting off: no decoration file downloaded :: 67 requests
PASS setting off: no decoration drawn
PASS setting off: all requests stay on this host
PASS setting off: no switch
frames 366 progress values 0 10 30 31 33 34 100 | sleigh left minus bar edge, px: min -1.5 max 0.0
PASS sleigh travels with the bar edge in every frame (undisturbed page)
0 []

Garland and snow, dark

Garland and snow, light

Phone: hat only

Narrow window

Sleigh at the edge of the progress bar, real solver run

Generator after the run, no sleigh

Decorations switch, on

Decorations switch, off

Deployment without the setting

Share link, plain

Logo doodles on their days; columns: phone, rail, sign-in; last row is an ordinary day

Evidence: Startup settings
Real API start (uvicorn) with each setting:
[] from=[] until=[]                        STARTS
[winter] from=[] until=[]                  STARTS
[winter,doodles] from=[12-01] until=[01-06] STARTS
[winter, doodles] from=[] until=[]         STARTS
[Winter] from=[] until=[]                  REFUSED (  Input should be 'winter' or 'doodles' [type=literal_error])
[christmas] from=[] until=[]               REFUSED (  Input should be 'winter' or 'doodles' [type=literal_error])
[winter,] from=[] until=[]                 REFUSED (  Input should be 'winter' or 'doodles' [type=literal_error])
[winter] from=[12-1] until=[01-06]         REFUSED (  Value error, ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL are days of the year written MM-)
[winter] from=[13-01] until=[01-06]        REFUSED (  Value error, ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL are days of the year written MM-)
[winter] from=[02-30] until=[03-01]        REFUSED (  Value error, ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL are days of the year written MM-)
[winter] from=[٠١-٠١] until=[01-06]    REFUSED (  Value error, ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL are days of the year written MM-)
[winter] from=[12-01] until=[]             REFUSED (  Value error, Set both ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL to move the winter seas)
[winter] from=[] until=[01-06]             REFUSED (  Value error, Set both ONCALL_ACCENT_FROM and ONCALL_ACCENT_UNTIL to move the winter seas)
Evidence: Calendar 2026-2028
2026 winter 32 days: 01-01..01-06 and 12-06..12-31
2026 sparkle 2 days: 01-01 12-31
2026 doughnut 1 days: 02-12
2026 heart 1 days: 02-14
2026 flip 1 days: 04-01
2026 egg 2 days: 04-05 04-06
2027 winter 32 days: 01-01..01-06 and 12-06..12-31
2027 sparkle 2 days: 01-01 12-31
2027 doughnut 1 days: 02-04
2027 heart 1 days: 02-14
2027 egg 2 days: 03-28 03-29
2027 flip 1 days: 04-01
2028 winter 32 days: 01-01..01-06 and 12-06..12-31
2028 sparkle 2 days: 01-01 12-31
2028 heart 1 days: 02-14
2028 doughnut 1 days: 02-24
2028 flip 1 days: 04-01
2028 egg 2 days: 04-16 04-17
2026-12-05T22:59 UTC -> []
2026-12-05T23:00 UTC -> ['winter']
2027-01-06T22:59 UTC -> ['winter']
2027-01-06T23:00 UTC -> []
2026-12-31T12:00 UTC -> ['winter', 'sparkle']
Evidence: Doodle checks
PASS 2026-12-31 signin: wears "winter sparkle" :: winter sparkle
PASS 2026-12-31 signin: hat and sparkle both drawn, dot replaced
PASS 2026-12-31 rail: wears "winter sparkle" :: winter sparkle
PASS 2026-12-31 rail: hat and sparkle both drawn, dot replaced
PASS 2026-12-31 phone: wears "winter sparkle" :: winter sparkle
PASS 2026-12-31 phone: hat and sparkle both drawn, dot replaced
PASS 2027-02-04 signin: wears "doughnut" :: doughnut
PASS 2027-02-04 rail: wears "doughnut" :: doughnut
PASS 2027-02-04 phone: wears "doughnut" :: doughnut
PASS 2027-02-14 signin: wears "heart" :: heart
PASS 2027-02-14 rail: wears "heart" :: heart
PASS 2027-02-14 phone: wears "heart" :: heart
PASS 2027-03-28 signin: wears "egg" :: egg
PASS 2027-03-28 rail: wears "egg" :: egg
PASS 2027-03-28 phone: wears "egg" :: egg
PASS 2027-04-01 signin: wears "flip" :: flip
PASS 2027-04-01 rail: wears "flip" :: flip
PASS 2027-04-01 phone: wears "flip" :: flip
PASS 2027-05-10 signin: wears ""
PASS 2027-05-10 rail: wears ""
PASS 2027-05-10 phone: wears ""

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ℹ️ frontend/src/decor/decor.css:112 - The tree's tiles stop twinkling after about 20 seconds: 6 runs of the 3.4 s cycle, minus each tile's head start, so 17.4 to 20.3 s. After that the tree stays lit and still. The intent describes the cycle but does not say whether it ever ends. Ending it fits the V09 reason for the snow (nobody can switch decorations off before signing in) and the DESIGN.md rule that the sign-in screen stops moving by itself. No change needed; noted so the author knows the twinkle is not endless.
✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 12 of 14 scenarios driven live against the product
Scenario Result Live Evidence
Open sign-in in winter: every tree tile is lit from the start and twinkles on one 3.4 s cycle, each at its own moment and in its role's colour (dark and light) ✅ pass live signin-tree-measurements.txt, signin-tree-twinkle-frames.png, signin-tree-twinkle.webm
The tree stays exactly where the previous commit had it, at 1440, 1280, 1920 and 901 px wide ✅ pass live signin-tree-measurements.txt
Leave sign-in open: all motion ends by itself after about 20 s and the tree stays lit ✅ pass live signin-tree-dark-after-27s.png, signin-tree-light-after-27s.png, signin-tree-measurements.txt
Reduced motion: tree lit, flakes drawn, nothing moves on sign-in or the strip; reloading draws the same night ✅ pass live signin-tree-reduced-motion.png, signin-tree-measurements.txt, app-checks.txt
The tree never gets in the way: hidden at 900 px and below, shown at 901 px, clear of the card, and no sign-in control is covered ✅ pass live signin-tree-measurements.txt
Desktop strip in both themes: snow stays inside, the garland hangs in the 24 px gap with the same colours, and all controls stay usable; a phone wears only the hat ✅ pass live winter-desktop-dark.png, winter-desktop-light.png, phone-winter.png, app-checks.txt
Hat nods once when the pointer enters the logo and not when it leaves, on rail, narrow window and sign-in ✅ pass live app-checks.txt
Personal switch: off removes everything, is remembered, works with blocked storage, and can be turned back on ✅ pass live switch-menu-on.png, switch-menu-off.png, app-checks.txt
Boundaries: share link is plain with no switch, printout is identical with and without decorations, a lost decoration file leaves sign-in and the app working, and an empty setting downloads nothing ex… ✅ pass live share-link.png, setting-off.png, app-checks.txt
Generate a schedule with the real solver: the sleigh follows the bar's edge, adds exactly 26 px, and goes away at the end ✅ pass live sleigh.png, generator-after-run.png, app-checks.txt
Operator settings: wrong names, wrong case, bad dates and half a window are refused at startup, valid ones start ✅ pass live startup-settings.txt
Calendar and doodles: winter 6 Dec to 6 Jan by Warsaw date, seven doodle days a year, both drawn on 31 Dec, and the plain mark on an ordinary day ✅ pass live calendar.txt, doodle-checks.txt, doodles-contact-sheet.png
SonarCloud reports exactly 0 issues for the pull request ⏸️ untested no SonarCloud analyses the pull request only after this commit is pushed, and pushing and CI belong to later phases. Static analysis is also off limits in this phase. Check the SonarCloud result on the p…
The pull request description's video and screens show the twinkling tree ⏸️ untested no Editing the pull request belongs to a later phase that this one must not run. The new video and screenshots are in the evidence folder for that step.
  • Built this commit and the one before it (a5f8231), and compared the tree's position in both at four window sizes
  • Real API, worker, solver, PostgreSQL 18.7 and nginx with the repo's own config, driven in Chromium with throwaway demo data
  • Sign-in tree: 24 s of measurements in dark and light themes, a still check after 27 s, reduced motion, 900/901/390 px widths, reload, and clicking through the decoration (signin-tree-measurements.txt)
  • Strip garland and snow, hat nod, personal switch, blocked storage, phone, print, share link, lost decoration file, setting off, sleigh with the real solver (app-checks.txt)
  • Real API start with 13 settings (startup-settings.txt) and /api/v1/config for every day of 2026-2028 with a moved clock (calendar.txt)
  • Each doodle day on sign-in, rail and phone, with the API clock moved to that day (doodle-checks.txt)
  • npx vitest run src/decor src/accent.test.tsx src/hooks/useAccentHost.test.tsx scripts/decor-load.test.mjs
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…odles

ONCALL_ACCENT lists the decoration packs a deployment allows; empty, the
default, draws nothing. The API answers in /api/v1/config with what to
draw on today's Warsaw date, so the setting is written once and left and
the interface keeps no calendar of its own.

- winter, 6 December to 6 January unless ONCALL_ACCENT_FROM and
  ONCALL_ACCENT_UNTIL (MM-DD, both or neither) name another season: a hat
  on the logo mark, snow inside the "Teraz" strip and a garland of lights
  under it, a winter night on the sign-in screen, and a sleigh ahead of
  the generator's progress bar.
- doodles: one small drawing on the logo mark on seven days of the year
  (New Year's Eve and Day, Fat Thursday, 14 February, Easter Sunday and
  Monday, 1 April).

Every drawing lives in one lazily loaded chunk that only a deployment
with the setting downloads. It is styled on a screen only, so printouts,
exports and e-mails stay plain; nothing moves under
prefers-reduced-motion; a share-link session is never decorated; and each
person can turn the decorations off for their own browser in the account
menu. The garland and the strip snow belong to the desktop strip: a phone
shows the hat or the doodle only.
Seven open issues on the pull request, fixed in the code with no change
in behaviour:

- config.py: the MM-DD shape is `\d{2}-\d{2}` under re.ASCII, which is
  exactly what `[0-9]{2}-[0-9]{2}` matched (S6353, twice).
- art.tsx: the seeded sequence keeps its state unsigned (`>>> 0`) instead
  of signed (`| 0`). The state is only ever read through 32-bit operators,
  so the bits and the numbers drawn are the same (S7767).
- art.tsx: the garland wire is joined from its parts instead of nesting
  one template literal in another (S4624).
- art.tsx: the tree's lights are worked out once, each named by the moment
  it comes on, so a light and a row have a key of their own instead of an
  array index, and rendering no longer counts as it goes (S6479).
- art.tsx: the props of LoginNight and ProgressRider are read-only (S6759).

The markup the decorations render is byte for byte what it was, and the
sequence is identical over two million draws from ten seeds.
@lowicz lowicz changed the title feat(accent): add opt-in seasonal decorations feat(frontend): add opt-in seasonal decorations Dec 2, 2026
…ard shows

The tree on the winter sign-in screen lit its role marks once, one after
another. On the design board they twinkle, so they do here now: every
light runs the same slow cycle with a short glow in the colour of its own
role, and each starts at a moment of its own so no two twinkle together.
The moments are the board's.

The tree stays where it was. Like everything else on the sign-in screen,
which nobody can switch off before signing in, the twinkle ends by itself
after about twenty seconds and leaves the tree lit; under
prefers-reduced-motion the tree is lit and still from the start.
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@lowicz
lowicz merged commit 35500fa into main Dec 2, 2026
18 checks passed
@lowicz
lowicz deleted the fm/oncall-festive-accent-scout branch December 2, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant