diff --git a/packages/console-app/src/containers/panels/signal/SignalServers.js b/packages/console-app/src/containers/panels/signal/SignalServers.js index c6c85cc..1a82c9e 100644 --- a/packages/console-app/src/containers/panels/signal/SignalServers.js +++ b/packages/console-app/src/containers/panels/signal/SignalServers.js @@ -22,6 +22,8 @@ import SIGNAL_STATUS from '../../../gql/signal_status.graphql'; import { ConsoleContext, useQueryStatusReducer } from '../../../hooks'; +const NODE_ID_LENGTH = 8; + const buildDataGraph = (rootId, prevGraph, nodes) => { const newGraph = { nodes: [], links: [] }; @@ -39,7 +41,7 @@ const buildDataGraph = (rootId, prevGraph, nodes) => { } const oldNode = prevGraph.nodes.find(n => n.id === node.id) || {}; - const newNode = { ...oldNode, id: node.id, label: node.id.slice(0, 6), type, data: node }; + const newNode = { ...oldNode, id: node.id, label: node.id.slice(0, NODE_ID_LENGTH).toUpperCase(), type, data: node }; if (type === 'root') { newNode.fx = 0; newNode.fy = 0; @@ -94,9 +96,7 @@ function Row (props) { return ( <> - - {row.id} - + {row.id.slice(0, NODE_ID_LENGTH).toUpperCase()} {row.signal.topics.reduce((prev, curr) => prev + curr.peers.length, 0)} {system?.version || '-'} {system?.nodejs?.version || '-'} diff --git a/packages/console-app/src/version.json b/packages/console-app/src/version.json index e6a2bec..808a821 100644 --- a/packages/console-app/src/version.json +++ b/packages/console-app/src/version.json @@ -1,7 +1,7 @@ { "build": { "name": "@dxos/console-app", - "buildDate": "2020-10-07T16:33:05.270Z", - "version": "1.1.0-beta.6" + "buildDate": "2020-10-08T05:13:10.720Z", + "version": "1.1.0-beta.8" } }