-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Complete redesigns for approval flow #1558
Conversation
90a451b
to
d48dc94
Compare
ef21f2a
to
9367577
Compare
ef21f2a
to
d5e4269
Compare
d48dc94
to
e7c03ea
Compare
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.
Left two comments. The code looks fine overall. All good for me if QA passes.
8d783bb
to
18a47ff
Compare
1900922
to
7b77976
Compare
32a8170
to
a902237
Compare
Leaving some screenshots here for design QA: Initial Approve Token Screen: Edit Permissions: Transaction Details: Transaction Details (View Data Expanded): A couple things: Transaction details is currently missing a row for name as the contract for token approval doesn't have one. name isn't always available. After discussion with @estebanmino he suggested we leave it out for now. The paste icon is still what we were using previously vs the new clipboard treatment that's in the new screens, I wasn't sure if we wanted to change that everywhere? Again, that's something we can look at adding in a separate PR. |
Sounds good.
Let's keep the icon used here and elsewhere. I had pulled that clipboard icon from fontawesome but I think the current icon used here works well. Looks like there added padding/margins to the edit permission subview I noticed. Let's make this consistent with all other padding/margins. |
This should be good now as well :) |
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.
LGTM!
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.
All fixes look good on both OS's, QA Passed 👍
* Confirm: Use TransactionReviewFeeCard, add primaryCurrency prop, add ETH transaction fee, move renderIfGasEstimationReady to TransactionReviewFeeCard, remove adjust transaction fee button, pass props to TransactionReviewFeeCard * CustomGas: Implement redesign. Still need to modify styling of individual gas selectors * snapshot update * Approve: Use Modal in place of Action Modal, use updated CustomGas * Confirm: fix, change props.transactionState to state.transaction (merge conflict recovery) * snapshot update * Approve: add in ActionModal styles, use ActionModal * Use ActionModal * Remove transaction direction * Add onRequestClose * Add host and network under website icon * Use TransactionHeader component * Use AccountInfoCard * Add black to text in AccountInfoCard * Remove up/down arrow icon * Update: styles * Update networkFee * Update: translation text * Update: sync up with PR and update translations * Add TransactionReivewDetailsCard * Include getMethodData * Rename onViewDetails -> toggleViewDetails * Adjust styles * Remove commented code * Update: tests * Update: TransactionReviewDetailsCard styles * Update: Move customGas and editPermission out from Modals * Update: remove now redundant infos * Remove comments * Remove padding * Fix eslint issues * Adjust location of KeyboardAwareScrollView for renderEditPermission * Fix transition when opening network fee * Update: Create translation for "Total" * Update: secureIcon * Update: remove padding * Update: Add ConnectHeader component * Update: Make ConnectHeader props isRequired * Update: move view into RenderCustomGas method * Add activeTabUrl so we get https and secure icon * Update: display network fee in fiat when selected * Update: Add save button to network fee * Update: Add Set button for editPermission * Update: tests * Fix hitTest issue with network fee * Update: Display currencySymbol * Update: round fiat price to two decimals * Update: fallback to just to be safe * Update: Add getActiveTabUrl method Co-authored-by: Etienne Dusseault <[email protected]>
Description
re: #1503
opening this as a draft PR for now, going to clean things up after I get back from my afternoon walk :)Okay, I think this is mostly good for initial review, going to leave this as a draft since it relies on #1512
Checklist
Issue
Resolves #1503