@openshift-migration-advisor/shared-components 0.23.0-e2d66ca45d64 → 0.23.0-e6249b8ada7d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,11 +15,11 @@ const AggregateCluster = ({ rows, isExportMode }) => {
15
15
  }
16
16
  return (_jsx("div", { className: isExportMode ? undefined : clusterDetailsTableScrollStyle, "data-scroll-constrained": isExportMode ? undefined : "true", children: _jsx(AggregateClusterTable, { rows: rows }) }));
17
17
  };
18
- const DetailedClusterView = ({ details, }) => (_jsxs(Grid, { hasGutter: true, children: [_jsx(GridItem, { children: _jsxs(DescriptionList, { isAutoFit: true, displaySize: "lg", children: [_jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "Hosts" }), _jsx(DescriptionListDescription, { children: details.hosts })] }), _jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "VMs" }), _jsx(DescriptionListDescription, { children: details.vms })] }), _jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "Networks detected" }), _jsx(DescriptionListDescription, { children: details.networksDetected })] })] }) }), _jsx(GridItem, { md: 4, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "Core infrastructure" }), _jsx(CardBody, { children: _jsx(FeatureList, { items: [
18
+ const DetailedClusterView = ({ details, }) => (_jsxs(Grid, { hasGutter: true, children: [_jsx(GridItem, { span: 12, children: _jsxs(DescriptionList, { isAutoFit: true, displaySize: "lg", children: [_jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "Hosts" }), _jsx(DescriptionListDescription, { children: details.hosts })] }), _jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "VMs" }), _jsx(DescriptionListDescription, { children: details.vms })] }), _jsxs(DescriptionListGroup, { children: [_jsx(DescriptionListTerm, { children: "Networks detected" }), _jsx(DescriptionListDescription, { children: details.networksDetected })] })] }) }), _jsx(GridItem, { md: 4, span: 12, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "Core infrastructure" }), _jsx(CardBody, { children: _jsx(FeatureList, { items: [
19
19
  { label: "vMotion", status: details.vmotion },
20
20
  { label: "DRS", status: details.drs },
21
21
  { label: "HA", status: details.ha },
22
- ] }) })] }) }), _jsx(GridItem, { md: 4, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "vSAN capabilities" }), _jsx(CardBody, { children: _jsx(FeatureList, { items: [{ label: "vSAN", status: details.vsan }] }) })] }) }), _jsx(GridItem, { md: 4, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "Network topology" }), _jsx(CardBody, { children: details.networks.length === 0 ? (_jsx(Content, { component: "p", children: "No networks detected" })) : (_jsxs(_Fragment, { children: [_jsxs(Content, { component: "p", children: [details.networksDetected, " ", details.networksDetected === 1
22
+ ] }) })] }) }), _jsx(GridItem, { md: 4, span: 12, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "vSAN capabilities" }), _jsx(CardBody, { children: _jsx(FeatureList, { items: [{ label: "vSAN", status: details.vsan }] }) })] }) }), _jsx(GridItem, { md: 4, span: 12, children: _jsxs(Card, { isFullHeight: true, children: [_jsx(CardTitle, { children: "Network topology" }), _jsx(CardBody, { children: details.networks.length === 0 ? (_jsx(Content, { component: "p", children: "No networks detected" })) : (_jsxs(_Fragment, { children: [_jsxs(Content, { component: "p", children: [details.networksDetected, " ", details.networksDetected === 1
23
23
  ? "network detected"
24
24
  : "networks detected"] }), _jsx(LabelGroup, { isCompact: true, numLabels: details.networks.length, "aria-label": "Detected networks", children: details.networks.map((network, index) => (_jsx(Label, { color: "blue", isCompact: true, children: network.displayName }, `${network.name}-${network.vlanId ?? index}`))) })] })) })] }) })] }));
25
25
  export const VCenterClusterDetails = ({ isAggregateView, rows, details, isExportMode = false, }) => (_jsxs(Card, { isFullHeight: true, id: "vcenter-cluster-details", children: [_jsx(CardTitle, { children: "vCenter cluster details" }), _jsx(CardBody, { children: isAggregateView || !details ? (_jsx(AggregateCluster, { rows: rows, isExportMode: isExportMode })) : (_jsx(DetailedClusterView, { details: details })) })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/shared-components",
3
- "version": "0.23.0-e2d66ca45d64",
3
+ "version": "0.23.0-e6249b8ada7d",
4
4
  "description": "Shared React UI components for Migration Advisor apps (report charts, forms, OS support tiers)",
5
5
  "author": "Montse Ortega <mortegag@redhat.com>",
6
6
  "license": "Apache-2.0",
@@ -111,7 +111,7 @@ const DetailedClusterView: FC<{ details: ClusterDetailsModel }> = ({
111
111
  details,
112
112
  }) => (
113
113
  <Grid hasGutter>
114
- <GridItem>
114
+ <GridItem span={12}>
115
115
  <DescriptionList isAutoFit displaySize="lg">
116
116
  <DescriptionListGroup>
117
117
  <DescriptionListTerm>Hosts</DescriptionListTerm>
@@ -131,7 +131,7 @@ const DetailedClusterView: FC<{ details: ClusterDetailsModel }> = ({
131
131
  </DescriptionListGroup>
132
132
  </DescriptionList>
133
133
  </GridItem>
134
- <GridItem md={4}>
134
+ <GridItem md={4} span={12}>
135
135
  <Card isFullHeight>
136
136
  <CardTitle>Core infrastructure</CardTitle>
137
137
  <CardBody>
@@ -145,7 +145,7 @@ const DetailedClusterView: FC<{ details: ClusterDetailsModel }> = ({
145
145
  </CardBody>
146
146
  </Card>
147
147
  </GridItem>
148
- <GridItem md={4}>
148
+ <GridItem md={4} span={12}>
149
149
  <Card isFullHeight>
150
150
  <CardTitle>vSAN capabilities</CardTitle>
151
151
  <CardBody>
@@ -153,7 +153,7 @@ const DetailedClusterView: FC<{ details: ClusterDetailsModel }> = ({
153
153
  </CardBody>
154
154
  </Card>
155
155
  </GridItem>
156
- <GridItem md={4}>
156
+ <GridItem md={4} span={12}>
157
157
  <Card isFullHeight>
158
158
  <CardTitle>Network topology</CardTitle>
159
159
  <CardBody>