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

Onboarding at events: translate /onboard, use "community" wording, and handle failed invite lookups

未关闭
#653 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript

调研方向

Read plugins/auth/ui/src/routes/_public/onboard.tsx, then inspect plugins/auth/ui/src/i18n/catalogs.ts and plugins/auth/ui/src/i18n/runtime.tsx; the issue points to a reference implementation and test file on the linked branch. Port the translations, community wording, lookup retry and join failure panels, and relevant Vitest coverage. Done means the stated acceptance criteria pass for English, Spanish, French, and Chinese.

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

描述

Ported from NEARBuilders/citynode.app#386 (open), where this was fully implemented in PR NEARBuilders/citynode.app#389 before the local auth-ui plugin was removed in favor of this repo's published auth plugin.

The reference implementation (diffs, tests, i18n keys) is preserved on that PR branch: fix/386-onboard-i18n-lookup-errors — files originally lived under plugins/auth-ui/src/ here (now plugins/auth/ui/src/).

Problem

plugins/auth/ui/src/routes/_public/onboard.tsx — the /onboard?code= page used at events — has gaps for new community members:

  1. English only. All strings are hardcoded. The auth.onboard.* translation keys do not exist in this repo yet (citynode's old plugins/auth-ui/src/i18n/messages/auth.ts had full en/es/fr/zh coverage; this repo's plugins/auth/ui/src/i18n/catalogs.ts has no onboard keys).
  2. Wrong wording. The page says "organization" instead of "community" ("Join the organization", "Could not join this organization").
  3. Stuck loading. If the invite-code lookup fails (network error, 429, 5xx), the page shows "Loading invitation…" forever — no error state, no retry. A failed join ends on a panel whose only action is "Explore communities".

Proposed fix (mirroring the reference implementation)

  • Add auth.onboard.* keys to the i18n catalogs (en/es/fr/zh) and render the onboard page (and its sign-up / display-name steps) through the login i18n runtime (LoginI18nProvider + useLoginTranslation in plugins/auth/ui/src/i18n/runtime.tsx).
  • Replace "organization" with "community" everywhere in the flow.
  • Map lookup/join failures to distinct status panels with reasons and next steps: lookup error → Retry (not an endless spinner); join failures → communityNotOpen, communityFull, codeRevoked, codeExpired, codeUsedUp, codeInvalid copy with "contact the organizer" / "explore" actions.
  • Port the vitest coverage from plugins/auth-ui/src/routes/_public/-onboard.test.tsx on the reference branch (568 lines: language rendering, retry paths, join-failure panels).

Acceptance criteria

  • /onboard?code= renders in es/fr/zh per the selected language.
  • No "organization" wording remains in the onboarding flow.
  • A failed invite lookup shows an error with a Retry button instead of an endless spinner.
  • Failed joins show a specific reason and next step.
主要语言
TypeScript
星标
5
派生
3
平均合并
9 小时 37 分钟
30 天内合并 PR
157

环境准备

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

从这里开始

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

NEARBuilders/everything-dev 的其他 Issue

查看 NEARBuilders/everything-dev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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