You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getNotificationMessages(), executes on initApp and imports json file and filters active messages, then reducer updates state based on users current persisted dismissed messages.
dismissMessage(messageId), sets message status to dismissed.
Include notifications module to persistConfig in core/frameworks/redux to persist state on localstorage.
Create a Banner functional component in common/components that supports receiving a children component.
Create a NotificationBanner component in containers, and use a selector for accessing the first non-dismissed active message. Use Markdown common component.
Import container to all main routes.
Additional Context
UI/UX will be provided once a contributor starts a draft PR.
The text was updated successfully, but these errors were encountered:
Elevator Pitch
App should display important news/events through a page banner
Customer Value
Users are informed with custom messages directly through the site
Definition of Done
Design Approach
Create
src/client/data/notificationMessages.json
, with the following structure:Add new notifications module to store, with
getNotificationMessages()
, executes on initApp and imports json file and filters active messages, then reducer updates state based on users current persisted dismissed messages.dismissMessage(messageId)
, sets message status to dismissed.Include notifications module to
persistConfig
incore/frameworks/redux
to persist state on localstorage.Create a Banner functional component in
common/components
that supports receiving a children component.Create a NotificationBanner component in
containers
, and use a selector for accessing the first non-dismissed active message. UseMarkdown
common component.Import container to all main routes.
Additional Context
UI/UX will be provided once a contributor starts a draft PR.
The text was updated successfully, but these errors were encountered: