-
Notifications
You must be signed in to change notification settings - Fork 0
D. Actions
Services or actions as they are called in this project determine what can be done with things by the caller of this library. Services are arranged from the perspective of the end-user. Prenotes circulates notifications between caretakers and staff. Notifications always concern children. A notification is never deleted and it can not be edited. Instead, a notification may be retracted effectively detaching it from streaming or blocked if deemed offensive or inappropriate.
#Caretaker# A caretaker is the legal guardian of a child registered at a daycare. Caretakers are uniquely identified by their email address. Caretakers can not switch or edit a registered email. Only daycare staff can issue access to Prenotes or transfer a profile from one email address to another. Issuing access for an email address will automatically dispatch an email with a confirmation code to the caretaker. Once the caretaker has confirmed their email they can use notifications and edit their profile.
##Confirmation## Daycare staff receive the email address of a caretaker and tie the address to one or more children at the daycare in what is called a handshake. The process is nearly identical when caretakers request transfer of their account to a different email address. Prenotes dispatches an email with a confirmation code when handshakes are created. The email will contain a link which completes confirmation and creates the caretaker's account. After confirming an account a caretaker can edit their profile. A profile in Prenotes is spartan (i.e. name, language and other settings that are specific to Prenotes). The account can be nuked by caretakers. This will delete entities in the database representing a caretaker but not any notifications they have created.
###Kids### The connection between caretakers and children is handled by staff. Caretakers must request outside of Prenotes the association or disassociation to children. A caretaker list their children from their profile.
##Streaming## Prenotes streams notifications to the end-user. There is no search function. The idea is that notifications surface in an infinite scroll by order of creation time in descending order (i.e. the newest first). The ability to search might be added later. Prenotes acts like a fire hose giving the user the latest notifications upfront. Only notifications that target children associated to a caretaker are visible to the caretaker. A caretaker can create a notification by providing a message and the children targeted by the message. At least one child has to be related to a notification. Caretakers can retract a message they have created if the notification has not been read or does not have a response. Retraction does not delete the message rather excludes it from streaming. Caretakers can also reply to notifications targeting them. Caretakers can mark notifications as read.
#Employee# Daycare staff are represented as employees in Prenotes. They are also users just like caretakers. The confirmation process and streaming services allotted to caretakers are the same for employees. Only an administrator of a daycare can reassign an account to another email and issue confirmation codes for employees.
##Streaming## Employees can see all notifications targeting children registered at a daycare. An employee may retract a notification they have created regardless if it has been read or has responses. The retraction of a notification will cascade to any responses. Employees can mark notifications as offensive or inappropriate.
##Kids## Only an employee of the daycare can register or deregister a child. The child just like users will need a name which is treated as unique. To differentiate between children with the same name a nickname must be assigned. An employee is able to list every child at their daycare.
##Others## An employee can list the other employees at their daycare plus see which ones are administrators and which are guests.
#Administrator# An administrator derives from an employee. It has special privileges to handshake employees, retract employees and create a guest employee. An administrator can be active at one or more daycare sites. Administrators may stream notifications for all children registered to daycare sites they administrate. Administrators may mark plus block notifications that are offensive or inappropriate. Blocking a notification detaches it and any responses from streaming.
#Guest# Only one guest account may exist per daycare. It is to be used by temporary staff or substitutes. A guest may only read and create notifications. The guest account is only accessible onsite.
#Super# Every instance of Prenotes has one or more super users. A super user can create or retract daycare sites. Each daycare has at least one administrator. There is a special function to send out confirmation emails to super users which ought to be done at start up or when Prenotes is restarted. Super users may only read notifications but has access to all notifications. A super user can see which administrators belong to a daycare.
#Startup# To do.