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

Basic notification support #2459

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

corrideat
Copy link
Member

Closes #2455

Copy link

cypress bot commented Dec 15, 2024

group-income    Run #3608

Run Properties:  status check passed Passed #3608  •  git commit 0e1e006121 ℹ️: Merge 6fea6bf011b8bada2cf408aa266b8d58dccdb903 into 0e8c05ca32944d4132181c51f8c2...
Project group-income
Branch Review 2455-implement-push-notifications-for-notifications-in-templatesjs
Run status status check passed Passed #3608
Run duration 10m 28s
Commit git commit 0e1e006121 ℹ️: Merge 6fea6bf011b8bada2cf408aa266b8d58dccdb903 into 0e8c05ca32944d4132181c51f8c2...
Committer Ricardo Iván Vieitez Parra
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 112
View all changes introduced in this branch ↗︎

@corrideat
Copy link
Member Author

So far:

  1. Augment templates.js with fields specific to native notifications (I think at least title and body, possibly also icon).

TBD after discussion.

  1. Modify gi.notifications/emit or define an event handler for NOTIFICATION_EMITTED calling makeNotification.

Using NOTIFICATION_EMITTED.

  1. Solve the currentGroupId issue for group-scoped native notifications (relevant for when the native notification is clicked)

Solved for existing windows, not solved yet when opening a new window.

  1. Implement periodic notifications by either waking up the service worker at regular intervals or through on-demand wake up requests.

Not done.

In addition, this remains:

  1. If not augmenting templates.js with body, find a way to strip the HTML tags
  2. Replace @contractID with @username or display name as in-app notifications do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement push notifications for notifications in templates.js
2 participants