Skip to content

Commit

Permalink
remove api documentation link, rename node -> container (omnistrate-o…
Browse files Browse the repository at this point in the history
…ss#184)

* remove api documentation link

* text change Nodes to Containers
  • Loading branch information
mohandholu43 authored May 9, 2024
1 parent c4beb6f commit 0015376
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ function getTabs(isMetricsEnabled, isLogsEnabled, isActive) {
const tabs = {
resourceInstanceDetails: "Resource Instance Details",
connectivity: "Connectivity",
nodes: "Nodes",
nodes: "Containers",
};
if (isMetricsEnabled) tabs["metrics"] = "Metrics";
if (isLogsEnabled) tabs["logs"] = "Logs";
Expand All @@ -401,7 +401,7 @@ function getTabs(isMetricsEnabled, isLogsEnabled, isActive) {
const TAB_LABEL_MAP = {
"Resource Instance Details": "Resource Instance Details",
Connectivity: "Connectivity",
Nodes: "Nodes",
Containers: "Containers",
Metrics: "Metrics",
Logs: "Logs",
};
Expand Down
16 changes: 8 additions & 8 deletions src/components/DashboardLayout/MarketplaceStaticNavList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ const MarketplaceStaticNavList = (props) => {
};

const NavLinks = [
{
text: "API Documentation",
isDisabled: false,
isActive: isActive,
href: apiDocs ?? apiDocsUrl,
icon: APIDocsIcon,
newTab: apiDocs ? false : true,
},
// {
// text: "API Documentation",
// isDisabled: false,
// isActive: isActive,
// href: apiDocs ?? apiDocsUrl,
// icon: APIDocsIcon,
// newTab: apiDocs ? false : true,
// },
{
text: "Download CLI",
isDisabled: isDownloading,
Expand Down
4 changes: 2 additions & 2 deletions src/components/ResourceInstance/Logs/Logs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Logs(props) {
let logsSocketEndpoint = null;
if (socketBaseURL && selectedNodeId) {
logsSocketEndpoint = `${socketBaseURL}&podName=${selectedNodeId}&instanceId=${resourceInstanceId}`;
}
}
// else if (socketBaseURL && resourceKey && mainResourceHasCompute) {
// logsSocketEndpoint = `${socketBaseURL}&podName=${resourceKey}-0&instanceId=${resourceInstanceId}`;
// }
Expand Down Expand Up @@ -164,7 +164,7 @@ function Logs(props) {
{nodes?.length > 0 && (
<Box sx={{ minWidth: "320px" }}>
<Text size="small" weight="medium" color="#344054">
Node ID
Container ID
</Text>
<Select
value={selectedNodeId}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ResourceInstance/Metrics/Metrics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function Metrics(props) {
let metricsSocketEndpoint = null;
if (socketBaseURL && selectedNode) {
metricsSocketEndpoint = `${socketBaseURL}&podName=${selectedNode.id}&instanceId=${resourceInstanceId}`;
}
}
// else if (socketBaseURL && resourceKey && mainResourceHasCompute) {
// metricsSocketEndpoint = `${socketBaseURL}&podName=${resourceKey}-0&instanceId=${resourceInstanceId}`;
// }
Expand Down Expand Up @@ -741,7 +741,7 @@ function Metrics(props) {
{nodes?.length > 0 && (
<Box sx={{ minWidth: "320px" }}>
<Text size="small" weight="medium" color="#344054">
Node ID
Container ID
</Text>
<Select
value={selectedNode}
Expand Down
6 changes: 3 additions & 3 deletions src/components/ResourceInstance/NodesTable/NodesTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function NodesTable(props) {
() => [
{
field: "nodeId",
headerName: "Node ID",
headerName: "Container ID",
flex: 1,
minWidth: 190,
renderCell: (params) => {
Expand Down Expand Up @@ -250,7 +250,7 @@ export default function NodesTable(props) {
return (
<Card sx={{ minHeight: "500px", marginTop: "54px" }}>
<Stack direction="row" justifyContent="center" marginTop="200px">
<Text size="xlarge">No Nodes data</Text>
<Text size="xlarge">No Containers data</Text>
</Stack>
</Card>
);
Expand All @@ -259,7 +259,7 @@ export default function NodesTable(props) {
return (
<TableContainer mt={3}>
<TableTitle>
List of Nodes {resourceName ? "for" : ""} {resourceName}
List of Containers {resourceName ? "for" : ""} {resourceName}
</TableTitle>
<Divider sx={{ marginTop: "10px" }} />
<Stack direction="row" justifyContent="space-between" mt="10px">
Expand Down

0 comments on commit 0015376

Please sign in to comment.