Files screen: Improve experience when connection dropped
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 534
- PR merge metrics
- No merged PRs in 30d
Description
Bug discovered by @lidel in https://github.com/ipfs-shipyard/ipfs-webui/pull/1577#issuecomment-682939157:
When I shut down my node and open Files screen (without reloading the page), it displays connection error AND import drawer is expanded with "Imported 0 items" message – it hit me how confusing it looks. Quick fix would be to redirect to status page when offline, or at least hide the import drawer, if possible. If we only had Orange error, then user would instinctively refresh the page:

To replicate, avoid refreshing the page. Try:
1. be on the Status or Peer screen and when node is online and everything works ok
2. shut down your node, so webui loses connection to the API
3. switch to Files screen (without refreshing the page)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.