algorandfoundation / algokit-lora

https://lora.algokit.io
13 stars 5 forks source link

Add network select to network config table #329

Closed lempira closed 15 hours ago

lempira commented 2 weeks ago

There were several items in this PR that were requested internally. The requests were the following:

The app before remembered the saved network and had some redirects so that when you went to settings, selected a network and clicked the back btn, you go back to the previous page but with the new selected network. This made the behavior of selecting the network from the header not work as it assumed it could only be done in settings. Now, the same workflow (i.e. hitting the back button) takes you to the network that was selected before. If you want to change the network from the settings page, you should then click on a page like Explore in order to take you to that network's explore. If you are on a page that has some resource (asset, txn, application etc) that is not on that network, I added a custom error message to the error page that would ask the users if they were on the correct network and a link that would take them to the main feature page with that network selected.

Demo Vid

New Settings Page

image

Error Page with 404

image
cloudflare-workers-and-pages[bot] commented 2 weeks ago

Deploying algokit-lora with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4529bf0
Status: ✅  Deploy successful!
Preview URL: https://0054ad92.algokit-lora.pages.dev
Branch Preview URL: https://new-network-select.algokit-lora.pages.dev

View logs