Skip to content

feat: search by comment, PR number/title, and issue number/title - #320

Merged
Jinwoo-H merged 6 commits into
mainfrom
Jinwoo-H/search-enhance
Apr 6, 2026
Merged

Jinwoo-H merged 6 commits into
mainfrom
Jinwoo-H/search-enhance

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extends sidebar search to match against worktree comments, PR number/title (from GitHub cache), and issue number/title (from linked issue + cache)
  • Extracts matchesSearch() into worktree-list-groups.ts for testability
  • Subscribes to prCache/issueCache only during active search (zero cost when idle)

Closes #304

Test plan

  • All 507 existing + new unit tests pass (pnpm test)
  • TypeScript typecheck passes (pnpm typecheck)
  • Manual: type a worktree comment into search bar → worktree appears
  • Manual: type #<PR number> → matching worktree appears
  • Manual: type partial PR title → matching worktree appears
  • Manual: type issue number → matching worktree appears

🤖 Generated with Claude Code

Jinwoo-H and others added 6 commits April 6, 2026 01:04
The refreshAllGitHub() call on search activation had unintended side
effects (wiping checksCache, extra API traffic). PR/issue title data
is already warmed by window-focus refresh and WorktreeCard render
effects, which covers the vast majority of cases.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Jinwoo-H
Jinwoo-H merged commit 4dec803 into main Apr 6, 2026
1 check passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/search-enhance branch April 6, 2026 05:48
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.

Search should also consider worktree comments, pr number/ title, etc.

1 participant