Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Signup links and field refs drop ø, æ, ß and ł

未关闭 适合新手
#641 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
backend

调研方向

阅读src/lib/kebab.ts和src/lib/slug.test.ts中的现有用例,然后检查 issue 中提到的 slot 和 field 测试。为列出的字母添加覆盖,同时保留 å、ä 和 ö 当前的输出。新映射得到覆盖,且列出的 lint、typecheck、knip 和 test 命令均通过后,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug pipeline:ready pipeline:ux

Needs your OK: this changes how the web addresses of new signups, and the refs of new fields and slots, are made from text with these letters. Existing links don't change. Swap pipeline:proposed for pipeline:ready to have it built.

What happens

toKebab in src/lib/kebab.ts turns text into the kebab-case behind signup slugs, workspace slugs, slot refs and field refs. It strips accents with NFKD, which works for å, ä, ö, é and ü, but some letters don't decompose and are dropped or split the word:

  • "Smørrebrød" → sm-rrebr-d
  • "Æblekage" → blekage
  • "Straße" → stra-e
  • "Łódź" → odz

So Danish, Norwegian, German and Polish titles get broken-looking links. Non-Latin titles (Cyrillic, Greek, Chinese) come out empty and fall back to signup, field or slot, which is fine for now.

Fix, in outline

  • Map the letters that don't decompose, before NFKD: ø→o, æ→ae, œ→oe, ß→ss, ł→l, đ→d, þ→th, ð→d, in upper and lower case.
  • Leave non-Latin scripts on the fallback.

Watch for

  • Existing slugs and refs never change. toSlug and toFieldRef are only called to make new values (pickAvailableSlug in src/services/signups.ts, the slot ref in src/services/slots.ts, the workspace slug in src/auth/adapter.ts), so nothing re-derives a stored one.
  • No Node imports. toKebab is shared with the builder in the browser.
  • Tests pin today's outputs (src/lib/slug.test.ts and the slot-field tests).

Order

None. This can be built any time; it should land before Danish or Norwegian ship.

Done when

  • Unit tests cover each mapped letter, and å, ä and ö come out as before.
  • 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). It's in phase 4 there.

主要语言
TypeScript
星标
19
派生
4
平均合并
20 小时 9 分钟
30 天内合并 PR
156

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

richshaw/OpenSignup 的其他 Issue

查看 richshaw/OpenSignup 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。