Agoric / dapp-inter

User application for Agoric Inter Protocol—Vaults, BLD Boost, Liquidations, etc.
2 stars 7 forks source link

feat: allow node selection after connection error #217

Closed samsiegart closed 6 months ago

samsiegart commented 6 months ago

refs https://github.com/Agoric/agoric-sdk/issues/8505 refs https://github.com/Agoric/dapp-inter/issues/211

This adds a "connection settings" button to the chain connection error dialog which allows you to select API and RPC nodes. It saves your selections to local storage, which take priority over whichever nodes are loaded from the network config.

It doesn't provide an entrypoint to the node selector outside of the error dialog, that can be added in a future PR. Also, if you change networks (dev/testnet only, as mainnet doesn't have the network dropdown), it just deletes the saved nodes, instead of saving a map of saved nodes for every network.

Screenshots

image

image

Recording

(Animations look choppy in the gif due to compression, but you can try it in the live demo in the comments yourself) fixed-provision-bug

github-actions[bot] commented 6 months ago

Network: Commit: bb477dd4778c6b674e6f2dd6ad410d9f654ee798 Ref: refs/heads/main IPFS v1 hash: bafybeiad5ewmnxumo3k5mlrrb6pa7mjcollovvs4t27crhvmzzlsiggrti CF - DWeb - 4EVERLAND