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

Notifications #56

Closed
5 of 6 tasks
Zefau opened this issue Sep 6, 2020 · 18 comments
Closed
5 of 6 tasks

Notifications #56

Zefau opened this issue Sep 6, 2020 · 18 comments
Assignees
Labels
feature 🌟 Feature request or enhancement pro This is a premium feature

Comments

@Zefau
Copy link
Owner

Zefau commented Sep 6, 2020

Add Notifications within jarvis.

Any message may be added to jarvis.0.addNotification is pushed to jarvis and showed to the user.
Depending on a display attribute, the notification may either

  • only be visible within the sidebar drawer
  • shown via a Snackbar
  • shown via a Popup Dialog

Additionally

Message structure:

{
  "title":"A title for the notification", // required
  "message":"A message for the notification", // optional

  "state": "unread | read | archived | delete", // optional, one of unread, read or archived (default is unread)
  "criticality":"A criticality, which results in different icons", // optional, one of none, error, warning, info or success (default is none)
  "display":"Either 'drawer', 'snackbar' or 'popup' as described above", // optional, one of drawer, snackbar, popup or none (default is popup)

  "autoHideDuration":"Time in milliseconds the message is shown before disappearing", // in milliseconds
  "snackbarOrigin": { "horizontal": "...", "vertical": "" }, // optional, applies when display is snackbar, { horizontal: 'center' | 'left' | 'right', vertical: 'bottom' | 'top' }

  "focusTab": "tab ID to focus",

  "icon":"Custom icons, which overrides criticality",
  "iconColor": "darkred",
  "backgroundColor": "",
  "fontColor": "blue",

  "focusTab": "focus a certain tab" // tab to focus
  "callback": () => console.log("hello world") // invoke callback
}
@Zefau Zefau added the feature 🌟 Feature request or enhancement label Sep 6, 2020
@Zefau Zefau added this to the ROADMAP milestone Sep 6, 2020
@Zefau Zefau self-assigned this Sep 6, 2020
@braindead1
Copy link

The idea is awesome!

@Zefau
Copy link
Owner Author

Zefau commented Sep 6, 2020

You may vote it up :)

@Zefau Zefau modified the milestones: ROADMAP, ROADMAP v1.2.0 Sep 16, 2020
@Zefau Zefau added the pro This is a premium feature label Sep 27, 2020
This was referenced Oct 13, 2020
@Pix---
Copy link

Pix--- commented Nov 24, 2020

Great if popups may contain widgets. :-D

@Zefau Zefau modified the milestones: ROADMAP v3.0.0, ROADMAP v2.2.0 Nov 27, 2020
@sicadrip
Copy link

sicadrip commented Dec 2, 2020

Great idea! Will there be a datapoint for unread messages? I.e. to trigger scripts when a notification has been read/closed.

@Zefau
Copy link
Owner Author

Zefau commented Dec 2, 2020

@sicadrip it will be a state holding a json structure of all notifications with a key indicating if a notification is archived, unread, etc.

@simatec

This comment has been minimized.

@Zefau

This comment has been minimized.

@simatec

This comment has been minimized.

@Zefau
Copy link
Owner Author

Zefau commented Jan 24, 2021

initial release with v2.2.0-beta.25, see https://forum.iobroker.net/post/566682

@Zefau
Copy link
Owner Author

Zefau commented Jan 24, 2021

  • change tab / view
  • archive and delete notifications from drawer
  • mark as (un)read from drawer

@Zefau Zefau mentioned this issue Jan 24, 2021
8 tasks
@Zefau
Copy link
Owner Author

Zefau commented Jan 25, 2021

https://forum.iobroker.net/post/566747

  • Wird eine Benachrichtigung hinzugefügt und es kein Browser mit JARVIS an, wird diese Benachrichtigung nicht in JARVIS angezeigt.
  • Popup ist etwas breit: (Vielleicht abhängig vom Inhalt aber max 80% Breite bei hoher Auflösung?)

@Zefau
Copy link
Owner Author

Zefau commented Jan 28, 2021

@Zefau
Copy link
Owner Author

Zefau commented Jan 29, 2021

@Zefau
Copy link
Owner Author

Zefau commented Jan 31, 2021

finalized initial implementation with v2.2.0-beta.29. More to come with #639.

@Zefau
Copy link
Owner Author

Zefau commented Jan 31, 2021

@Zefau
Copy link
Owner Author

Zefau commented Feb 2, 2021

@Zefau
Copy link
Owner Author

Zefau commented Feb 5, 2021

bugs resolved with 2.2.0-beta.33.

@Zefau
Copy link
Owner Author

Zefau commented Feb 23, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🌟 Feature request or enhancement pro This is a premium feature
Projects
None yet
Development

No branches or pull requests

5 participants