-
Notifications
You must be signed in to change notification settings - Fork 5k
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: adding / deleting additional RPC URLs #25452
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
… brian/edit-custom-network-flow4
Builds ready [7ff6370]
Page Load Metrics (53 ± 13 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25452 +/- ##
===========================================
- Coverage 69.69% 69.65% -0.03%
===========================================
Files 1350 1352 +2
Lines 47865 47903 +38
Branches 13199 13207 +8
===========================================
+ Hits 33355 33365 +10
- Misses 14510 14538 +28 ☔ View full report in Codecov by Sentry. |
<Modal | ||
isClosedOnEscapeKey={true} | ||
isClosedOnOutsideClick={true} | ||
isOpen={true} |
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.
I don't think ={true}
is required here; I think the presence of the attribute infers true
<ButtonPrimary | ||
width={BlockSize.Full} | ||
size={ButtonPrimarySize.Lg} | ||
danger={true} |
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.
same here you can just use danger
id="additional-rpc-url" | ||
label={t('additionalRpcUrl')} | ||
labelProps={{ | ||
children: undefined, |
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.
do we need to specify the value of children to undefined here? doesn't this take undefined by default ?
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.
hey @bergeron |
> | ||
{t('addUrl')} | ||
</ButtonPrimary> | ||
</Box> |
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.
if we decide to include input validation here, it would be a good idea to write unit tests for this modal with the different scenarios ( rpcUrl
doesn't match with chainID, rpcURL
already added ...etc )
works as expected for me, i just raised one question about input validation if you have more informations on that |
I think it'd be best to perform that validation on the page where the url is being added. So when you click add, it validates before returning you to the main edit form. Better to get those errors earlier. I don't see explicit design for this, but I'd use the same red warnings as the other edit validations. |
Builds ready [2e4d1fb]
Page Load Metrics (46 ± 3 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Looks great! Thank you! Sorry if this was already talked about 🙏 tested the following scenario, i kinda expected it to say "foobar" is not a valid url,, but it said nothing after typing nor when i clicked, is it intentional? Screen.Recording.2024-06-27.at.17.08.52.mov |
Validation still needs to be added in a future PR |
Description
Initial UI for adding and deleting multiple RPC URLs. The add and delete buttons don't do anything yet. Just UI until the network controller gets upgraded.
Related issues
Manual testing steps
Screenshots/Recordings
Before
After
Screen.Recording.2024-06-21.at.1.26.25.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist