NGU-Web/server/src
Zaldimmar 68f08b633c Let the front page countdown filter by event scope and type
Admin > Front page > Countdown gains two optional dropdowns, "Only
this scope" and "Only this type", each defaulting to any. They narrow
which event counts as "the next one": National + Retreat counts down
to the next national retreat and skips a sooner regional class. A
pinned event still wins over both. When nothing matches, the
countdown band doesn't render, as before.

Migration 026 adds front_page.countdown_scope_id, a foreign key to
event_scopes (ON DELETE SET NULL, so removing a scope returns it to
"any"), and countdown_event_type, checked against the same values as
events.event_type. Adding an event type now widens both CHECKs; the
note in eventTypes.ts and the guide say so.

Also clears the older em-dashes from home.js and eventTypes.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:59:29 -05:00
..
migrations Let the front page countdown filter by event scope and type 2026-09-26 19:59:29 -05:00
routes Let the front page countdown filter by event scope and type 2026-09-26 19:59:29 -05:00
admin-cli.js v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00
admin-crud.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
admin-schema-sync.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
admin-schema.js Let the front page countdown filter by event scope and type 2026-09-26 19:59:29 -05:00
auth.js Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
db.js Consolidate migrations 001–023 into one baseline schema 2026-09-26 17:34:23 -05:00
index.js Call the descriptor sync once at boot, and rename the package 2026-09-26 18:26:12 -05:00
migrate-cli.js v1.3 - added an sqlite db and built data structure 2026-09-25 02:35:46 -05:00
rateLimit.js v1.3 - added an sqlite db and built data structure 2026-09-25 02:35:46 -05:00
shape.js Replace the front page with an admin-driven home 2026-09-25 05:37:42 -05:00