Skip to content
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: multi RPC editor #25219

Merged
merged 9 commits into from
Jun 18, 2024
Merged

feat: multi RPC editor #25219

merged 9 commits into from
Jun 18, 2024

Conversation

bergeron
Copy link
Contributor

@bergeron bergeron commented Jun 11, 2024

Description

Initial UI for a multi rpc editor in the network form.

Screen.Recording.2024-06-12.at.10.50.27.PM.mov

Open in GitHub Codespaces

Related issues

Manual testing steps

  • build with yarn; ENABLE_NETWORK_UI_REDESIGN=1 yarn start
  • Settings -> networks
  • Should see multi rpc dropdown on ethereum network

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@bergeron bergeron requested a review from a team as a code owner June 11, 2024 15:19
Copy link
Contributor

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.

<Text variant={TextVariant.bodySm}>{dummyRpcEndpoints[0]}</Text>
<Icon name={isOpen ? IconName.ArrowUp : IconName.ArrowDown} />
</Box>
<Popover
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The width of this popover is just based on contents for now. Will need to be constrained once this form becomes a fullscreen/modal.

@darkwing
Copy link
Contributor

Good start here!

@bergeron bergeron requested a review from salimtb June 13, 2024 05:55
@bergeron bergeron added the needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. label Jun 13, 2024
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 15 lines in your changes missing coverage. Please review.

Project coverage is 65.67%. Comparing base (743f5ec) to head (8dfde99).
Report is 1 commits behind head on develop.

Files Patch % Lines
...ings/networks-tab/networks-form/rpc-url-editor.tsx 6.67% 14 Missing ⚠️
...ttings/networks-tab/networks-form/networks-form.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25219      +/-   ##
===========================================
- Coverage    65.68%   65.67%   -0.02%     
===========================================
  Files         1377     1378       +1     
  Lines        54623    54640      +17     
  Branches     14320    14325       +5     
===========================================
+ Hits         35879    35881       +2     
- Misses       18744    18759      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [18e2b99]
Page Load Metrics (52 ± 4 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint711008473
domContentLoaded9131111
load40715274
domInteractive9131111
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1 Bytes (0.00%)
  • ui: 4.04 KiB (0.06%)
  • common: 76 Bytes (0.00%)

salimtb
salimtb previously approved these changes Jun 14, 2024
@salimtb
Copy link
Contributor

salimtb commented Jun 14, 2024

LGTM , works as expected ✅

@metamaskbot
Copy link
Collaborator

Builds ready [8dfde99]
Page Load Metrics (134 ± 182 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint57210843014
domContentLoaded8181121
load381786134379182
domInteractive8181121
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 4.17 KiB (0.06%)
  • common: 76 Bytes (0.00%)

@bergeron
Copy link
Contributor Author

I've got pending improvements on top of this, but think this PR is a good checkpoint

Copy link
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good overall; only issue is that a current RPC isn't provided but since we're dealing with dummy RPCs this is fine for now.

SCR-20240618-lfnu

@bergeron bergeron merged commit 906f7d3 into develop Jun 18, 2024
74 checks passed
@bergeron bergeron deleted the brian/multi-rpc-editor branch June 18, 2024 19:56
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants