tangle-network / webb-experiences

Dedicated repository for discovery, exploration, and inspiration of the Webb ecosystem.
3 stars 0 forks source link

[DESIGN] Stats URL improvements #98

Closed dutterbutter closed 1 year ago

dutterbutter commented 1 year ago

Overview

The current design / functionality of the specifying a URL for the backend has a bit of friction to it. That is, the user must know the working deployment URLS and input them themselves to have different network data displayed.

Component in question: stats

Proposed Solution

We should update the design to make it easier for users to select existing known deployments, as well as, input custom URLs. For inspiration we can review the polkadot.js app.

stats-btn

With the use of radio buttons, user can quickly update what data they would like to be displayed. For our ecosystem, this would be nice for Test network, Rococo, Prod selections (e.g. Tangle Alpha, Tangle). While also allowing users to put a custom URL for local development or other backends.

@monaiuu @seeddisperser thoughts here?

seeddisperser commented 1 year ago

@monaiuu you implemented this feature, I believe. Want to take on these updates?

monaiuu commented 1 year ago

A few questions:

@dutterbutter

dutterbutter commented 1 year ago

(2) For development, I don't know if we need the distinct separation of local node and custom. I will leave the design to your imagination. However, supporting an easy radio button for local endpoint (e.g. 127.0.0.1) and input URL for arbitrary endpoints would be best.

(1) Perhaps, I would be curious what that would look like. I tend to lean towards the separation.

monaiuu commented 1 year ago

This is my preliminary thought on how it could be executed. Would like to double-check with you to get your feedback before finalizing. @dutterbutter

Screenshot 2023-02-11 at 8 18 43 AM
dutterbutter commented 1 year ago

@monaiuu thanks for getting back to this. A couple thoughts.

CleanShot 2023-02-10 at 17 37 13@2x

On selecting the radio button "Live" we display a <Logo - Network name> as depicted above. And repeated for "Testnet" and "Dev" while maintaining the Custom Endpoint input option similar to your posted image. I think this is an improved display given these endpoints will not change and is more clear what network you are connected to and intending to connect to. Thoughts?

Endpoints would then be:

Other points:

Thanks for putting this together. Let me know your thoughts!

CleanShot 2023-02-10 at 17 45 07@2x

monaiuu commented 1 year ago

On the aforementioned notes @dutterbutter :

Screenshot 2023-02-11 at 9 41 41 AM
dutterbutter commented 1 year ago

Closing in favour of https://github.com/webb-tools/webb-dapp/issues/1009