Commit Graph

190 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
Maciej Hirsz 2ec4269699 feat: add Joystream icon (#142) 2019-05-06 12:09:29 +02:00
Maciej Hirsz 54cb64065a feat: Add edgeware node icon (#141) 2019-04-25 13:09:46 +02:00
Michael Müller fe03dddbd2 Minor fixes (#136)
* Fix typo
* Fix crooked merge result
2019-04-18 11:05:46 +02:00
Maciej Hirsz e1bad6e24b feat: add ChainX impl icon (#137) 2019-04-15 12:39:05 +02:00
Maciej Hirsz e078e7a9b9 Some visual tweaks (#133) 2019-03-26 11:09:05 +01:00
Gregory Terzian 8fa36118b5 Add network state to UI (#128) 2019-03-25 21:22:43 +01:00
Maciej Hirsz 1058cd965c Update Travis (#126) 2019-03-19 15:18:22 +01:00
Alex Siman 0803e1d1f7 Add missing space in a title (#121) 2019-03-19 10:37:10 +01:00
Maciej Hirsz 91df8e7167 More style tweaks (#125) 2019-03-15 16:31:21 +01:00
Maciej Hirsz ce68e0e271 Update styles to new Polkadot identity (#124) 2019-03-15 15:50:03 +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
Jaco Greeff bfd339bbe5 Add icon for polkadot-js client (#118)
* Add icon for polkadot-js client

* Update icon
2019-03-04 12:03:57 +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 ed65a00c95 Use stable sort for chain tabs (#113) 2019-02-21 14:40:56 +01:00
Maciej Hirsz 76a07654ab Show ?.?.? for invalid semver (#108) 2019-02-11 18:38:09 +01:00
Maciej Hirsz 25d443e96a Long time ago (#107) 2019-02-08 14:44:29 +01:00
Maciej Hirsz 24a28a0ffb Fix Identicons (#106) 2019-02-06 09:38:02 +01:00
Maciej Hirsz dc71df7911 Add finalized block info (#104) 2019-02-01 15:53:05 +01:00
Maciej Hirsz 8c70007eef Add minimum scales for memory and bandwidth (#103) 2019-02-01 12:26:02 +01:00
Maciej Hirsz b517e917c7 Tweak bandwidth numbers formatting (#101) 2019-01-31 14:37:08 +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 6f2863a771 More fixes for iplocation v6 2019-01-20 09:10:47 -08: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
Alexander Krupenkin dac6ca77f8 Added Robonomics implementation icon 2019-01-18 09:13:15 -08:00
Maciej Hirsz f91ddf657b Update dependencies (#97)
* Update dependencies
2019-01-18 09:12:39 -08:00
Maciej Hirsz c1155a9c22 Remove Filter from Chain component (#89) 2018-10-25 16:45:49 +02:00
Maciej Hirsz db87eae19f Only render visible rows in the List (#87) 2018-10-14 11:16:23 +02:00
maciejhirsz 1dc9ef82e5 Cleanup redundant CSS 2018-10-12 17:41:04 +02:00
Maciej Hirsz 97b3d1ec23 New List, Map, and Settings components (#86) 2018-10-12 17:34:49 +02:00
Maciej Hirsz 2ed9061d23 Don't jump when updating table (#84) 2018-10-11 15:48:29 +02:00
Maciej Hirsz aa5bbba1bf Sticky focus on off-screen filter (#83) 2018-10-10 16:13:10 +02:00
Maciej Hirsz 491b70fae9 Click to copy address or block hash (#82) 2018-10-10 15:01:28 +02:00
Maciej Hirsz 0f4049f665 Remove unused code (#81)
Closes #47.
2018-10-10 12:31:43 +02:00
Maciej Hirsz 3655a0aac6 Fix to text filter responsiveness (#80) 2018-10-10 11:53:14 +02:00
Maciej Hirsz 56f0630558 Style improvements (#79) 2018-10-09 14:31:30 +02:00
Maciej Hirsz 85b3eaa3a8 Do less work when rendering (#78) 2018-10-08 16:54:39 +02: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 784c112af3 Travis CI integration (#75) 2018-10-05 17:08:27 +02:00
YJ 8e16f7c129 Unit testing Connections.ts (#66)
* Jest, Enzyme test env setup

* unit tests for telemetry state update logic

* remove sinon, superfluous scripts

* Remove console log
2018-10-05 09:14:53 +02:00
Maciej Hirsz b8ad6249ca Tests and fixes to MeanList (#74) 2018-10-04 17:51:59 +02:00