woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
321 stars 113 forks source link

[Products] Scanning non-existent product barcode returns truncated, incorrect error title #14425

Open rachelmcr opened 1 week ago

rachelmcr commented 1 week ago

Describe the bug On the Products tab, scanning a barcode that isn't linked to an existing product returns an error. However, there are two issues:

  1. The error title is truncated in portrait orientation.
  2. The error title incorrectly says "Cannot add Product to Order."

To Reproduce Steps to reproduce the behavior:

  1. Find a barcode or use this tool to generate a barcode that isn't linked to a product SKU on your store.
  2. Go to the Products tab in the app.
  3. Tap the barcode scanner icon.
  4. Scan the barcode from step 1.
  5. Notice the error is truncated and the title is inaccurate for the Products tab.
Screenshots Portrait Landscape
Image Image

Expected behavior I expect the error to be readable in both device orientations, with an error title relating to looking up the product to edit/view it (not add it to an order).

Mobile Environment Please include:

dangermattic commented 1 week ago

Thanks for reporting! 👍