Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Multiple barcode support #337

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

TheLastProject
Copy link
Contributor

@TheLastProject TheLastProject commented Jan 4, 2020

After seeing #279, I felt the tabs were a good way to support multiple barcodes.

Fixes #264 and I feel it also fixes #279 (because multiple barcodes per store make this possible, just note what the code is for). I am also going to assume this fixes #286 as the user's primary concern seems to be an easier way to add another card from a store they already have.

This code groups together every loyalty card with the same store name and, if multiple loyalty cards with the same store name exist, adds a scrollable tabview to switch between them. The text on each tab is based on the note. If there is no note for that specific loyalty card, it falls back to numbering them. It also switches to using a floating action button. Clicking the "+" button when viewing a loyalty card will start the edit activity with the store name pre-filled, to make adding additional cards to the same store easy.

Some screenshots:
photo_2020-01-05_00-41-56
photo_2020-01-05_00-41-57
photo_2020-01-05_00-42-00
photo_2020-01-05_00-42-01

@TheLastProject TheLastProject changed the title WIP: Multiple barcode support Multiple barcode support Jan 4, 2020
@TheLastProject
Copy link
Contributor Author

photo_2020-01-05_16-46-46
This is a bit of an issue though... Not sure how to fix it... kinda always was an issue but this new feature definitely makes it worse...

@TheLastProject
Copy link
Contributor Author

I moved the tab bar into the header, which at least makes the situation not worse than it used to be.
photo_2020-01-06_21-57-01

@TheLastProject
Copy link
Contributor Author

This sadly seems to conflict with the feature introduced in #348 and I'm not quite sure how to fix that :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Duplicate Card Multiple Barcodes Save related coupons
1 participant