Repository navigation
refactor(ui): TerminalSplitPane の複雑度を下げる (#3567) - #3726
Merged
Merged
Conversation
実測: 契約の計測コマンドで TerminalSplitPane は complexity 50(Issue 作成時の 29 から増加)。実コードを正とした。 結果: 25 未満(警告なし)。 数字が変わった箇所(いずれも関数・コンポーネントを分けただけ。振る舞い・文言・DOM は不変): - 操作群 JSX(検索/最大化/「…」メニュー)を SplitActionControls へ移した - モデル/使用量/メモ/表面切替の JSX を SplitSessionChips へ移した(SURFACE_MODE_SEGMENTS も同梱) - DnD 状態とハンドラを useSplitDragDrop へ移した - バー内メモ位置の layout effect を useBarNotePosition へ移した - セレクタ title の組み立てを resolveSelectorTitle へ移した コメントは書き換えずに移した。新モジュールは元モジュールを import しない(循環なし)。 確認: tests/unit/guards・tests/unit/docs・TerminalSplit 関連 99 ファイル、lint、tsc が通る。 探した対象: 同処理の写し(スマホ側)・型・docs・古い動きを固定するテスト。変更を要するものは無かった。 本文に無い指摘: src/components/worktree/TerminalSplitPaneContent.tsx:277 TerminalSplitPaneContent の complexity 31(Issue 対象外のため未対応) 本文に無い指摘: src/components/worktree/TerminalSplitPane.tsx 冒頭の説明コメントは分割後の構成と細部で合わないが、書き換えず据え置いた Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 tasks
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.
実測: 契約の計測コマンドで TerminalSplitPane は complexity 50(Issue 作成時の 29 から増加)。実コードを正とした。
結果: 25 未満(警告なし)。
数字が変わった箇所(いずれも関数・コンポーネントを分けただけ。振る舞い・文言・DOM は不変):
コメントは書き換えずに移した。新モジュールは元モジュールを import しない(循環なし)。
確認: tests/unit/guards・tests/unit/docs・TerminalSplit 関連 99 ファイル、lint、tsc が通る。
探した対象: 同処理の写し(スマホ側)・型・docs・古い動きを固定するテスト。変更を要するものは無かった。
本文に無い指摘: src/components/worktree/TerminalSplitPaneContent.tsx:277 TerminalSplitPaneContent の complexity 31(Issue 対象外のため未対応)
本文に無い指摘: src/components/worktree/TerminalSplitPane.tsx 冒頭の説明コメントは分割後の構成と細部で合わないが、書き換えず据え置いた
Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com
Refs #3567