A new List choice typed after "Add to list" is thrown away unless you press Enter
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Read src/components/build-wysiwyg/EnumPicker.tsx and its useOutsideClose behavior, then inspect EnumPicker.test.tsx and the SlotEditor and WysiwygGroup call sites. Reproduce the outside-click and unmount-blur sequence first. Done means outside clicks save once, Escape cancels, and Enter, Tab, and the Add button save once; verify Duplicate uses the new slot value and group heading renaming still works.
索引モデルが issue の本文から書いたものです。
説明
Needs your OK: this changes what happens when an organizer types a new choice into a List field and clicks away. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
On the Build tab, a List field's picker has "+ Add to list". Choosing it shows a small box ("New item name"). What you type is added only if you then press Enter, or Tab out of the box. A click anywhere else throws the text away. That includes another field, Duplicate, Done, or the page. Nothing on screen says Enter is needed, and nothing says the text was dropped. The slot keeps its old value (or sits under the empty group heading), and the list keeps its old choices.
The picker is EnumPicker (src/components/build-wysiwyg/EnumPicker.tsx). SlotEditor uses it for a slot's value, and WysiwygGroup for a group's heading. A mousedown outside runs useOutsideClose → close(), which sets settledRef. The box's onBlur → commitNew then returns early. Tab works only because the hook isn't given { focus: true }, so a blur without a click still reaches commitNew.
In the walkthrough, a new organizer followed a step that said "choose Add to list and type Main", then chose Duplicate as the next step said. The choice was lost twice before they tried Enter. Every list in a signup built that way starts with this step.
Fix, in outline
- A click outside adds the text, the way Tab already does: if the box holds anything but spaces, add it to the list and pick it for this slot, then close.
- Escape stays the one way to cancel.
- Show an "Add" button beside the box, so a mouse user can see how to finish without knowing about Enter.
- Keep the
settledRefguard, so Enter (or the Add button) followed by the unmount blur still adds once.
Watch for
- The discard is deliberate today.
close()'s comment says a blur after Escape or a click outside must not add the draft. Only the click-outside half changes. Escape keeps cancelling. - Tests that must keep passing:
EnumPicker.test.tsxhas "Escape inside the add-input cancels without saving", "does not double-add when Enter is followed by an unmount blur" and "does not add when Escape is followed by an unmount blur". Leave them as they are. - A click that also does something. The click that commits may be on Duplicate or Done.
commitNewawaitsonAddOption(the field'schoicesPATCH) beforeonChange(the cell value). Check that a Duplicate pressed straight after typing copies the new value, not the old one, or say in the PR why it can't race. - The group heading's picker (
WysiwygGroup) is the same component, so it changes too. Check renaming a group heading still behaves. - Help: no article mentions Add to list today. Run the help-pages skill's
affected-articles.mjsanyway, in case one shows the picker in a screenshot.
Choices this makes
- A click outside adds rather than discards. Every other builder control saves as you go, so typed text vanishing is the surprise. The alternative is to keep the discard and only show "Press Enter to add".
- An "Add" button, labelled "Add". A visible way to finish beats a hint line. A hint alone would still lose text for anyone who misses it.
Done when
- Typing a new choice and then clicking another field, Duplicate or Done adds the choice to the list and sets it on the slot.
- Escape still cancels with nothing added. Enter, Tab and the Add button each add it once.
- Unit tests in
EnumPicker.test.tsxpin the click-outside add (a mousedown outside, then the unmount blur, adds once) and the Add button. pnpm lint && pnpm typecheck && pnpm knip && pnpm testpass, and the help walkthroughs (pnpm test:e2e tests/e2e/help) still pass.
Found by the UX walkthrough, scenario V2 (following a page's set-up steps word for word), on opensignup-prod main merged with upstream 1d4ff3a. Checked by reading EnumPicker and useOutsideClose against the tester's two lost choices. https://claude.ai/code/session_01ATJ4moQv7TF11SrH9fDe2q
- 主要言語
- TypeScript
- スター
- 19
- フォーク
- 4
- 平均マージ
- 21時間 3分
- マージ済み PR(30日)
- 176
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
richshaw/OpenSignup のほかの issue
-
enhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
richshaw/OpenSignup#654 ·
メンテナーはふだん 1 日以内に返信
-
The help pages never say "pause", so organizers looking for it miss Close or reopen a signup対応中かも @richshaw が今日担当しました。 オープンenhancement pipeline:building pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
richshaw/OpenSignup#653 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
richshaw/OpenSignup#652 ·
メンテナーはふだん 1 日以内に返信
-
SMTP timeout notes in smtp.ts and the changelog describe nodemailer 10.0, not 10.1対応中かも @agammann が 2 日前に担当しました。 オープンenhancement good first issue pipeline:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
richshaw/OpenSignup#645 ·
メンテナーはふだん 1 日以内に返信
-
enhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
richshaw/OpenSignup#589 ·
メンテナーはふだん 1 日以内に返信
richshaw/OpenSignup の issue をすべて見る
似ている issue
-
Plugin: sheet music can't be scrolled by hand before playback対応中かも @snakajima が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
receptron/jinglescript#51 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 9 日以内に返信
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openclaw/openclaw#186424 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
chore(worker): five module header comments describe the code from before later issues changed itオープンarea:dev U2-later
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bentleypark/aiwatch#1824 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Pal-AI-Lab/Coopanion#469 ·
メンテナーはふだん 1 日以内に返信