Merge pull request #3169 from nymtech/feature/explorer-3168

Feature/explorer 3168
This commit is contained in:
Tommy Verrall
2023-03-10 17:32:22 +02:00
committed by GitHub
4 changed files with 22 additions and 11 deletions
@@ -36,16 +36,16 @@ export const EconomicsInfoColumns: ColumnsType[] = [
tooltipInfo:
'Monthly operational cost of running this node. This cost is set by the operator and it influences how the rewards are split between the operator and delegators.',
},
{
field: 'avgUptime',
title: 'Avg. Score',
width: '10%',
tooltipInfo: "Mixnode's average routing score in the last 24 hour",
},
{
field: 'nodePerformance',
title: 'Routing Score',
width: '10%',
tooltipInfo:
"Mixnode's most recent score (measured in the last 15 minutes). Routing score is relative to that of the network. Each time a gateway is tested, the test packets have to go through the full path of the network (gateway + 3 nodes). If a node in the path drop packets it will affect the score of the gateway and other nodes in the test.",
},
{
field: 'avgUptime',
title: 'Avg. Score',
tooltipInfo: "Mixnode's average routing score in the last 24 hour",
},
];
+6 -1
View File
@@ -111,7 +111,12 @@ const PageGatewayDetailsWithState = ({ selectedGateway }: { selectedGateway: Gat
{uptimeStory && (
<ContentCard title="Routing Score">
{uptimeStory.error && <ComponentError text="There was a problem retrieving routing score." />}
<UptimeChart loading={uptimeStory.isLoading} xLabel="date" uptimeStory={uptimeStory} />
<UptimeChart
loading={uptimeStory.isLoading}
xLabel="Date"
yLabel="Daily average"
uptimeStory={uptimeStory}
/>
</ContentCard>
)}
</Grid>
+3 -3
View File
@@ -153,9 +153,9 @@ export const PageGateways: FCWithChildren = () => {
renderCell: (params: GridRenderCellParams) => (
<MuiLink
sx={{ ...cellStyles }}
href={`${NYM_BIG_DIPPER}/account/${params.value}`}
target="_blank"
data-testid="owner"
component={RRDLink}
to={`/network-components/gateway/${params.row.identity_key}`}
data-testid="version"
>
{params.value}
</MuiLink>
+7 -1
View File
@@ -42,6 +42,7 @@ const columns: ColumnsType[] = [
field: 'self_percentage',
width: '10%',
title: 'Bond %',
tooltipInfo: "Percentage of the operator's bond to the total stake on the node",
},
{
@@ -140,7 +141,12 @@ const PageMixnodeDetailWithState: FCWithChildren = () => {
{uptimeStory && (
<ContentCard title="Routing Score">
{uptimeStory.error && <ComponentError text="There was a problem retrieving routing score." />}
<UptimeChart loading={uptimeStory.isLoading} xLabel="date" uptimeStory={uptimeStory} />
<UptimeChart
loading={uptimeStory.isLoading}
xLabel="Date"
yLabel="Daily average"
uptimeStory={uptimeStory}
/>
</ContentCard>
)}
</Grid>