Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user notification system #54

Open
csadorf opened this issue Dec 8, 2020 · 0 comments
Open

Add user notification system #54

csadorf opened this issue Dec 8, 2020 · 0 comments

Comments

@csadorf
Copy link
Member

csadorf commented Dec 8, 2020

It would be good to have some kind of notification systems that automatically informs users of upcoming events, maintenance periods, upcoming changes to the platform, or anything else that is noteworthy.

I imagine some kind of banner at the top that can potentially be closed by users. The way that I imagine the implementation is that we add notifications to the registry that are specific to the domain, a time period, and potentially, some other user condition (e.g. checking for the existence for certain paths or so), and which the home app then automatically checks for at start up and presents to the user.

Here is a draft for how such a registry entry could look like:

"notifications": [
  {
    "domain": "aiidalab-demo.materialscloud.org",
    "after": "2020-12-24T00:00:00",
    "before": "2020-12-25T00:00:00",
    "message": "Merry Christmas!",
    "category": "info",
  }
]

Defaults would be:

"domain": ".*",
"after": ""
"before": ""
"category": "info",

Additional notes:

  • There could be an optional "condition" object, that could be used for checks. I imagine that we implement certain checks that can be made, package version, existence of a specific file etc.
  • The message should be accepted in (sanitized) HTML format to make it easy to customize notifications and embed images etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant