Commit Graph

26 Commits

Author SHA1 Message Date
Michael Müller 26000f3e8a Move address to end in nodeDetails (#149)
This makes the backend backwards compatible with
frontends which still have an old version of nodeDetails.
2019-05-22 21:06:49 +02:00
Michael Müller 5d82253257 Display state of Grandpa (#134)
* Make it clear that settings apply only to list view

Since the consensus view will be added users could
mistake the settings as being applied there as well.

* Add Jdenticon

* Add Grandpa consensus visualisation

* Remove fade-in animation

* Update packages and yarn.lock

* Broadcast only delta of what changed

* Minor code improvements

* Use NodeId instead of Address in first dimension

By using the NodeId instead of the Address in the first
dimension of the consensus matrice we save quite some
space in the payload which is sent to the browser.

The commit also contains some minor refactoring.

* Refactoring and improving naming

* Display boxes only after size has been detected

This look a bit nicer, otherwise the UI will still adapt
the box sizes once everything has already been loaded up.

* Fix cache

* Send consensus info on first subscribe

So that frontend can immediately display the current state
and doesn't have to aggregate first.

* Increase cache size

* Send deltas only if block in cache

Otherwise the UI will update old blocks which
are still visible to an empty shell.

* Adjust cache size

* Make cache sizes dependent

* Ensure authority caches are aligned

If only one authority has already submitted consensus info
for a new block then the cache of that one is offset by one
from all other authorities.

* Handle restarts on authority set changes properly

* Fix backfill mechanism

* Extract function

* Display only blocks since last authority set change

* Handle authority set sent on connect

When nodes lose their connection to telemetry
or connect on first time they sent their current
authority set for the UI to have something to
display.

These sets don't contain an explicit block number,
because the set didn't change -- it just got resent.
In this case the set is `undefined`.

* Introduce Authority type

This is necessary to cover the case where one
node connects, submits its authority set containing
another node which has not yet connected to Telemetry.

In this case we still want to create a shell object
and fill it with the address.

* Handle corner case

In the case of only one block having been produced, two authorities,
and only one authority connected, the UI did not show up.

* Display placeholder if name not yet available

* Replace with camelCase

* Replace with correct types

* Replace grandpa icon

* Change consensus icon to cube (finalized block icon)

* Upgrade dependencies

* Implement thin backend instead of thick

* Cleanup and minor improvements

* Minor refactoring

* Extract common code into function

* Switch module to class

* Remove unused code

* Clean markup

* Remove unused code

* Revert "Upgrade dependencies"

This reverts commit bf4d9ea48b3417860ccf40f0c5122027ffc59689.

* Update polkadot-identicon in frontend

Change version number to `^1.1.45` and run
`npm update polkadot-identicon`.

* Run yarn install

* Update react-measure to 2.3.0

Changed version number, ran

	cd packages/frontend/ && npm update react-reasure &&
	cd ../../ && yarn install

* Improve typing by introducing partial type

* Reduce indexing operations

* Shorten function

* Shorten function

* Introduce initialiseConsensusViewByRef

* Remove dead conditional branch

* Return consensusView ref from initialiseConsensusView

*  Handle consensusView ref returned from initialiseConsensusView
2019-05-20 13:20:40 +02:00
Michael Müller fe03dddbd2 Minor fixes (#136)
* Fix typo
* Fix crooked merge result
2019-04-18 11:05:46 +02:00
Gregory Terzian 8fa36118b5 Add network state to UI (#128) 2019-03-25 21:22:43 +01:00
Maciej Hirsz 1023b72fe7 Remove debug logging (#119) 2019-03-06 16:08:55 +01:00
Maciej Hirsz dc71df7911 Add finalized block info (#104) 2019-02-01 15:53:05 +01:00
Maciej Hirsz 052f5c846c Add bandwidth monitors (#100) 2019-01-31 12:43:53 +01:00
Maciej Hirsz abe2ff5057 Fix sorting (#77) 2018-10-08 14:14:21 +02:00
maciejhirsz 6dc1d532e7 Hotfix pins 2018-10-05 18:47:20 +02:00
Maciej Hirsz d299e2103a Render individual node changes on demand (#76) 2018-10-05 18:21:43 +02:00
Maciej Hirsz 717c5a3ac9 Only update hardware stats when necessary (#73) 2018-10-01 14:10:54 +02:00
Maciej Hirsz 76e9155823 Better Sparklines (#72)
* Cleaner renders
* Add timestamps to Sparklines
* Keep track of chart history up to 1h in the past
2018-10-01 11:41:40 +02:00
Maciej Hirsz f9078c6979 Sparklines (#65) 2018-09-28 13:47:39 +02:00
Maciej Hirsz bc9d47d358 Demystify Node state (#61) 2018-09-27 21:30:51 +02:00
Maciej Hirsz 62d2847bb0 Don't sort the list on every render (#58) 2018-09-27 17:01:51 +02:00
Maciej Hirsz 87facf1552 Add location column (#57) 2018-09-26 13:55:07 +02:00
Maciej Hirsz e0012099c0 Pin using names (#49 again) (#51) 2018-09-24 21:53:16 +02:00
Maciej Hirsz 1559b82eb0 Allow to pin nodes to top of the list (#48)
* Refactored persistent state a bit
* Allow nodes to be pinned to top
2018-09-24 17:30:39 +02:00
Maciej Hirsz ca0ab38bd2 Settings Tab (#42)
* Settings tab
2018-09-21 18:07:14 +02:00
maciejhirsz ba545799fe Reorganize Node components and state 2018-08-10 14:36:05 +02:00
maciejhirsz ef3f52f5c8 Offline indicator, average block time and stuff 2018-07-13 23:20:29 +02:00
maciejhirsz ea8d7ad77d Sort chains by node count 2018-07-12 16:04:04 +02:00
maciejhirsz 538a30ccc3 Reformatting 2018-07-06 17:53:42 +02:00
maciejhirsz 9a8e625df6 Categorize nodes by chains 2018-07-06 15:08:22 +02:00
maciejhirsz 01da7dfc47 Added ago timers 2018-07-05 17:04:00 +02:00
maciejhirsz 1eea35b7ce Frontend stuff 2018-07-02 16:07:16 +02:00