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

fix: Remove LoadingNetworkScreen overlay #24156

Closed
wants to merge 2 commits into from

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Apr 22, 2024

Description

In scenarios where connectivity to the currently configured network is not available, most actions are not available and hidden behind a "Connecting to Infura Mainnet..." overlay. This includes the "Add custom network" functionality, which creates a catch-22 for users relying on custom RPC endpoints: They can not configure their network because the configured network is not available...

In fact, why block any sections of the UI because the configured RPC endpoint is not currently reachable?

This removes the blocking loading-overlay triggering completely.

Open in GitHub Codespaces

Related issues

Manual testing steps

  1. State: Onboarded wallet with default settings (Infura mainnet)
  2. Remove Infura connectivity while maintaining connectivity to a separate Eth Mainnet RPC endpoint
  3. Unlock wallet and configure custom RPC endpoint

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

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.

@legobeat legobeat force-pushed the allow-change-network-when-unlocked branch 2 times, most recently from 1a6b55f to 2eefaaf Compare April 22, 2024 04:18
@danjm
Copy link
Contributor

danjm commented Apr 22, 2024

We need to inform the user if there is a failure to connect to the currently configured network. The loading screen does that today. How will we do that if the loading screen is removed?

@legobeat legobeat force-pushed the allow-change-network-when-unlocked branch from 2eefaaf to 7bf3bf9 Compare April 25, 2024 17:34
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jun 24, 2024
Copy link
Contributor

github-actions bot commented Jul 8, 2024

This PR was closed because there has been no follow up activity in the last 14 days. Thank you for your contributions.

@github-actions github-actions bot closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale issues and PRs marked as stale team-security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants