Skip to content

feat(theme): schedule seasonal site themes - #469

Open
Dasa122 wants to merge 14 commits into
mainfrom
feat/seasonal-theme-scheduler
Open

Dasa122 wants to merge 14 commits into
mainfrom
feat/seasonal-theme-scheduler

Conversation

@Dasa122

@Dasa122 Dasa122 commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

Admins can now plan the school's seasonal look ahead of time instead of switching it by hand. Each period is a repeating date range — a season, a holiday week — and the right theme simply shows up on the site while that period lasts.

Closes #445

Changes

  • Admins can schedule a theme for a date range that repeats every year, including ranges that run across New Year.
  • Easter week always takes priority, a scheduled period beats the theme the school picked by hand, and the hand-picked theme is the fallback — so visitors just see the correct theme appear.
  • Two periods may not overlap: the second one is refused when saving, and an impossible date (29 February, say) is rejected too.
  • New schedule editor on the admin appearance page: every period in one list, add, edit, delete, with a reminder that a scheduled period overrides the manual choice until it ends.
  • One-time notice for signed-in users when a seasonal theme switches on: keep it (the highlighted answer) or turn seasonal themes off permanently. Each new season asks once again; turning them off silences it for good.
  • Copy in Hungarian and English.

Verification

  • bun run lint
  • bun run typecheck
  • bun run build
  • Translations added to both apps/iris/public/locales/en/translation.json and apps/iris/public/locales/hu/translation.json
  • Migration generated with bun run db:generate and committed

@filc-preview-vm

filc-preview-vm Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Preview is up

Environment pr-469.preview.filc.petrik.hu
Commit 8f33715
URL https://pr-469.preview.filc.petrik.hu
Edge check unreachable (getaddrinfo ENOTFOUND pr-469.preview.filc.petrik.hu)

Posted by filc-deployer. The preview database is its own container and is
destroyed when this pull request closes.

…ription

The behaviour is unchanged; only the schedule description copy lost the
Easter clause, in both languages.
Resolve the package.json test glob and the 0030 migration slot (site_theme_schedule re-emitted as 0031).

This branch was successfully deployed

1 active deployment
preview-pr-469 — 8f337155 Deployed Nov 17, 2026 by filc-preview-vm[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

seasonal theme scheduler

1 participant