Skip to content

The calendar file and share text are English, and the calendar file's name drops å, ä and ö #633

Closed

Description

@richshaw

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.
  • pnpm lint && pnpm typecheck && pnpm knip && pnpm test pass.

Planned with the owner in https://claude.ai/code/session_01EFKmj716ZY3b3SwR8TV8Y2 and checked against the code on main at 35288fa. The full plan is private to the owner's account: https://claude.ai/artifact/VgQH6U2s2EVx3LX991fJi8 (a Claude session on that account can open it with the Artifact tool's read action). This is step 1.5 there.

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

  1. added
    enhancement
    pipeline:ux
    on Oct 25, 2026
  2. added
    pipeline:working
    and removed on Nov 14, 2026
  3. self-assigned this
    on Nov 14, 2026
  4. added
    pipeline:working
    and removed
    pipeline:working
    on Nov 14, 2026
  5. removed
    pipeline:ux
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions