NSS-Evening-E22 / pos-system-tech-giants

pos-system-tech-giants created by GitHub Classroom
0 stars 1 forks source link

BUG: Search button shows all orders when search field is empty #73

Open bhighlander opened 1 year ago

bhighlander commented 1 year ago

Description: Currently, there is a bug in the search functionality of our orders page. When a user clicks the search button without entering any text in the search field, the page displays all orders instead of returning an empty result. This behavior is unexpected and can be confusing for users who expect to see an empty result when no search terms are entered.

Steps to Reproduce:

  1. Navigate to the orders page
  2. Click on the search button without entering any text in the search field

Expected Result: The page should display an empty result since no search terms were entered.

Actual Result: The page displays all orders, which is unexpected behavior.

Proposed Solution: The search button should be disabled when the search field is empty to prevent users from triggering a search without entering any search terms. Additionally, a message should be displayed to inform users that they need to enter search terms before performing a search.

Impact: This bug affects all users who use the search functionality on the orders page. It can cause confusion and frustration for users who expect the search results to reflect their search terms.