magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.07k stars 683 forks source link

[bug]: Incorrect Message on Search Page When Searching for Less Than 3 Characters #2753

Closed tjwiebell closed 4 years ago

tjwiebell commented 4 years ago

Describe the bug

If a user submits a search for less than 3 characters, then the resulting page shows "No results found!". This is incorrect messaging & should be worded differently with something like "Must search for at least 3 characters". See attachments

To reproduce

Steps to reproduce the behavior:

  1. Create a product with name "simple1"
  2. Go to PWA storefront & search for "s"
  3. Note issue
  4. Search for "si"
  5. Note issue
  6. Search for "sim"
  7. Note that product is returned

Expected behavior

A message is displayed that your search term didn't meant the minimum length requirement. If the message from GraphQL is user friendly, just display that, otherwise come up with one to display.

Screenshots 1-char 2-char 3-char

JIRA Link

PWA-683

m2-assistant[bot] commented 4 years ago

Hi @tjwiebell. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this