2021-01-30 - Manage Notificaton flows
Revision as of 14:48, 30 January 2021 by Sven the Barbarian (talk | contribs)
Service - User Contact Manager#Creating a new notification group
Prep work - User Contact Manager
- change DisableNotificationGroup Lambda to UpdateNotificationGroup 2020-11-28 - User Contact Manager - Functions#UpdateNotificationGroup
Prep work - Notification Manager
- Move per notification group disable code out of 2020-11-08 - Notification Manager - Functions#DisableNotificationGroups (code inside for each notificationGroups loop) into library function 2020-11-08 - Notification Manager - Functions#disableNotificationGroup so can be shared with 2020-11-08 - Notification Manager - Functions#UpdateNotificationGroup
- change message from CreateNotifications to send receiverTag (process.env.izServiceName) and uniqueId (notificationId)
Prep work - Activity Switchboard
- change CreateTriggerGroup to receive receiverTag and uniqueId
Lambda functions - Notification Manager
2020-11-08 - Notification Manager - Functions#UpdateNotificationGroup
Functions - Notification Manager
2020-11-08 - Notification Manager - Functions#disableNotificationGroup (from DisableNotificationGroups Lambda)
2020-11-08 - Notification Manager - Functions#enableNotificationGroup
User interface flow - Create Notification Group
- Start at list of user contacts for one user (use UserContact/List)
- user clicks to Create New Notificaton Group for one user contact, directs to Create page for NotificationGroup, use local storage to store and show user contact details (no api calls needed)
- user fills details for new notification group and submits
- send request to 2020-11-28 - User Contact Manager - Functions#CreateNotificationGroup and redirect to Update page for NotificationGroup, use local storage to store and show notification group details (no api calls needed), use Get button to check if data stored yet in backend
User interface flow - Update Notification Group
- Update page for NotificationGroup will either be empty on entry, or will propogate from data in storage if set
- can edit: notificationGroupName / consolidated / consolidatedType / consolidatedFrequency / consolidatedSendIfEmpty
- when Update is submitted, send request to 2020-11-28 - User Contact Manager - Functions#UpdateNotificationGroup
User interface flow - Add Notifications to NotificationGroup
- Start at list of NotificationGroups for one user contact, use 2020-11-08 - Notification Manager - Functions#NotificationGroup/List, will send userContactId as uniqueIdPrefix
- Have a link to "Add Notifications" for each, redirect to Create page for Notification, use local storage to store and show notification group details (no api calls needed)
- user fills details for new notification and submits
- send request to 2020-11-28 - User Contact Manager - Functions#CreateNotifications and redirect to Notification/List for this NotificationGroup, use local storage to store and show notification group details (no api calls needed), use Get button to refresh page (or click refresh is ok)
User interface flow - Disable Notification
- Start at list of NotificationGroups for one user contact, use 2020-11-08 - Notification Manager - Functions#NotificationGroup/List, will send userContactId as uniqueIdPrefix
- Have a link "List Notifications" for each, maybe just update page with list of notifications that already exist in that records notification group object
- For each notification have link/option to disable, when click this send request to 2020-11-28 - User Contact Manager - Functions#DisableNotifications