The public signup page and the sign-up dialog are English-only
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- next.js, nextjs, typescript
調査の方向性
Start with the listed signup page, dialog, message helper and shared component files, then read the prerequisite work in issues #622, #623, #624 and #628. Run the existing signup tests and inspect the JavaScript budgets and slot row layout test. Done means Swedish strings render for the Swedish test signup, English remains unchanged, the production build end-to-end check passes in both languages, and all listed budgets and checks meet the stated limits.
索引モデルが issue の本文から書いたものです。
説明
Needs your OK: this moves the public signup page's and the sign-up dialog's text into the catalog, and raises four JavaScript budgets by about 3.5 KB. English stays word for word the same. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
These files hold about 120 English strings:
- the public page:
src/app/s/[slug]/page.tsxandsignup-view.tsx; - the sign-up dialog:
commit-dialog.tsxandparticipant-fields.tsx; - the message helpers:
capacity-message.ts,closed-message.ts,conflict-message.ts,gone-message.ts,name-message.ts,rate-limit-message.tsandparticipant-error.ts.
Many of the strings are glued from pieces:
'spot is' / 'spots are';`${ownCount} slots`;- "You're signed up for {x}." split across elements;
- a reminder clause spliced into the middle of a sentence;
`(no ${field.label.toLowerCase()})`.
Swedish word order and plurals need whole messages.
Fix, in outline
- Server components take a translator from
getTranslator(locale, 'participant')(#620) and stay synchronous. - The message helpers take a translator argument instead of returning English, so the same code runs on the server and in the dialog.
- The dialog gets its messages from
ClientMessages:- a
'use client'component that importsNextIntlClientProviderfromnext-intland takeslocale,messagesandtimeZone="UTC"as props; - a server-only
messagesFor(locale, namespace), with English merged under, picks the participant messages; - only
ClientMessages.tsxmay import the provider, enforced by a lint rule. next-intl's server provider fills any missing prop from the request config, which reads headers and would make static pages dynamic; - where the dialog needs only a few fixed strings, pass them as props instead.
- a
SignupViewBodytakes its language from its caller: the signup's on/s/[slug]and in Preview, and'en'for the landing page's example card, whose content is English.- Whole messages with ICU plural and select for every glued sentence. Rephrase "(no {label})" so it works for any noun's gender.
- Draft and archived signups show their state messages in the signup's language, which the loader from #628 gives.
- The shared bits.
site-footer.tsx,banner.tsxandui/BottomSheet.tsxmove intocommon.SiteFootertakeslocaleas a prop (help and legal pass'en'), because static pages must not callgetEnv(). - A partial
src/messages/sv.jsonis committed from here on. - A Swedish test signup. Add one to
tests/e2e/global-setup.ts: create it throughcreateSignup, then setsettings.localewithdb.update, since Swedish can't be chosen until the launch step. - A production-build e2e renders a participant message with arguments, in English and Swedish. It's the end-to-end guard for precompiling (#624).
- Turn on the lint rules from #623 for
src/app/s/[slug](notc/orunsubscribe/yet) and these components.
Watch for
- English must not change by a character. The existing unit and e2e tests assert it. The e2e specs that import
GONE_PAGE(signup-not-found.spec.ts,edit-token.spec.ts) build an English translator. - Budgets.
- The dialog's chunk counts on every route whose module graph includes it:
/s/[slug],/s/[slug]/c/[id],/and/app/signups/[id]/preview. - Raise each by the measured amount, about 3.5 KB, with that reason. Raising a budget goes to the owner.
pnpm budgetscounts JS chunks only, so note the messages' size in the HTML and RSC payload in the PR.
- The dialog's chunk counts on every route whose module graph includes it:
- Layout widths.
ACTION_SIZINGinslot-format.tswas sized for "Sign up"; runtests/e2e/slot-row-layout.spec.tsagainst the Swedish signup too. - Help walkthroughs find some of these strings through
.ui.tslists ('Sign up', 'Untitled slot', 'Email (optional)'). Unchanged English keeps them green.
Order
After #622, #623, #624 and #628. This needs the formatting with a language from #622, the checks and lint rules from #623, precompiling from #624 (so the dialog never ships the full runtime), and the page's language from #628.
Done when
- The Swedish test signup renders every string
sv.jsonhas in Swedish, and English elsewhere. English pages are unchanged. - The production-build e2e with arguments passes in both languages.
- The four budgets are raised by the measured amount, no more.
pnpm lint && pnpm typecheck && pnpm knip && pnpm test,pnpm test:dbandpnpm test:e2epass.
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 part of step 1.2 there.
- 主要言語
- TypeScript
- スター
- 19
- フォーク
- 4
- 平均マージ
- 22時間 46分
- マージ済み PR(30日)
- 170
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
richshaw/OpenSignup のほかの issue
-
bug pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
richshaw/OpenSignup#711 ·
メンテナーはふだん 1 日以内に返信
-
Participant name and notes limits are typed twice, in the schemas and on the participant pages対応中かも @bfs2021 が 2 日前に担当しました。 オープンenhancement good first issue pipeline:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
richshaw/OpenSignup#705 ·
メンテナーはふだん 1 日以内に返信
-
enhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
richshaw/OpenSignup#654 ·
メンテナーはふだん 1 日以内に返信
-
The "what people see" picture on the Close or reopen a signup help page is too small to read on a phone対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンenhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
richshaw/OpenSignup#652 ·
メンテナーはふだん 1 日以内に返信
-
On a phone, a signup's page has two links called "Settings" that go to different places対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンenhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
richshaw/OpenSignup#589 ·
メンテナーはふだん 1 日以内に返信
richshaw/OpenSignup の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
components-web-app/docs#307 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
localstack/localstack-mcp-server#112 ·
メンテナーはふだん 1 日以内に返信
-
area:frontend kind:bug priority:p1 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
PhyberApex/kuroshiro#1687 ·
メンテナーはふだん 1 日以内に返信
-
Performance (Web Vitals) collector: LCP/FCP from background tabs are not discarded, inflating p75オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
umami-software/umami#4720 ·
メンテナーはふだん 3 日以内に返信