-
Notifications
You must be signed in to change notification settings - Fork 116
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
PKG -- [FCL-WC] Add notifications for pending WC/RPC requests #1970
Conversation
🦋 Changeset detectedLatest commit: 75e24f1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
0fdad14
to
7698bf6
Compare
fa75993
to
4df5ac8
Compare
It might be nice if the wallet can turn the notifications off if they have their own push notification system they want to use instead. |
Yeah agree.
Agree. Will add. |
Added it to the |
Closes #1969
Closes #1979
This PR adds notifications indicating that there is a pending request on the user's mobile wallet. On mobile, clicking on the notification will open the deeplink to the user's wallet.
Decision to use
preact
(lightweight ~4kb React implementation) and tailwind was based on maintaining consistency throughout Flow's projects and anticipating future scope (react
/react-dom
is just too heavy to justify here). It's definitely overkill and this could have been written with vanilla JavaScript or a lightweight templating engine likelit-html
. It would be very trivial to swap this out for an alternative, so please leave feedback if there are any concerns here.Mobile Light Mode:
Mobile Dark Mode:
Desktop Light Mode:
Desktop Dark Mode: