Skip to content

Add calendar invitations and registration reminders - #83

Merged
ccruzkauppila merged 2 commits into
ilmo-hackathon-consolidationfrom
feature/registration-reminders
Nov 20, 2026
Merged

ccruzkauppila merged 2 commits into
ilmo-hackathon-consolidationfrom
feature/registration-reminders

Conversation

@sleeeski

@sleeeski sleeeski commented Nov 9, 2026 •

Copy link
Copy Markdown

This PR combines the calendar invitation and registration reminder features.

Calendar invitations

  • Send an iCalendar invitation with registration confirmation emails and when a waitlisted registration is promoted into a place.
  • After successful registration, show a temporary confirmation toast (in place of the brief signup message) offering Google Calendar, Microsoft 365 / Outlook, Outlook.com and a downloadable .ics file. Interacting with the toast keeps it open; it is shown once per registration.
  • Calendar invitation times use the event's current start and end times. Calendar responses do not change registration status in Ilmo, and later event edits or cancellations do not synchronize with saved calendar entries.

Registration reminders

  • Let users set delivery and lead time once, then enable reminders for upcoming events with one click. First use guides them through preferences and Telegram linking when needed.
  • Place the reminder control in a light panel at the bottom of the registration quota card: a status line ("Don’t miss registration!" / "Reminder set") and a full-width button that toggles in place without shifting the layout. Setting a reminder shows a temporary "Reminder set!" toast with the delivery method, timing and a link to reminder settings.
  • Support email and Telegram delivery, saved reminders in settings, cancellation, and updates to pending reminders when preferences or event opening times change.
  • Telegram supports /language for English, Finnish or automatic detection. Replies and queued Telegram reminders use the latest bot preference; email keeps the user's saved website language.

Database and compatibility

Migrations 000005.sql and 000006.sql add reminder tables, preferences, Telegram linking and language state, and scheduling functions. They contain schema and function changes only; no local users, events, reminder preferences or Telegram links are included. The calendar invitation feature does not require a database migration.

The branch is rebased onto the latest main. The local ARM override, LAN development-server setting, homepage change and edits to main's pending migrations/current files are excluded. Main's pending current migration will need to be committed as 000007.sql after this merges. Existing default development and CI database configuration is unchanged.

Validation

  • Rebased onto the latest main; full Jest suite: 393 tests passed across 60 suites (120 snapshots).
  • Repository lint (tsc -b, Prettier, ESLint): passed.
  • Manual walkthrough of the calendar and reminder flows (desktop and mobile) completed locally.
  • CI pipeline passed: lint, depcheck, schema check, unit tests, production Docker build and all Cypress shards (including the updated registration and reminder specs).

Deployment notes

Reminders use the existing server, Graphile Worker, PostgreSQL and SendGrid services, plus the configured Telegram bot; no new Azure service is required. Review docs/reminder-release.md for migration and Telegram webhook setup before deployment. The calendar invitations use the existing email delivery infrastructure.

Do not merge or deploy until the calendar and reminder flows have been reviewed together and CI passes against main.

🤖 Generated with Claude Code

Send an iCalendar invitation with registration confirmation emails and
when a waitlisted registration is promoted into a place.

After a successful signup, the event page shows a temporary confirmation
toast (replacing the brief signup message) with Google Calendar,
Microsoft 365 / Outlook, Outlook.com and .ics download options. The toast
stays open once the user interacts with it and is shown once per
registration. Add Swedish calendar strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 267.8 KB (🟡 +1.79 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (450 KB)
/settings/reminders 299.84 KB 567.64 KB 126.14%

Twenty-six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (450 KB)
/ 345.88 KB 613.67 KB 136.37% (🟡 +0.36%)
/404 222.34 KB 490.14 KB 108.92% (🟡 +0.15%)
/_error 227.24 KB 495.04 KB 110.01% (🟡 +0.14%)
/admin/emails 251.32 KB 519.11 KB 115.36% (🟡 +0.14%)
/admin/event-category/create 283.14 KB 550.94 KB 122.43% (🟡 +0.11%)
/admin/event-category/list 336.21 KB 604 KB 134.22% (🟡 +0.43%)
/admin/event-category/update/[id] 283.32 KB 551.12 KB 122.47% (🟡 +0.11%)
/admin/event/create 522.37 KB 790.17 KB 175.59% (🟡 +0.27%)
/admin/event/list 343.09 KB 610.89 KB 135.75% (🟡 +0.20%)
/admin/event/update/[id] 522.79 KB 790.58 KB 175.68% (🟡 +0.26%)
/admin/organization/[slug] 310.28 KB 578.08 KB 128.46% (🟢 -0.10%)
/admin/organization/create 259.07 KB 526.86 KB 117.08% (🟢 -0.10%)
/admin/users/list 336.48 KB 604.28 KB 134.28% (🟡 +0.42%)
/event/[slug] 396.86 KB 664.66 KB 147.70% (🟡 +6.64%)
/event/[slug]/register/[quotaId] 286.9 KB 554.69 KB 123.27% (🟢 -0.12%)
/forgot 240.04 KB 507.84 KB 112.85% (🟡 +0.13%)
/invitations/accept 223.87 KB 491.66 KB 109.26% (🟡 +0.14%)
/login 253.76 KB 521.55 KB 115.90% (🟡 +0.14%)
/reset 246.09 KB 513.89 KB 114.20% (🟡 +0.10%)
/settings/accounts 309.68 KB 577.47 KB 128.33% (🟡 +0.20%)
/settings/delete 244.14 KB 511.94 KB 113.76% (🟡 +0.21%)
/settings/emails 288.01 KB 555.8 KB 123.51% (🟡 +0.26%)
/settings/profile 249.67 KB 517.47 KB 114.99% (🟡 +0.21%)
/settings/security 256.42 KB 524.22 KB 116.49% (🟡 +0.21%)
/update-registration/[updateToken] 249.15 KB 516.95 KB 114.88% (🟡 +0.13%)
/verify 222.8 KB 490.59 KB 109.02% (🟡 +0.14%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@sleeeski
sleeeski force-pushed the feature/registration-reminders branch from 6dd8793 to 60c9645 Compare November 9, 2026 19:33
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 267.8 KB (🟡 +1.79 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (450 KB)
/settings/reminders 299.84 KB 567.64 KB 126.14%

Twenty-six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (450 KB)
/ 345.88 KB 613.67 KB 136.37% (🟡 +0.36%)
/404 222.34 KB 490.14 KB 108.92% (🟡 +0.15%)
/_error 227.24 KB 495.04 KB 110.01% (🟡 +0.14%)
/admin/emails 251.32 KB 519.11 KB 115.36% (🟡 +0.14%)
/admin/event-category/create 283.14 KB 550.94 KB 122.43% (🟡 +0.11%)
/admin/event-category/list 336.21 KB 604 KB 134.22% (🟡 +0.43%)
/admin/event-category/update/[id] 283.32 KB 551.12 KB 122.47% (🟡 +0.11%)
/admin/event/create 522.37 KB 790.17 KB 175.59% (🟡 +0.27%)
/admin/event/list 343.09 KB 610.89 KB 135.75% (🟡 +0.20%)
/admin/event/update/[id] 522.79 KB 790.58 KB 175.68% (🟡 +0.26%)
/admin/organization/[slug] 310.28 KB 578.08 KB 128.46% (🟢 -0.10%)
/admin/organization/create 259.07 KB 526.86 KB 117.08% (🟢 -0.10%)
/admin/users/list 336.48 KB 604.28 KB 134.28% (🟡 +0.42%)
/event/[slug] 396.86 KB 664.66 KB 147.70% (🟡 +6.64%)
/event/[slug]/register/[quotaId] 286.9 KB 554.69 KB 123.27% (🟢 -0.12%)
/forgot 240.04 KB 507.84 KB 112.85% (🟡 +0.13%)
/invitations/accept 223.87 KB 491.66 KB 109.26% (🟡 +0.14%)
/login 253.76 KB 521.55 KB 115.90% (🟡 +0.14%)
/reset 246.09 KB 513.89 KB 114.20% (🟡 +0.10%)
/settings/accounts 309.68 KB 577.47 KB 128.33% (🟡 +0.20%)
/settings/delete 244.14 KB 511.94 KB 113.76% (🟡 +0.21%)
/settings/emails 288.01 KB 555.8 KB 123.51% (🟡 +0.26%)
/settings/profile 249.67 KB 517.47 KB 114.99% (🟡 +0.21%)
/settings/security 256.42 KB 524.22 KB 116.49% (🟡 +0.21%)
/update-registration/[updateToken] 249.15 KB 516.95 KB 114.88% (🟡 +0.13%)
/verify 222.8 KB 490.59 KB 109.02% (🟡 +0.14%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Users can opt into reminders before event registration opens. They save
delivery (email, Telegram or both) and timing once, then enable reminders
for upcoming events with one click. First use guides them through
preferences and Telegram linking; Settings -> My reminders lists, updates
and cancels reminders.

The reminder control sits in a light panel at the bottom of the quota
card with a fixed layout: a status line and a full-width button that
toggles in place. Setting a reminder shows a temporary toast with the
delivery method, timing and a link to reminder settings.

- Schedule durable Graphile Worker jobs, reschedule pending reminders when
  preferences or opening times change, pause drafts and cancel removed
  reminders. Email and Telegram track delivery separately.
- Link Telegram with expiring single-use hashed tokens, authenticate
  production webhooks and support local polling. Telegram /language
  supports English, Finnish and automatic detection; email keeps the
  user's saved website language.
- Add FI/EN/SE wording, GraphQL operations, persisted operations, schema
  snapshots, tests and deployment docs.

Migrations 000005.sql and 000006.sql contain schema and functions only.
Main's pending migrations/current files are left unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sleeeski
sleeeski force-pushed the feature/registration-reminders branch from 60c9645 to 5731469 Compare November 9, 2026 19:39
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 267.8 KB (🟡 +1.79 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (450 KB)
/settings/reminders 299.84 KB 567.64 KB 126.14%

Twenty-six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (450 KB)
/ 345.88 KB 613.67 KB 136.37% (🟡 +0.36%)
/404 222.34 KB 490.14 KB 108.92% (🟡 +0.15%)
/_error 227.24 KB 495.04 KB 110.01% (🟡 +0.14%)
/admin/emails 251.32 KB 519.11 KB 115.36% (🟡 +0.14%)
/admin/event-category/create 283.14 KB 550.94 KB 122.43% (🟡 +0.11%)
/admin/event-category/list 336.21 KB 604 KB 134.22% (🟡 +0.43%)
/admin/event-category/update/[id] 283.32 KB 551.12 KB 122.47% (🟡 +0.11%)
/admin/event/create 522.37 KB 790.17 KB 175.59% (🟡 +0.27%)
/admin/event/list 343.09 KB 610.89 KB 135.75% (🟡 +0.20%)
/admin/event/update/[id] 522.79 KB 790.58 KB 175.68% (🟡 +0.26%)
/admin/organization/[slug] 310.28 KB 578.08 KB 128.46% (🟢 -0.10%)
/admin/organization/create 259.07 KB 526.86 KB 117.08% (🟢 -0.10%)
/admin/users/list 336.48 KB 604.28 KB 134.28% (🟡 +0.42%)
/event/[slug] 396.86 KB 664.66 KB 147.70% (🟡 +6.64%)
/event/[slug]/register/[quotaId] 286.9 KB 554.69 KB 123.27% (🟢 -0.12%)
/forgot 240.04 KB 507.84 KB 112.85% (🟡 +0.13%)
/invitations/accept 223.87 KB 491.66 KB 109.26% (🟡 +0.14%)
/login 253.76 KB 521.55 KB 115.90% (🟡 +0.14%)
/reset 246.09 KB 513.89 KB 114.20% (🟡 +0.10%)
/settings/accounts 309.68 KB 577.47 KB 128.33% (🟡 +0.20%)
/settings/delete 244.14 KB 511.94 KB 113.76% (🟡 +0.21%)
/settings/emails 288.01 KB 555.8 KB 123.51% (🟡 +0.26%)
/settings/profile 249.67 KB 517.47 KB 114.99% (🟡 +0.21%)
/settings/security 256.42 KB 524.22 KB 116.49% (🟡 +0.21%)
/update-registration/[updateToken] 249.15 KB 516.95 KB 114.88% (🟡 +0.13%)
/verify 222.8 KB 490.59 KB 109.02% (🟡 +0.14%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@sleeeski
sleeeski marked this pull request as ready for review November 9, 2026 19:51
@ccruzkauppila
ccruzkauppila changed the base branch from main to ilmo-hackathon-consolidation November 20, 2026 14:48
@ccruzkauppila
ccruzkauppila merged commit eb1388d into ilmo-hackathon-consolidation Nov 20, 2026
14 checks passed
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.

2 participants