spacemeshos / smapp

Spacemesh App (Smesher + Wallet) 🏦📊
https://spacemesh.io
Apache License 2.0
132 stars 41 forks source link

Feature: Notification center #1068

Open maparr opened 1 year ago

maparr commented 1 year ago

Rationale

I propose to create a tab in smapp , where we will be collecting errors / info messages and announcements of release and new networks for users. Currently, a user has to be subscribed to the Discord announcement channel to get the latest important information for him about smapp or spacemesh. And issues with the application can be shown and hidden in seconds, which can break the app. It will help us to debug the issue, to send the collection of issues with logs to our Sentry.

Prerequisites

Currently, we have a Discord announcement channel for network and smapp release announcements. For issues in the smapp we have a modal with an issue message which user can close.

User story

Scenario with announcements

Scenario with critical errors or warnings

Out of scope

wiki documentation or short messages how to resolve noties

How to implement

For announcements, we can use firebase notifications for the application instance and attach them to the Discord announcement channel. In this case, when a user has an internet, he will receive a new message from Firebase FCM, electron approach,

For critical Error and Warning messages, we can log important messages for our client and push them internally as notifications, which helps to work with and get the latest updates from the app in the notification center,

Screenshot 2022-12-27 at 22 46 18 Screenshot 2022-12-27 at 22 47 33

For deep linking, we can use the official documentation , deep link will help to redirect to the correct page even the app is not opened yet

After the research. We have some goals here

Hey folks, this improvement is opend for discussion, we can replace smth or add details. cc: @brusherru @monikasmolarek @pigmej

pigmej commented 1 year ago

I'd put "new network" aside of that. During mainnet makes ~0 sense IMHO.

New smapp releases seems like standard "new release" problem in software development so yes we should solve that. Probably we should hook up gh releases there too to not have the same information in multiple places.

About the issues, we need to integrate it with network wide status to also avoid dulication of information sources.

maparr commented 1 year ago

I'd put "new network" aside of that. During mainnet makes ~0 sense IMHO.

New smapp releases seems like standard "new release" problem in software development so yes we should solve that. Probably we should hook up gh releases there too to not have the same information in multiple places.

About the issues, we need to integrate it with network wide status to also avoid dulication of information sources.

yes, agree to put it aside, and only keep information about the app and what was changed what last news etc. The priority is the state, for example, the network was disconnected at 2PM , but at 3PM connected.

I can start from simple implementation , POC, and extend if will be ok

monikasmolarek commented 1 year ago

@maparr Just as a reminder of what was already discussed but came back in one of the Discord feedbacks - please remember about the desktop notification that is supposed to be shown once the POS creation is complete (the one that is shown on the fireworks confirmation screen when we finish the POS setup steps). Or maybe, as a temporary fix, we should hide this info about the expected desktop notification?