-
Notifications
You must be signed in to change notification settings - Fork 337
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: Auto approve verified WC sessions #3455
Conversation
Branch preview✅ Deploy successful! |
Two more ideas:
|
ESLint Summary View Full Report
Report generated by eslint-plus-action |
📦 Next.js Bundle Analysis for safe-wallet-webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster. Any third party scripts you have added directly to your app using the If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success1412 tests passing in 195 suites. Report generated by 🧪jest coverage report action from 4217765 |
0c370ae
to
d5f41dc
Compare
d5f41dc
to
e443fb9
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.
👍
@@ -162,7 +141,7 @@ const WcProposalForm = ({ proposal, setProposal }: ProposalFormProps): ReactElem | |||
{isLoading === WCLoadingState.REJECT ? <CircularProgress size={20} /> : 'Reject'} | |||
</Button> | |||
|
|||
<Button variant="contained" onClick={onApprove} className={css.button} disabled={disabled}> | |||
<Button variant="contained" onClick={() => onApprove()} className={css.button} disabled={disabled}> |
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.
<Button variant="contained" onClick={() => onApprove()} className={css.button} disabled={disabled}> | |
<Button variant="contained" onClick={onApprove} className={css.button} disabled={disabled}> |
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.
onApprove
takes an optional parameter and in this case we don't want to pass it but onClick
passes an event object so we have to wrap the onApprove call.
ESLint Summary View Full Report
[warning] react-hooks/exhaustive-deps
Report generated by eslint-plus-action |
Looks good. It works fine but I still have a question on this Question: Another question is, should we tell the user that "trusted apps will autoconnect after the first approve"? Should we let the user wonder why this app connects automatically and that other app does not. I don't think that the green checkbox conveys that message clearly |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
I think a lot of legit dApps are not verified unfortunately. We discussed it this morning and decided to auto approve all dApps (verified and unverified). The only dApps we don't auto-approve are either scams or where there is a domain mismatch. |
What it solves
Resolves #3395
How this PR fixes it
How to test it
Screenshots
Screen.Recording.2024-03-19.at.11.58.10.mov
Checklist