Skip to content

[leas code] Deduplicate repository search entries - #13415

Merged
nwparker merged 1 commit into
mainfrom
nwparker/leas-code-repository-search
Aug 10, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/leas-code-repository-search

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

Remove the second copy of the Project Icon search metadata and the repeated worktree search metadata from repository settings. Each section now contributes one search result instead of two, for a net reduction of 28 lines.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

Focused verification:

  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/settings/RepositoryPane.test.ts (6 tests)
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/hooks/useSettingsNavigationMetadata.test.ts src/renderer/src/hooks/useSettingsNavigationMetadata.language-switch.test.tsx src/renderer/src/hooks/useSettingsNavigationMetadata.capability-owner.test.tsx (25 tests)
  • pnpm run typecheck:web
  • Targeted oxlint and oxfmt checks
  • pnpm run check:code-quality:changed
  • pnpm run check:react-doctor:changed

AI Review Report

The review traced both duplicated array contributions, checked their translation keys and keywords for exact equivalence, and verified that the retained entries still cover repository identity, worktree, hooks, and author searches. A focused regression assertion now requires one Project Icon and one Default Worktree Base entry. The change was reviewed for macOS, Linux, and Windows; it contains no shortcut, label, path, shell, Electron, SSH, or folder-workspace behavior changes.

Security Audit

No command execution, path mutation, authentication, secrets, dependencies, IPC, or external input handling changed. The patch only removes duplicate in-memory search metadata.

Notes

Independent cleanup PR based on main; no platform-specific behavior or follow-up risk identified.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e536d3e8-eff9-456f-9f9f-458a44c3e013

📥 Commits

Reviewing files that changed from the base of the PR and between b2e29a2 and 1689934.

📒 Files selected for processing (2)
  • src/renderer/src/components/settings/RepositoryPane.test.ts
  • src/renderer/src/components/settings/repository-search.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/settings/repository-search.ts

📝 Walkthrough

Walkthrough

The repository search list removes a duplicated Project Icon entry and conditional Git worktree entries. Git author and Git hooks entries remain. A test verifies that the Project Icon and Default Worktree Base project search sections each appear exactly once.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing duplicate repository search entries.
Description check ✅ Passed The description includes all required sections and documents the change, testing, AI review, security audit, and platform impact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 1e72534 into main Aug 10, 2026
45 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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