-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add browser notifications for tx updates #69
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Implements client-side browser notifications to alert users of transaction status changes throughout the bridge lifecycle. Notifications trigger on: - Transaction signing and broadcast - L1/L2 status transitions - Withdrawal confirmation and execution - Transaction failures Uses service worker and browser Notification API with no external dependencies. Users opt-in via Settings dialog. Notifications persist in OS notification center.
| const withdrawalStatusMessages = { | ||
| 'Unconfirmed': 'Withdrawal Initiated', | ||
| 'Confirmed': 'Withdrawal Confirmed - Ready to Claim', | ||
| 'Executed': 'Withdrawal Claimed Successfully', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification is not showing when claiming old transaction
|
|
||
| const updateCachedTransaction = useCallback( | ||
| (newTx: MergedTransaction) => { | ||
| // Find the old transaction from cache to detect status changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notification code probably should move out of updateCachedTransaction?
Implements client-side browser notifications to alert users of transaction status changes throughout the bridge lifecycle. Notifications trigger on:
Uses service worker and browser Notification API with no external dependencies. Users opt-in via Settings dialog. Notifications persist in OS notification center.