hackerspace-ntnu / website

Website @ hackerspace-ntnu.no
https://www.hackerspace-ntnu.no
MIT License
22 stars 7 forks source link

Add "Register once" to slot registration in Vaktliste #737

Open johnkrmr opened 1 year ago

johnkrmr commented 1 year ago

Adding the possibility to sign up for a slot only temporarily in Vaktliste (e.g. for the current week or the next 7 days) would make it easier to keep vaktliste updated. This way, people won't have to remove their registration in the following week when stepping in for someone else or when keeping the workshop open for that one time only. Maybe it's also a motivation for people to register when they will be at the workshop even on a short notice. Sometimes nobody has registered but there are people in the workshop anyways.

Call me lazy, but I keep forgetting to unregister… 🤦😁

njal3001 commented 1 year ago

I think it's a good idea!

Design ideas:

We could replace the current "Register" button with two buttons, one saying "Register for next shift", the other saying "Register for whole semester".

Implementation ideas:

Currently, there is a many-to-many relationship between users and shift slots. My suggestion is to store additional information in the relationship. We could add a timestamp field for when the registration expires, and ignore the entry if it is expired. Not sure how we should represent the permanent registrations, we could have either let the field be None or set the timestamp to the end of the semester.