Onboarding at events: translate /onboard, use "community" wording, and handle failed invite lookups
维护者通常 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:
- English only. All strings are hardcoded. The
auth.onboard.*translation keys do not exist in this repo yet (citynode's oldplugins/auth-ui/src/i18n/messages/auth.tshad full en/es/fr/zh coverage; this repo'splugins/auth/ui/src/i18n/catalogs.tshas no onboard keys). - Wrong wording. The page says "organization" instead of "community" ("Join the organization", "Could not join this organization").
- 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+useLoginTranslationinplugins/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,codeInvalidcopy with "contact the organizer" / "explore" actions. - Port the vitest coverage from
plugins/auth-ui/src/routes/_public/-onboard.test.tsxon 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NEARBuilders/everything-dev 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
NEARBuilders/everything-dev#628 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
NEARBuilders/everything-dev#400 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
NEARBuilders/everything-dev#664 ·
维护者通常 1 天内回复
-
难度 4/5 1-2 天 新手友好度 52/100
NEARBuilders/everything-dev#663 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
NEARBuilders/everything-dev#661 ·
维护者通常 1 天内回复
查看 NEARBuilders/everything-dev 的全部 Issue
相似的 Issue
-
Shell: serve the home app's Cookie Policy on a hard reload可能已有人在做 @2001anshkaushik 今天认领。 未关闭feature module:ai
难度 2/5 1-3 小时 新手友好度 88/100
rocketride-org/rocketride-server#2899 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
gofish-graphics/gofish-graphics#1252 ·
维护者通常 1 天内回复
-
optimization P3 size:XS
难度 1/5 1-3 小时 新手友好度 88/100
josephfung/curia#2366 ·
维护者通常 1 天内回复
-
type:bug
难度 2/5 1-3 小时 新手友好度 65/100
nightgauge/nightgauge#2688 ·
维护者通常 1 天内回复