Non-Booked Slots #652
Replies: 2 comments
-
Hey, sorry for delay in feedback. Like I mentioned, I was trying to decide if one or the other of the above suggestions would make it easier for me to write logic for the "attendance variance" queries/selectors. I've decided that it doesn't, as I can use the existing My vote would be for the first solution, and I will throw two suggestions into the ring:
|
Beta Was this translation helpful? Give feedback.
-
For data model, I would also go with the first solution. I was going to suggest we put them in the same document (with I definitely agree with renaming So to summarise, I would go with the As for the UI, I agree with @delasous' reasoning and would be happy to go over the current structure (of The enhancement...I don't really see what we gain from it, but let's keep it an open discussion. |
Beta Was this translation helpful? Give feedback.
-
Data Model
Add one more
BookingsSubCollection
:nonBookedSlots
Data Triggers
createAttendedSlotOnAttendance
Listens to
organizations/{organization}/attendnace/{slotId}
Checks if bookedInterval = null
Writes to
organizations/{organization}/bookings/{secretKey}/nonBookedSlots/{slotId}
Selectors
getNonBookedSlots
returns
state.firestore.data.nonBookedSlots
Views
Inside calendar view we can add another tab for non-booked slots*
Another Solution
Change
CustomerBookingEntry
to account for whether or not the slot was booked and create a selector forbooked: false
entriesPossible Enhancements
We could create an attendance subCollection keyed by
customerId
which keeps track of all the customers attendance for booked and nonBooked slots.*: Customers could view their attendance on a separate tab which would include all attended slots; booked or not.
Beta Was this translation helpful? Give feedback.
All reactions