Skip to content

Commit

Permalink
feat: Add last deployment timestamp to node details card
Browse files Browse the repository at this point in the history
- Updated the NodeStats interface to include last_deployment_timestamp
- Added a new field 'Last Deployment' to the node details card in the dashboard
- Display the last deployment timestamp in human-readable format if available
  • Loading branch information
Mahmoud-Emad committed May 13, 2024
1 parent 4364940 commit d72d7d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 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 @@ -53,6 +53,13 @@ export default {
name: "Number of Deployments",
value: props.node.stats && props.node.stats.system ? props.node.stats.users.deployments.toString() : "N/A",
},
{
name: "Last Deployment",
value:
props.node.stats && props.node.stats.system
? toHumanDate(props.node.stats.users.last_deployment_timestamp)
: "N/A",
},
];
};
Expand Down

0 comments on commit d72d7d1

Please sign in to comment.