fix: AI搜索不触发/无搜索结果时无交互提示#146
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughApp makes RepositoriesView filter-aware (passes searchFilters and recomputes memoized view); aiService attempts AI semantic reranking and falls back to enhanced basic search on error or no content; RepositoryList only hides the AI summary when switching to a category that lacks analyzed repos. ChangesSearch Enhancement with AI Semantic Search
Sequence Diagram(s)sequenceDiagram
participant App as App/Caller
participant AI as AIModel
participant Enhanced as performEnhancedSearch
participant Basic as performEnhancedBasicSearch
App->>AI: requestText(prompt with repository data)
AI-->>App: content (parsed search terms) / no content
alt AI returned search terms
App->>Enhanced: performEnhancedSearch(parsed terms)
Enhanced-->>App: rankedResults
else AI failed or no content
App->>Basic: performEnhancedBasicSearch(original query)
Basic-->>App: basicResults
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…ummary reset during search - Extract hasActiveSearchFilters as utility function with sortBy/sortOrder checks (defaults: stars/desc). Fixes sorting being ignored when no other filters active. - Only reset showAISummary on category change, not during search/filter updates. Prevents AI analysis display from being incorrectly turned off during AI search.
…thReranking Addresses CodeRabbit docstring coverage warning (50% -> meets threshold).
修改内容
已在本地验证实现正确,改动位于通用 React 前端逻辑,对 Windows/macOS/Linux 发布共用。
Summary by CodeRabbit
New Features
Bug Fixes / UX Improvements