Skip to content

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

Open
@twynne20

Description

@twynne20

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    base docs reviewTo be reviewed by the Base docs team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions