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

PKG -- [FCL-WC] Add notifications for pending WC/RPC requests #1970

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jribbink
Copy link
Contributor

@jribbink jribbink commented Oct 16, 2024

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 like lit-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:
Screenshot 2024-11-14 at 1 52 10 PM

Mobile Dark Mode:
Screenshot 2024-11-14 at 1 51 59 PM

Desktop Light Mode:
Screenshot 2024-11-14 at 1 51 31 PM

Desktop Dark Mode:
Screenshot 2024-11-14 at 1 51 43 PM

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: aec5c96

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@onflow/fcl-bundle Minor
@onflow/fcl-wc Minor
@onflow/fcl Minor
@onflow/typedefs Patch
@onflow/fcl-core Patch
@onflow/fcl-react-native Patch
@onflow/sdk Patch

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

@jribbink jribbink changed the base branch from master to jribbink/deeplink-browser October 16, 2024 19:21
Base automatically changed from jribbink/deeplink-browser to master October 18, 2024 22:25
@jribbink jribbink changed the title Jribbink/wc modal PKG -- [FCL-WC] Add Notifications for pending WC/RPC requests Oct 30, 2024
@jribbink jribbink changed the title PKG -- [FCL-WC] Add Notifications for pending WC/RPC requests PKG -- [FCL-WC] Add notifications for pending WC/RPC requests Oct 30, 2024
@jribbink jribbink marked this pull request as ready for review November 14, 2024 21:59
@jribbink jribbink requested a review from a team as a code owner November 14, 2024 21:59
@jribbink jribbink marked this pull request as draft November 15, 2024 09:06
@jribbink jribbink marked this pull request as ready for review November 15, 2024 10:26
@chasefleming
Copy link
Member

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.

@jribbink
Copy link
Contributor Author

Yeah agree.

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.

Agree. Will add.

@jribbink
Copy link
Contributor Author

Added it to the sessionProperties in WalletConnect 9d330ca#diff-1f477879fa1092c0a7abfc06c9ca2bcb0b5ee613b8f3945f2177670310005b37R121

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