CatimaLoyalty / Android

Catima, a Loyalty Card & Ticket Manager for Android
https://catima.app
GNU General Public License v3.0
807 stars 146 forks source link

Search by Card ID and Barcode value #1960

Open Korb opened 2 months ago

Korb commented 2 months ago

While filling out the Catima app with my loyalty and club cards, I discovered an unsigned QR code. It represents an alphanumeric sequence. I'm pretty sure I already have this card in the app, but I can't match it to any of the stores or make sure I've already added it - except by looking at all 250 cards.

I ask you to add the ability to search for cards not only by their names (Name field), but also by other fields. At least as an optional feature. It is unlikely that the values ​​of these fields will interfere with users' normal search queries. Rather, they can be useful in cases where the barcode contains the name of the organization in Latin, and the card is written with the name in the national alphabet.

Upd. Another cards that could be found by searching by the number on the barcode: 145 _153

TheLastProject commented 2 months ago

Looking at the code the search currently covers both the store and the note. Searching for the card ID and barcode value seems like it may mostly be reasonable, though it would need extra testing to make sure the performance stays acceptable (given it is a feature that is very unlikely to be commonly used, if it negatively impacts the performance for many users it may be better not to).

As a workaround right now I'd suggest making an export and searching the generated .csv file (but that is obviously not very friendly for non-technical users).