2021-01-30 - Manage Notificaton flows

From Izara Wiki
Revision as of 14:48, 30 January 2021 by Sven the Barbarian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Service - User Contact Manager#Creating a new notification group

Prep work - User Contact Manager

Prep work - Notification Manager

  • 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

  1. Start at list of user contacts for one user (use UserContact/List)
  2. 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)
  3. user fills details for new notification group and submits
  4. 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

  1. Update page for NotificationGroup will either be empty on entry, or will propogate from data in storage if set
  2. can edit: notificationGroupName / consolidated / consolidatedType / consolidatedFrequency / consolidatedSendIfEmpty
  3. when Update is submitted, send request to 2020-11-28 - User Contact Manager - Functions#UpdateNotificationGroup

User interface flow - Add Notifications to NotificationGroup

  1. Start at list of NotificationGroups for one user contact, use 2020-11-08 - Notification Manager - Functions#NotificationGroup/List, will send userContactId as uniqueIdPrefix
  2. 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)
  3. user fills details for new notification and submits
  4. 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

  1. Start at list of NotificationGroups for one user contact, use 2020-11-08 - Notification Manager - Functions#NotificationGroup/List, will send userContactId as uniqueIdPrefix
  2. Have a link "List Notifications" for each, maybe just update page with list of notifications that already exist in that records notification group object
  3. For each notification have link/option to disable, when click this send request to 2020-11-28 - User Contact Manager - Functions#DisableNotifications