ipfs / ipfs/ipfs-webui

Files screen: Improve experience when connection dropped

Open
#1,606 0 comments 0 reactions 0 assignees View on GitHub
area/screen/files effort/hours exp/intermediate good first issue help wanted kind/bug P2 status/ready topic/design-front-end
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:

![2020-08-17--23-56-23](https://user-images.githubusercontent.com/157609/90448562-e574ef80-e0e5-11ea-8e9c-8936d5e537cd.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.