Commit Graph

71 Commits

Author SHA1 Message Date
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
Maciej Hirsz 4a48a6eecf fix: Stringify network state on demand (#146) 2019-05-14 15:19:00 +02:00
Maciej Hirsz 74c784c62d fix: Crash when accessing network state for nodes that don't have it. (#144)
* fix: Crash when accessing network state for nodes that don't have it.
2019-05-13 13:18:24 +02:00
Gregory Terzian 8fa36118b5 Add network state to UI (#128) 2019-03-25 21:22:43 +01:00
Gregory Terzian 0134677c2d Add network state to backend (#123) 2019-03-15 11:57:03 +01:00
Maciej Hirsz 1023b72fe7 Remove debug logging (#119) 2019-03-06 16:08:55 +01:00
Marko dfaabac0df Created a Dockerfile & docker-compose so theres no need to run in separate terminals (#111)
* docker file & docker-compose

* Readme & spelling corretions

* undoing formatOnSave changes

* more changes to readme
2019-02-21 16:41:24 +01:00
Maciej Hirsz 71778e9450 Downgrade finalized block on disconnect (#115) 2019-02-21 16:39:22 +01:00
Maciej Hirsz f9f34c6067 Downgrade block on disconnect (#114) 2019-02-21 16:20:52 +01:00
Maciej Hirsz dc71df7911 Add finalized block info (#104) 2019-02-01 15:53:05 +01:00
Maciej Hirsz d5b0192775 Clean a log 2019-01-31 12:46:02 +01:00
Maciej Hirsz 052f5c846c Add bandwidth monitors (#100) 2019-01-31 12:43:53 +01:00
Maciej Hirsz a437c15a29 More fixes for iplocation v6 2019-01-20 09:09:28 -08:00
Maciej Hirsz 8cc1749979 Fix iplocation 2019-01-20 09:04:31 -08:00
Maciej Hirsz 0f4049f665 Remove unused code (#81)
Closes #47.
2018-10-10 12:31:43 +02:00
Maciej Hirsz b8ad6249ca Tests and fixes to MeanList (#74) 2018-10-04 17:51:59 +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 51fb2cf326 No repeated Node ids (#70) 2018-09-30 10:33:29 +02:00
Maciej Hirsz dd379676fd Clear nodes on re-subbing (#69) 2018-09-30 09:43:03 +02:00
Maciej Hirsz f9078c6979 Sparklines (#65) 2018-09-28 13:47:39 +02:00
Maciej Hirsz df56e33bf6 Deploy script (#52)
* No-downtime deploy script
* Easier to use helper for average numbers
2018-09-25 11:53:57 +02:00
Maciej Hirsz 5e995ea21d Use node name as backup in case pubkey is not present (#50) 2018-09-24 21:33:06 +02:00
Maciej Hirsz 07b5880e5f Show CPU and memory use, disable last block time for now (#40) 2018-09-18 14:37:09 +02:00
Maciej Hirsz 762db7ebdc Show validator address for nodes (#37)
Show validator address for nodes
2018-09-12 13:55:37 +02:00
Maciej Hirsz afef6d7d8f Cache NodeId and Location (#35)
* Cache NodeId and Location
* Fix frontend dependency vuln
2018-08-24 16:26:05 +02:00
maciejhirsz a7e6b1182a Cleanup 2018-08-10 14:37:55 +02:00
maciejhirsz ba545799fe Reorganize Node components and state 2018-08-10 14:36:05 +02:00
Maciej Hirsz cc3bc77923 Merge pull request #22 from ltfschoen/9-refactor-calculate-avg-block-time
fix: Relates to #9. Reuse calculation of average block time
2018-07-27 15:01:09 +02:00
maciejhirsz cd8f965376 Nicer error handling on sockets 2018-07-27 12:51:15 +02:00
Luke Schoen ee8b76233a fix: Relates to #9. Reuse calculation of average block time
Issues:

* Unable to import `blockAverage` into Chain.ts or Node.ts due to Issue #21.
* TypeScript says `[ts] Module '"/Users/Me/code/blockchain/clones/paritytech/dotstats/packages/common/build/index"' has no exported member 'blockAverage'.`
2018-07-26 18:01:43 +02:00
maciejhirsz 20d8b21adc Handle ws errors on send/ping 2018-07-26 17:25:29 +02:00
maciejhirsz a8f0081385 Fix order for the log 2018-07-26 15:30:17 +02:00
maciejhirsz 3a421a291f Actually use the log :) 2018-07-26 15:28:37 +02:00
maciejhirsz 2f0f250d81 Log backend connections 2018-07-26 15:26:14 +02:00
maciejhirsz a04fae4de4 revert log 2018-07-26 13:54:08 +02:00
maciejhirsz aadc4fc5bb Fix reconnecting 2018-07-26 13:53:21 +02:00
Maciej Hirsz 6f5daad6c1 Merge pull request #19 from ltfschoen/constant-ports
Port numbers as constants
2018-07-26 11:55:40 +02:00
maciejhirsz 33c0acb21e Throttle updates from syncing nodes 2018-07-25 18:26:09 +02:00
maciejhirsz a909400678 Add ping to the client, reconnect on dead connections 2018-07-25 17:49:53 +02:00
Luke Schoen f735d2ac3a Port numbers as constants 2018-07-24 23:08:06 +02:00
maciejhirsz c12374209d Revert changes that should be on local only 2018-07-21 08:31:25 +02:00
maciejhirsz 42e7010697 Update block immediately after adding a node to the chain 2018-07-21 08:30:06 +02:00
maciejhirsz 280e0f5c9c Send ping to the node 2018-07-19 15:23:10 +02:00
maciejhirsz 80f0eabcc9 Handle system.interval at block height 0 2018-07-18 20:29:47 +02:00
maciejhirsz 5c1480f9f5 Display location on map node details 2018-07-18 16:59:47 +02:00
maciejhirsz f4a4f1091a Tweak map, remove legacy version msg 2018-07-17 17:03:06 +02:00
maciejhirsz f6fabfe340 Fix location 2018-07-16 11:13:22 +02:00
maciejhirsz 43a87deb9c Add hidden map 2018-07-15 22:50:41 +02:00
maciejhirsz 2c073eac19 Working on map view 2018-07-14 22:56:20 +02:00