-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve UX when localhost gateway is offline #1090
Comments
Including three mockups based on @whizzzkid 's recovery process as defined in #1125 . WRT text and related actions, they are the same.
Are there any reasons a gateway would be down that would be concerning to the user? I.e. any additional troubleshooting or FYI text we can add in? I attempted to solve for this by linking to documentation on public gateway for the curious user but there's an opportunity to include language in the interstitial
Rather than introduce a "save preferences" button (which we can do if anyone feels strongly), mockups include suggested help text and link to preferences where we should definitely allow folks to update and save their preferences. You can see what a "save preferences" checkbox would look like under V2 mockups. Screenshots and video mockup below. WRT designs, me know which direction is preferred. V 1: slightly modifies your structure, @whizzzkid but is essentially the same. Visually this is probably my least favorite V 2: Similar to V1, this interstitial appears as a standalone web page. Copies elements from the "not connected" notice that new companion users will see if they don't have IPFS up and running V3: This interstitial appears as a side panel alongside the current webpage and allows users to continue to navigate that page. Recover.Client.Mockups.3.versions.mov |
Thanks @juliaxbow I think I can do V2 (without the save preferences check-box) my question is regarding the back button behaviour:
To implement the save-preference option, we would need some more digging:
Regarding the v3 you mentioned, I am not sure where does the interstitial appear after someone clicked a link?
|
Responding to your other questions shortly but quick clarification re: v3
side.panel.mov |
@juliaxbow the webpage may or may not be available for this action to happen. |
Privacy and Security:
For these reasons, we always ask user, and don't automatically redirect to a public gateway when the local one is down.
We should NOT recover automatically for the reasons mentioned above, and keeping a preference per website is a bit too much work/complexity/maintenance imo, given how rarely user will see this screen (local node will rarely be down – usually user will see this if they had opened local gateway tab from previous session, and after reboot forgot to start IPFS daemon for some reason). If we really want, we could add a global OPT-IN toggle on Options page etc, but this must come with security warning:
👉️ But I'd keep it simple; no automatic recovery, no saved preference per websire, just an user-friendly error page that reminds user to turn on the local node + have shortcut to open via public gateway if they are in the rush. |
@juliaxbow I really like the version you proposed in #1090 (comment): Left some text suggestions in #1125 (comment), but it needs some refinement (the longer warning about public gateways probably needs to be in a smaller font?). |
Thanks for the comments! Updated per suggestions in #1125. Changed the language slightly, though feel free to tweak if this doesn't capture the right intent:
|
Closed in #1125 🥳 |
Problem
Right now, when one tries to open localhost URL and the gateway is down, they get a connection error.
Improvement proposal
IPFS Companion could catch when the local gateway is down, and ask the user if they would like to open the requested path using a public gateway, or in the case of DNSLinks, the upstream http server.
The intefrace should be similar to uBlock's interstitial, asking user if they want to allow tracking link Temporary, or Permanently.
So if user wants to always recover using public gateway, and they select Permanently, they will be bothered by this interstitial only once.
Note: the same interstitial UI can be used for asking the user if they would like to load DNSLink website from original URL, or from local gateway.
The text was updated successfully, but these errors were encountered: