human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

when scanning a new barcode item, the item name doesn't correctly show up

Open cielf opened this issue 1 year ago • 0 comments

Details

Recreation note:

if you don't have a barcode scanner -- wherever we say "scanning", you can just type in the barcode and hit enter.

When scanning a new (previously unrecognized) barcode, the "new barcode" dialog correctly pops up, but after selecting quantity + item, only the quantity shows up as populated in the item entry, and it appears that no particular item has been selected yet.

Related, the text focus remains on the barcode entry that the user as just added rather than finalizing (via hitting enter) and proceeding to new item. It appears when I press Enter manually that the item name is correctly updated, Add Item is auto-pressed, and the text focus moves to the (as-yet empty) barcode entry text block for the new item.

That could mean that the only required fix is to ensure the 'Enter' action equivalent is still triggered when returning from adding the info for the new barcode item? (Usually the barcode scanner's 'Enter' causes the item name lookup to work AND jump to a new Add Item.)

Image

Image

Tested+verified in both Firefox and Chrome.

Why fix?

Reduce confusion and, in addition (with the missing Enter action), reduce likelihood that user accidentally keeps adding barcodes to the same field (which will keep looking like new barcodes to the app and keep causing the app to ask what the new entry is and keep suppressing the Enter action).

Criteria for completion

  • [ ] item name shows up consistently in the gui
  • [ ] text focus jumps to new Add Item after adding details for new barcode
  • [ ] tests to demonstrate that.

Questions for developers (i.e. Scott, who reported it)

TODO: add screenshots

cielf avatar Aug 11 '24 15:08 cielf