-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(synapse-interface): destination address #2137
Conversation
Note Reviews PausedUse the following commands to manage reviews:
WalkthroughThe update refines the Synapse bridge component by enhancing user interface elements and functionality. It focuses on improving state management, refining input validation, and enhancing destination address handling with verification warnings. These changes aim to streamline user interactions, emphasize safety through confirmations, and optimize code structure for clarity and efficiency. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2137 +/- ##
===================================================
+ Coverage 46.97743% 47.14108% +0.16365%
===================================================
Files 373 361 -12
Lines 28618 27388 -1230
Branches 83 83
===================================================
- Hits 13444 12911 -533
+ Misses 13764 13135 -629
+ Partials 1410 1342 -68
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@coderabbitai review |
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.
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
packages/synapse-interface/components/StateManagedBridge/_DestinationAddressInput.tsx
Outdated
Show resolved
Hide resolved
@bigboydiamonds for QAing this, just writing out scenarios/Qs we'll need to test On wallet 1
User switches to wallet 2 or disconnects
User is on bridge page, enters dest address, goes to swap page, comes back to bridge page
Basically main goal of all this is we want to make sure that user sending doesn't inadvertently send to wrong destination address (meaning understanding state of where dest address sits & best way to clear it) |
Deploying sanguine with Cloudflare Pages
|
…dy accepted warning for session
…t setting turned off
eventData = {} | ||
segmentAnalyticsEvent(eventTitle, eventData) | ||
} | ||
/** TODO: Replace below segment events with new tracked events */ |
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.
Add these back
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.
thanks, added back in 1226707
previously commented these out because we initially were planning on removing Settings toggle
// Ensure destination address clears if settings turned off | ||
useEffect(() => { | ||
if (!showDestinationAddress && destinationAddress) { | ||
dispatch(setShowDestinationAddress(null)) |
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.
false not null?
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.
Also why are we doing it here vs. where the settings get turned off
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.
thanks for catching this, fixed to dispatch the proper action in 8e2c426
we currently are dispatching the action from the Settings onClick toggle here: https://github.com/synapsecns/sanguine/blob/fe/destination-address/packages/synapse-interface/components/StateManagedBridge/SettingsSlideOver.tsx#L63
but I wanted to add an additional line in the bridge listener for a fallback check just incase Settings code gets updated in future (thinking here is that given the destination address feature is a sensitive feature for our Users, wrt to being extra careful about clearing dest. address store value)
be93430ec4fa130f64fa874ce08d2e8302b288c9: synapse-interface preview link
Summary by CodeRabbit
fac847377cf2eda8109fdde3aa455c1e23caf11d: synapse-interface preview link
e310d8b172c0c63f556a305b05b75f38e06da1f7: synapse-interface preview link
dbf16fef7375271f1ecc97eda234aeef8b9e6a84: synapse-interface preview link
0d6a17bd6b15996dbeb3376d1875fc6ae327e404: synapse-interface preview link
9c7d22866b1f4390d6b7f4eece5b689c7990a9b5: synapse-interface preview link
86774e03dbf0646c4c15ea1a8d4d6fd07cd4b581: synapse-interface preview link
1d643b3fd771c49fb97ffd1ed02342602e0dcb56: synapse-interface preview link
86fd7f37bff91f03d7f1c964a080a0563eac2993: synapse-interface preview link
9f5303c54950b72aba06909d55f2591dcb3c74a4: synapse-interface preview link
638ac4c32a3efd0e520b2c5c79d5e03149758fc5: synapse-interface preview link
eb1e49b9ab3e9eb41a7c1f83b13b03244827a1c3: synapse-interface preview link
742a9991e51a56e08b7b88ce5ed50ad425476a1c: synapse-interface preview link
2e29c885b388b8c4a0ff253560b39bfce3eae1d4: synapse-interface preview link
dc320f45b4e6740e99ce31fcabc18bd04d4a2685: synapse-interface preview link
79bd7059acfa1d147ecf3afb9d62ee1014120664: synapse-interface preview link
c5bd9352a1ec8bd534709eba827b03b4b89a310b: synapse-interface preview link
104242cd4751d7aac12896121201de2a7684603f: synapse-interface preview link
90625125a0ff81446c8af346232443cff4e51838: synapse-interface preview link
1a2c71cea910b803e81d21ce05665b78de548b64: synapse-interface preview link
5f0bdefafd6d27d490242bb9f41475a7532130ba: synapse-interface preview link
e6615700be99a741e55d8124d36c3cb17be445a5: synapse-interface preview link