Jeshibu / PlayniteExtensions

MIT License
30 stars 5 forks source link

Barnite - Support multiple entries at once #58

Open pennstatephil opened 2 weeks ago

pennstatephil commented 2 weeks ago

It'd be great if barnite supported multiple entries at once. The current suggested solution (barcode to pc) is great for collecting multiple codes, but then they need to be entered one at a time. I a few implementation options:

  1. Keep the current input window and allow for comma separated barcodes ("Enter barcode, or multiple separated by commas")
  2. Add a button on the input window that allows selection of a plain text file (like maybe a csv) and use that as the source data (OK, From CSV..., Cancel)
  3. Both!

The first option seems the most straightforward as a first step. I mentioned it on Discord, and Jeshibu mentioned the results UI is complicated, which is totally fair. I think the results window could be divided into 2 lists, one list of successful results and one of unsuccessful. You could copy the barcodes from the unsuccessful window to have a new list that you need to refine.

I'd be willing to take a crack at it in a PR if you'd accept it.

Thanks!

Jeshibu commented 2 weeks ago

Sure, I'd accept a PR. My main concern is that if you've got a list of barcodes, how do you know what codes correspond to what games you'll have to manually add when they fail?

pennstatephil commented 2 weeks ago

Sure, I'd accept a PR. My main concern is that if you've got a list of barcodes, how do you know what codes correspond to what games you'll have to manually add when they fail?

My flow from the other day (which worked pretty well) was use barcode to pc to compile all my codes, and put the games back in the same order I scanned them in (take 10 out at a time, scan them, then put them back). This allowed me to know exactly which games failed, since I knew it was between "Game A" and "Game B" (successful entries) physically in the collection.

Jeshibu commented 2 weeks ago

That makes sense. So the end result dialog should have a result list with a table. Column for barcode, column for found game name (if any). Maybe a background color or icon for row success status.