decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

WEB-2 Start/stop node. Current node/blockchain status. Transfer tiles #65

Closed nicosantangelo closed 7 years ago

nicosantangelo commented 7 years ago

With the new additions the dashboard looks like this:

1 2

While the dashboard is functional in it's current form, it's lacking a couple of features which will make the UX a lot better.

For example

Let me know if you want me to address any (or all) of those in this PR. I think that the code it's at a good point to be transformed to use a framework (it has <200 lines of code and little HTML).

I was thinking of using React (with redux I think) to do so, but I'm open to suggestions!

That's all!

maraoz commented 7 years ago

Nice work @NicoSantangelo !

martriay commented 7 years ago

Feedback:

nicosantangelo commented 7 years ago
  • It's not "start/stop node" but "start/stop miner"

👍

  • Actually, I'd set the on/off mining as a toggle and replace the informative sentence into an easy-to-read table

By a toggle you mean a native radio element or a styled toggle button like: image

  • I also find this sentence not quite needed:

👍

  • As there is no more hash rate next to the Tiles title, i'd move the tile count next to it

Because we now show the detailed count as shown on the first image, and the transfer button besides Tiles I don't think I will fit

  • I can't find the transfer tile button

The first state of the page looks like this:

screen shot 2017-07-07 at 21 43 57

And after it finishes making the necessary requests y should look like the first image, with the transfer button next to Tiles, here:

12

Could it be a cache problem?

martriay commented 7 years ago

@NicoSantangelo I was thinking in that same toggle you pasted.

Could it be a cache problem?

Mmmh, tried pulling the repo, re-building the miner and opening the web ui on incognito but i'm still getting this: image

nicosantangelo commented 7 years ago

@martriay I managed to reproduce it by removing-refetching the branch. There was a problem with the last rebase, which left two functions with the same name on main.js. The last one on the file was outdated and overrode the newer one.

It should work now!

martriay commented 7 years ago

@NicoSantangelo it works now! But the main feedback remains:

eordano commented 7 years ago

I guess this is more of an epic, but this is what I would use for this admin interface:

https://blackrockdigital.github.io/startbootstrap-sb-admin-2/pages/index.html

So maybe we can just merge this?

nicosantangelo commented 7 years ago

I've updated the missnamed node action to miner. Let me know if you want me to try to add the table and toggle @martriay suggested or if we're going to redesign the dashboard (in another issue) like @eordano proposed.

Also, just in case you missed it, we need to discuss the points mentioned on the first post eventually:

  • We don't have a good way to send notifications in case a request fails (or succeeds)
  • The information is static, meaning that the mining speed and tile list will stay the same until a page refresh
  • If the user has a lot of tiles, it could choke the UI

(...)

I think that the code it's at a good point to be transformed to use a framework (it has <200 lines of code and little HTML). I was thinking of using React (with redux I think) to do so, but I'm open to suggestions!

martriay commented 7 years ago
nicosantangelo commented 7 years ago

@martriay I added the table and changed the node references to miner. I'm having troubles placing the toggle thought.

Let me know if you like any of them or if you have any other ideas and I'll update the branch :) The last screen is the current version

CAVEAT: Multiple vertical scrolls. A solution can be re-ordering the boxes