You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The calendar file and share text are English, and the calendar file's name drops å, ä and ö #633
Needs your OK: this puts the calendar file's description and the share text in the signup's language, and keeps letters like å in the calendar file's name. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
In src/app/s/[slug]/commit-dialog.tsx:
"Add to calendar" builds an .ics whose DESCRIPTION is `Edit or cancel: ${success.editUrl}`.
"Save your link" (shown when the confirmation was emailed; "Copy link" otherwise) opens the share sheet with `My spot for ${slotName}. This link changes or cancels it, so keep it private.` and the edit link.
The file name is built with .replace(/[^A-Za-z0-9._-]+/g, '-'), so a slot in "Fika på fredag" downloads as Fika-p-fredag….
Fix, in outline
Text from the catalog. Take the DESCRIPTION and share text from the participant catalog. Keep the share text's warning that the link is private, in every language.
File names keep letters. Keep Unicode letters and digits in the file name (/[^\p{L}\p{N}._-]+/gu), still replacing path separators and other unsafe characters.
Watch for
Line folding.src/lib/ics.ts folds lines by bytes and walks back from a fold point so a multi-byte letter is never split. Since Fold calendar lines with TextEncoder/TextDecoder, not Buffer #866 it measures with TextEncoder and TextDecoder, not Buffer, which pulled a 7 kB polyfill into the page; keep it that way. Add a test that folds a long Swedish line.
Order
After #629, because the dialog's catalog and ClientMessages come from it.
Done when
Unit tests cover a Swedish signup's ICS description and share text, a file name with å, ä and ö keeping them, and folding a long Swedish line.
Updated on 13 November 2026 against main at 4f67fd4: the share button is now "Save your link" with new text, and line folding uses TextEncoder since #866.
Activity