The Build tab works out a row's group in three places, and group rename uses a slightly different rule
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 62/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
Start in src/components/build-wysiwyg/BuildWysiwyg.tsx beside EMPTY_GROUP_KEY, and compare partitionRows, the getGroupKey passed to useReorderable, and the row filter in handleRenameGroup. Add groupKeyOf and groupValueOf, then switch rawValue, onTransfer and handleAddSlot over, leaving the '__flat__' branch alone. Done when a test shows renaming the empty group touches exactly the rows the partition displays there, and the lint, typecheck, knip and test scripts pass.
索引モデルが issue の本文から書いたものです。
説明
What happens
In src/components/build-wysiwyg/BuildWysiwyg.tsx, the rule "a row with no value for the group field belongs to EMPTY_GROUP_KEY" is written out three times, and its inverse ("EMPTY_GROUP_KEY means the value ''") three more:
- Value to key:
partitionRows(which groups are shown),getGroupKeypassed touseReorderable(dragging between groups), and the row filter inhandleRenameGroup. - Key to value:
partitionRows'rawValue,onTransfer, and the seeding inhandleAddSlot.
The rename filter is written differently from the other two, and is not quite the same rule: a row whose value is literally the text __empty__ is shown in the empty group, but renaming the empty group skips it. Nobody will realistically type that, but it is the drift the copies invite.
Fix, in outline
- Add two module-level helpers next to
EMPTY_GROUP_KEY:groupKeyOf(row, ref)andgroupValueOf(key). - Use them at all six places; the rename filter becomes
groupKeyOf(r, ref) === oldKey.
Watch for
- Keep
'__flat__'handling inhandleAddSlotas it is. - Roughly line-neutral: the gain is one rule, not fewer lines.
Done when
- The empty-group rule is written once in each direction.
- A test pins that renaming the empty group picks exactly the rows the partition shows in it.
pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
Found by the pipeline's refactor scout in the Build tab (src/components/build-wysiwyg), at 167b4a4. Checked by an independent verify agent, which quoted every copy and found the one input where the rename rule differs. https://claude.ai/code/session_016YZ9SUFioou8ZnL5ZvR43M
Held back by the scout's cap. Add pipeline:ready to queue it.
- 主要言語
- TypeScript
- スター
- 19
- フォーク
- 4
- 平均マージ
- 19時間 27分
- マージ済み PR(30日)
- 199
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
richshaw/OpenSignup のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
richshaw/OpenSignup#794 ·
メンテナーはふだん 1 日以内に返信
-
enhancement pipeline:proposed pipeline:ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
richshaw/OpenSignup#654 ·
メンテナーはふだん 1 日以内に返信
-
Slot times are shown with their own copy of the HH:MM rule that saving them checks対応中かも @novakzx が今日担当しました。 オープンenhancement good first issue pipeline:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
richshaw/OpenSignup#805 ·
メンテナーはふだん 1 日以内に返信
-
The sign-up dialog decides "See alternatives" with its own copy of the rule behind "Pick another slot."対応中かも @dafeiyupola が今日担当しました。 オープンenhancement good first issue pipeline:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
richshaw/OpenSignup#803 ·
メンテナーはふだん 1 日以内に返信
-
A failed database query logs its parameters, so OAuth tokens and participant details can end up in the logs対応中かも @richshaw が 1 日前に担当しました。 オープンbug pipeline:building
richshaw/OpenSignup#800 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
richshaw/OpenSignup の issue をすべて見る
似ている issue
-
ArcGIS Maps SDK for JavaScript c-carousel calcite-design-tokens enhancement impact - p3 - not time sensitive needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Esri/calcite-design-system#15565 ·
メンテナーはふだん 1 日以内に返信
-
customer-reported question
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Azure/azure-rest-api-specs#48017 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/TypeScript#65370 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ts-graphviz/ts-graphviz#1904 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信