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

Docs Request: Improve user guidance for Base Camp Invalid chain ID error #349

Open
twynne20 opened this issue Mar 6, 2024 · 1 comment
Labels
state: backlog This is pending further review type: docs New docs or changes to existing

Comments

@twynne20
Copy link
Contributor

twynne20 commented Mar 6, 2024

What is the issue you are encountering with the docs?

The error message displayed when connecting to the wrong network while tracking progress with Base Camp is not clear and informative enough. The current error message does not provide sufficient guidance to the user on how to resolve the issue.

Links to Impacted Docs

https://github.com/base-org/web/blob/master/apps/base-docs/src/utils/nft-exercise-data.js

Describe the solution you'd like to see.

To improve the user experience, I suggest updating the error message to clearly communicate the following:

  • The user is connected to an unsupported network.
  • The specific chain ID of the unsupported network.
  • The need to switch to the Base Sepolia network to proceed.

Proposed error message:
"Invalid network detected (Chain ID: <chain_id>). Connect using the Base Sepolia network."

The updated error message should be concise and actionable, guiding the user to take the necessary steps to resolve the issue.

Additional context

  • Currently working on a future fix that utilizes the useSwitchNetwork hook from the wagmi library. This fix aims to handle the network switching process more seamlessly and improve the overall user experience.
  • The useSwitchNetwork hook allows us to programmatically switch the user's network to Base Sepolia when an unsupported network is detected. This will streamline the process and reduce friction for the user.
  • For the current release, I recommend focusing on improving the error message to provide clear guidance to the user on how to manually switch to the Base Sepolia network. Will continue to work on the useSwitchNetwork implementation and include it in a future update to further enhance the user experience.
@twynne20 twynne20 added the type: docs New docs or changes to existing label Mar 6, 2024
twynne20 added a commit to twynne20/web that referenced this issue Mar 6, 2024
@twynne20
Copy link
Contributor Author

twynne20 commented Mar 6, 2024

Here is the PR Improve Base Camp Invalid chain ID error (#349) #350. Will continue working on the useSwitchNetwork and create a Feature Request Issue for that!

@wbnns wbnns added the state: backlog This is pending further review label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: backlog This is pending further review type: docs New docs or changes to existing
Projects
None yet
Development

No branches or pull requests

2 participants