feat: コマンドリストに派生技 (follow-up moves) を追加 (#9)#11
Open
kirin0198 wants to merge 8 commits into
Open
Conversation
- CommandMove インターフェースに followUps?: CommandMove[] を追加(再帰構造) - JSDoc にカテゴリ非依存・再帰構造・ID 命名規則を記述 - command-list-types.test.ts を新規作成 - collectAllMoveIds / findDuplicateIds / hasCircularReference ヘルパー - unique カテゴリの followUps 動作テスト - Related: ISSUE-009
- variants または followUps の有無で展開可能技を判定(カテゴリ非依存) - 展開エリアに派生セクション(派生: ラベル + 紫系ボタン)を追加 - lastSelectedMoveId 状態を追加(派生コネクター判定用) - 派生コネクター自動挿入: 親技直後の派生クリックで ~ を挿入 - バリアント選択時も lastSelectedMoveId に親技 ID を記録 - 派生技自身の variants に対応した再帰展開レンダリング - aria-label に派生技のアクセシビリティラベルを付与 - Related: ISSUE-009
- kimberly-shikkuke に followUps 配列を追加(special カテゴリ配下 3 件) - kimberly-shikkuke-stop: 急停止(疾駆け中 LK) - kimberly-shikkuke-kage-sukui: 影すくい(疾駆け中 MK) - kimberly-shikkuke-bushin-shoha: 武神翔霸(疾駆け中 HP) - 既存の variants(L/M/H/OD)は維持 - Related: ISSUE-009
- kimberly-4hk(風車, unique カテゴリ)に followUps 配列を追加 - kimberly-4hk-followup: 風車2段目(HK 派生) - unique カテゴリの followUps 対応を実データで検証 - Related: ISSUE-009
- CommandListPanel.test.tsx を新規作成(src/components/input/__tests__/) - special カテゴリの followUps 表示テスト(variants + followUps 両方) - unique カテゴリの followUps 表示テスト(variants なし) - 派生技クリックで ~ コネクター自動挿入テスト - 親技以外経由後の派生クリックで > コネクターテスト - variants と followUps を両方持つ親技の展開挙動テスト - 派生技自身が variants を持つ場合の再帰展開テスト - loadCommandList を vi.mock でモック - CommandListPanel の expandedPath を string[] に変更(多階層展開対応) - Related: ISSUE-009
- Add AC9: follow-up moves displayed on parent expansion - Add AC10: '~' connector auto-inserted after parent move - Add normal flow step 4' for follow-up selection - Related: ISSUE-009
- Import kimberly.json directly and validate moves tree for ID uniqueness - Import kimberly.json and validate moves tree for circular references - Add data integrity check confirming followUps exist in kimberly.json - Use import.meta.glob to load all 29 character JSON files dynamically - Generate per-character ID deduplication and circular reference tests - Add vite/client reference for import.meta.glob type support - Related: ISSUE-009
- docs/issues/ISSUE-009.md: 方針書(派生技データモデル追加) - docs/ARCHITECTURE.md: セクション 15.5 / 17 / ADR-008 追加 - Related: ISSUE-009 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CommandMove型にfollowUps?: CommandMove[](再帰型)を追加し、疾駆け等の派生技をデータモデルで表現可能にCommandListPanelの展開 UI を拡張し、variants / followUps 両方に対応。親技直後の派生選択で~コネクター自動挿入Related
docs/issues/ISSUE-009.md,docs/ARCHITECTURE.mdセクション 15.5 / 17docs/SPEC.mdUC-013 に AC9 / AC10 追加変更内容
データモデル (TASK-A)
src/lib/combo/command-list-types.ts:CommandMove.followUps?: CommandMove[]を追加(カテゴリ非依存・再帰構造){characterId}-{parent}-{derivation}UI 拡張 (TASK-B)
src/components/input/CommandListPanel.tsx:expandedPath: string[]に変更(多階層対応)lastSelectedMoveId状態を追加~、それ以外 →>データ追加 (TASK-C / TASK-D)
テスト (TASK-E / WR-002)
CommandListPanel.test.tsx新規作成(14件)command-list-types.test.ts新規作成(30件 + 実 JSON 検証 58件)ドキュメント (WR-001)
docs/SPEC.mdUC-013 に AC9 / AC10・正常フロー 4' を追加docs/ARCHITECTURE.mdセクション 15.5 / 17 / ADR-008 を追加Test plan
236HK ~ HP相当で繋がることを確認4HK ~ ...で繋がることを確認>コネクターが使われることを確認品質指標
🤖 Generated with Claude Code