Skip to content

Fix/review filter reset#402

Merged
Aamod-Dev merged 5 commits into
niharika-mente:mainfrom
hashhhh-16:fix/review-filter-reset
Jun 23, 2026
Merged

Fix/review filter reset#402
Aamod-Dev merged 5 commits into
niharika-mente:mainfrom
hashhhh-16:fix/review-filter-reset

Conversation

@hashhhh-16

Copy link
Copy Markdown
Contributor

Summary

Disables sorting and filtering controls while a search query is active.

Changes

  • Disabled the sort dropdown during search.
  • Added an isDisabled prop to FilterPanel.
  • Disabled filter controls (categories, brands, price range, rating, stock filter, and action buttons) while search is active.

Why

The search API currently ignores sort and filter parameters. Disabling these controls during search prevents misleading behavior where users expect the controls to affect search results when they do not.

closes #359

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

Aamod-Dev
Aamod-Dev previously approved these changes Jun 22, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean frontend-only fix. Disabling filter/sort controls during search eliminates the misleading UX where users expect them to work with search results. Resetting review filters on productId change is a nice bug fix too. LGTM.

@Aamod-Dev Aamod-Dev merged commit 30966c5 into niharika-mente:main Jun 23, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Search ignores sort and category even though controls remain interactive

2 participants