Skip to content

Commit

Permalink
Merge pull request #2688 from threefoldtech/development_node_details_…
Browse files Browse the repository at this point in the history
…last_deployment

Add the last deployment date on the node details pop up
  • Loading branch information
AhmedHanafy725 authored May 14, 2024
2 parents a0426f9 + 31ee836 commit 56bd63e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/gridproxy_client/src/modules/gateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface NodeStats {
users: {
deployments: number;
workloads: number;
last_deployment_timestamp: number;
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ export default {
{ name: "Certification Type", value: props.node.certificationType },
{
name: "Number of Workloads",
value: props.node.stats && props.node.stats.system ? props.node.stats.users.workloads.toString() : "N/A",
value: props.node.stats && props.node.stats.users ? props.node.stats.users.workloads.toString() : "N/A",
},
{
name: "Number of Deployments",
value: props.node.stats && props.node.stats.system ? props.node.stats.users.deployments.toString() : "N/A",
value: props.node.stats && props.node.stats.users ? props.node.stats.users.deployments.toString() : "N/A",
},
{
name: "Last Deployment",
value: props.node.stats?.users?.last_deployment_timestamp
? toHumanDate(props.node.stats.users.last_deployment_timestamp)
: "N/A",
},
];
};
Expand Down
1 change: 1 addition & 0 deletions packages/playground/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export const nodeStatsInitializer: NodeStats = {
users: {
deployments: 0,
workloads: 0,
last_deployment_timestamp: 0,
},
};

Expand Down

0 comments on commit 56bd63e

Please sign in to comment.