Skip to content

Fix search param#75

Merged
damianlegawiec merged 1 commit intomainfrom
fix/search-param
Mar 20, 2026
Merged

Fix search param#75
damianlegawiec merged 1 commit intomainfrom
fix/search-param

Conversation

@damianlegawiec
Copy link
Member

@damianlegawiec damianlegawiec commented Mar 20, 2026

Summary by CodeRabbit

  • Refactor
    • Updated search and product filtering implementation to use standardized conventions. All existing functionality remains stable.

@coderabbitai
Copy link

coderabbitai bot commented Mar 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5b38873c-3fec-4a4b-9172-c23ea9a03315

📥 Commits

Reviewing files that changed from the base of the PR and between f68cb9a and 8e91af1.

📒 Files selected for processing (3)
  • src/components/search/SearchBar.tsx
  • src/hooks/useProductListing.ts
  • src/lib/utils/product-query.ts

Walkthrough

A consistent parameter rename across the search query infrastructure, changing the API field from multi_search to search in three key locations: the SearchBar component, the useProductListing hook, and the product query builder utility.

Changes

Cohort / File(s) Summary
Search Component & Hook Integration
src/components/search/SearchBar.tsx, src/hooks/useProductListing.ts
Parameter passed to product API calls updated from multi_search to search when querying search results and filters.
Query Parameter Builder
src/lib/utils/product-query.ts
Search query mapping updated to use search parameter instead of multi_search in the product query builder utility.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A search parameter hops along the way,
From multi_search to search it stays,
Three simple tweaks, consistent and neat,
The API refactor's now complete! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix search param' directly corresponds to the main change: updating search API field parameters from 'multi_search' to 'search' across multiple files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/search-param
📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

@damianlegawiec damianlegawiec merged commit bbaaa8d into main Mar 20, 2026
4 checks passed
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