PichapopRo / project-pantry

Project Pantry aims to assist people in their daily cooking routine.
MIT License
2 stars 2 forks source link

Filter displays all Recipes when no matching results are found #238

Open PHIMNADA024 opened 3 hours ago

PHIMNADA024 commented 3 hours ago

The problem

When filtering recipes by "Pescatarian" (a type of recipe not currently available), clicking search displays a "Load More Recipe" button. Clicking this button loads all recipes instead of showing a message indicating no recipes match the selected filter. This behavior is misleading and should be addressed by displaying a message like "No recipes found for this type" when no results are available.

How to reproduce the problem

  1. Click the filter button.
  2. Select "Pescatarian" as the filter option.
  3. Click the search button.
  4. Observe that a "Load More Recipe" button appears.
  5. Click the button and notice that all recipes are displayed, not just the filtered results.

Screenshot

image

Thanawas-Sirilertsathit commented 3 hours ago

I think this is load more button problem rather than filter problem.

Thanawas-Sirilertsathit commented 3 hours ago

232

PHIMNADA024 commented 2 hours ago

I think the filter button works, but it would be helpful to display a message informing users that there are no recipes of this type available. This would make it clearer for users that no results match their filter^^.