Repository navigation
Add calendar invitations and registration reminders - #83
Conversation
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>
📦 Next.js Bundle Analysis for @app/clientThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| 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.
6dd8793 to
60c9645
Compare
📦 Next.js Bundle Analysis for @app/clientThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| 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>
60c9645 to
5731469
Compare
📦 Next.js Bundle Analysis for @app/clientThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| 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.
This PR combines the calendar invitation and registration reminder features.
Calendar invitations
Registration reminders
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/currentfiles 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
tsc -b, Prettier, ESLint): passed.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