Skip to content

feat(layers): Layers パネル検索#64

Merged
Pregum merged 1 commit intomainfrom
feat/layers-search-nudge
Apr 23, 2026
Merged

feat(layers): Layers パネル検索#64
Pregum merged 1 commit intomainfrom
feat/layers-search-nudge

Conversation

@Pregum
Copy link
Copy Markdown
Owner

@Pregum Pregum commented Apr 23, 2026

Summary

  • Layers パネル(NodeTree)に検索ボックスを追加
  • name / id / type / content(テキスト)への部分一致(大文字小文字無視)
  • ヒット時に祖先を自動展開。非ヒット枝は非表示
  • マッチ件数表示 + × ボタンでクリア
  • 新規 `utils/filterNodeTree.ts` は pure function のみ(visible + autoExpand + matchCount)

Test plan

  • `npm run build`: ✅ 型チェック + ビルド成功
  • `npx vitest run`: ✅ 310 tests passed (24 files) — 新規 8 tests 追加
  • Layers パネル上部の検索ボックスに文字入力 → ヒットするノードと祖先のみ表示
  • name / id / type / text content 各属性でマッチする
  • × ボタンで検索解除、全ノード復帰

🤖 Generated with Claude Code

- NodeTree に検索ボックス追加: name / id / type / content 部分一致
- ヒット時に祖先を自動展開、非ヒット枝は非表示
- マッチ数表示 + × ボタンでクリア
- utils/filterNodeTree: pure function (visible + autoExpand + matchCount)
- tests: 8 tests for filterNodeTree

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Pregum Pregum merged commit 2619817 into main Apr 23, 2026
1 check passed
@Pregum Pregum deleted the feat/layers-search-nudge branch April 23, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant