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

New feature: set an expiry date for a card #21

Closed
TheLastProject opened this issue Oct 24, 2020 · 5 comments
Closed

New feature: set an expiry date for a card #21

TheLastProject opened this issue Oct 24, 2020 · 5 comments
Labels
type: enhancement New feature or request

Comments

@TheLastProject
Copy link
Member

Issue by ghost
Sunday Mar 18, 2018 at 17:04 GMT
Originally opened as brarcher/loyalty-card-locker#229


Suggestion:
Add a entry "card valid until" to the card editor. The date can be picked with the date picker.

Why is this useful?

Scenario:
There are various membership cards (e.g. library cards) that expire after a certain period of time. The function gives the user an overview when he has to extend his cards

@TheLastProject
Copy link
Member Author

Comment by brarcher
Monday Mar 19, 2018 at 03:02 GMT


I never thought of a card that would expire. But you are right, that is possible.

In the previous layout adding new fields was easy: just throw it in the list. The new layout, though, will be trickier. Where would you think this data should be presented? Should it appear in the summary list, or only when viewing a single card? Could you give a mock-up of how you seeing it look?

What happens when a card expires? Is the field data only, in which case nothing happens?

When there is metadata I want to keep about a card I'll put it in the note field. Would adding the expiration date to the note field work (as a workaround) or would it be kludgy?

@TheLastProject
Copy link
Member Author

Comment by ghost
Sunday Mar 25, 2018 at 19:37 GMT


I thought it would make sense to cross out the entry in the overview list and write the text of the entry in italics once the card has expired.
If you look at a single customer card, the field should of course also be visible, because you can edit the card from there.
As a workaround, I write "expired" in the notes field. It is nice, but changing or adding it is easy to forget.
I could give a mock-up of how I see it looking but it would take some time.

@TheLastProject
Copy link
Member Author

Comment by brarcher
Monday Mar 26, 2018 at 14:43 GMT


I think a mock-up would be helpful. The edit screen is understandable:

The date can be picked with the date picker.

and the card selection screen is simple enough:

cross out the entry in the overview list and write the text of the entry in italics once the card has expired.

What about the view which looks at one card? I'm wondering how that should appear? Also crossing out and italics?

@TheLastProject TheLastProject added the type: enhancement New feature or request label Nov 26, 2020
@TheLastProject
Copy link
Member Author

I need to still fix the relevant unit tests but 6488dc0 implements this pretty much.

@TheLastProject
Copy link
Member Author

Okay, the unit tests finally work. So the next release will contain the option to set an expiry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant