mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-25 14:08:01 +00:00
5d82253257
* 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
57 lines
1.4 KiB
JSON
57 lines
1.4 KiB
JSON
{
|
|
"name": "@dotstats/frontend",
|
|
"version": "0.1.0",
|
|
"author": "Parity Technologies Ltd. <admin@parity.io>",
|
|
"license": "GPL-3.0",
|
|
"description": "Polkadot Telemetry frontend",
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js"
|
|
],
|
|
"setupFiles": [
|
|
"jest-localstorage-mock"
|
|
],
|
|
"transform": {
|
|
"\\.(ts|tsx)$": "ts-jest"
|
|
},
|
|
"testRegex": "/test/.*\\.(spec).(ts|tsx|js)$"
|
|
},
|
|
"dependencies": {
|
|
"@fnando/sparkline": "maciejhirsz/sparkline",
|
|
"@types/react-measure": "^2.0.5",
|
|
"polkadot-identicon": "^1.1.45",
|
|
"react": "16.4.0",
|
|
"react-dom": "16.4.0",
|
|
"react-measure": "^2.3.0",
|
|
"react-scripts-ts": "2.17.0",
|
|
"react-svg": "^4.1.1",
|
|
"stable": "^0.1.8"
|
|
},
|
|
"scripts": {
|
|
"start": "react-scripts-ts start",
|
|
"build": "react-scripts-ts build",
|
|
"test": "echo 'FIXME: FE tests need updating'",
|
|
"eject": "react-scripts-ts eject"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^23.0.2",
|
|
"@types/node": "^10.3.2",
|
|
"@types/react": "^16.3.17",
|
|
"@types/react-dom": "^16.0.6",
|
|
"@types/react-svg": "^3.0.0",
|
|
"babel-jest": "^23.6.0",
|
|
"babel-preset-env": "^1.7.0",
|
|
"babel-preset-react": "^6.24.1",
|
|
"enzyme": "^3.6.0",
|
|
"enzyme-adapter-react-16": "^1.5.0",
|
|
"jest": "^23.6.0",
|
|
"jest-localstorage-mock": "^2.2.0",
|
|
"mock-socket": "^8.0.2",
|
|
"react-test-renderer": "^16.5.2",
|
|
"ts-jest": "^23.10.2",
|
|
"typescript": "^2.9.2"
|
|
}
|
|
}
|