yearn / yearn-finance-v3

Yearn Finance Web App v3
https://yearn.finance
124 stars 139 forks source link

Notification Banner [WEB-1032] #372

Open xgambitox opened 3 years ago

xgambitox commented 3 years ago

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:

[
  id: number,
  type: 'info' | 'warning' | 'critical',
  active: boolean,
  message: 'Welcome to <b>Yearn Finance<b>'
]

Add new notifications module to store, with

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.

TacosTonight commented 2 years ago

Hi, can I be assigned this issue?