woocommerce / woocommerce-ios

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

[Tablet Orders] Add barcode scanner logic to product selector #12011

Open iamgabrielma opened 6 months ago

iamgabrielma commented 6 months ago

Discussion on p1707991413734569/1707986326.142279-slack-C025A8VV728

Opening this issue separately as https://github.com/woocommerce/woocommerce-ios/issues/11747 involves more than UI updates.

On https://github.com/woocommerce/woocommerce-ios/issues/11747 we intend to move the scanning button to the ProductSelectorView when the screen is presented side by side. This UI change also implies that tapping the button needs to trigger the barcode scanning flow.

At the moment such view does not have knowledge of the product scanning logic, neither holds any reference to the EditableOrderViewModel, which is the root for determining things as scanning permissions, track scanning events, etc, ...

An alternative for the time being, could be to just change the current button with a [ICON] Scan products button

dangermattic commented 6 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.