@rh-support/troubleshoot 0.2.102 → 0.2.106-beta.2

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.
package/README.md CHANGED
@@ -19,5 +19,3 @@ export function TroubleshootApp(routeProps: RouteComponentProps<{}>) {
19
19
  </RootTroubleshootProvider>);
20
20
  }
21
21
  ```
22
-
23
- .
@@ -1 +1 @@
1
- {"version":3,"file":"ManagedAccountsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/ManagedAccountsDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7G,UAAU,MAAO,SAAQ,gBAAgB;IACrC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,mBAAmB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACxE,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,KAAK,IAAI,CAAC;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAOD,iBAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,eAyD7C;kBAzDQ,uBAAuB;;;AA2DhC,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"ManagedAccountsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/ManagedAccountsDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGhF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7G,UAAU,MAAO,SAAQ,gBAAgB;IACrC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,mBAAmB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACxE,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,KAAK,IAAI,CAAC;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAOD,iBAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,eA4D7C;kBA5DQ,uBAAuB;;;AA8DhC,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -24,7 +24,10 @@ function ManagedAccountsDropdown(props) {
24
24
  };
25
25
  setSelectedItem(toOption(item, { labelKey: getLabelForAccountOption }));
26
26
  }, [props.managedAccounts.data, props.selectedAccountNumber]);
27
- const managedAccountsOptions = props.managedAccounts.data.map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-u-text-nowrap pf-u-pr-sm" },
27
+ // Only accounts that have granted access permission to partner should be listed
28
+ const managedAccountsOptions = props.managedAccounts.data
29
+ .filter((account) => account.partnerCaseAccess === 'All')
30
+ .map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-u-text-nowrap pf-u-pr-sm" },
28
31
  ' ',
29
32
  React.createElement(InfoCircleIcon, null),
30
33
  " ",
@@ -53,7 +53,7 @@ function CaseAlternateId(props) {
53
53
  const updateAlternateId = () => __awaiter(this, void 0, void 0, function* () {
54
54
  try {
55
55
  setIsUpdating(true);
56
- const caseDetails = { alternateId: alternateIdState };
56
+ const caseDetails = { alternateId: alternateIdState === null || alternateIdState === void 0 ? void 0 : alternateIdState.trim() };
57
57
  yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
58
58
  ToastNotification.addSuccessMessage(t(`Alternate case ID has been successfully updated`));
59
59
  setIsUpdating(false);
@@ -64,7 +64,7 @@ function CaseHostname(props) {
64
64
  }
65
65
  });
66
66
  const onSave = (e) => __awaiter(this, void 0, void 0, function* () {
67
- const caseDetails = { hostname: hostnameState };
67
+ const caseDetails = { hostname: hostnameState === null || hostnameState === void 0 ? void 0 : hostnameState.trim() };
68
68
  try {
69
69
  yield onHostnameUpdate(caseDetails);
70
70
  setLocalHostnameChange(true);
@@ -67,7 +67,7 @@ function Summary(props) {
67
67
  });
68
68
  const onSave = (e) => __awaiter(this, void 0, void 0, function* () {
69
69
  setHasLargeSummary(false);
70
- const caseDetails = { summary: summaryState };
70
+ const caseDetails = { summary: summaryState === null || summaryState === void 0 ? void 0 : summaryState.trim() };
71
71
  if (caseNumber) {
72
72
  // edit/view case
73
73
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAgC,MAAM,sCAAsC,CAAC;AAE1G,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAYjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACzC;AAQD,QAAA,MAAM,qBAAqB,cAAqB,MAAM,qEASrD,CAAC;AAeF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA4TzC;kBA5TQ,mBAAmB;;;AA+T5B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAgC,MAAM,sCAAsC,CAAC;AAE1G,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAWjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;CACzC;AAQD,QAAA,MAAM,qBAAqB,cAAqB,MAAM,qEASrD,CAAC;AAeF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAwTzC;kBAxTQ,mBAAmB;;;AA2T5B,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -10,10 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { cloud } from '@cee-eng/hydrajs';
11
11
  import { Checkbox, Divider, Select, SelectOption, SelectVariant } from '@patternfly/react-core';
12
12
  import find from 'lodash/find';
13
+ import findIndex from 'lodash/findIndex';
13
14
  import groupBy from 'lodash/groupBy';
14
15
  import isEmpty from 'lodash/isEmpty';
15
- import map from 'lodash/map';
16
- import merge from 'lodash/merge';
17
16
  import React, { useEffect, useRef, useState } from 'react';
18
17
  import { Trans, useTranslation } from 'react-i18next';
19
18
  import { getDisplayNameForCluster } from '../../utils/caseOpenshiftClusterIdUtils';
@@ -48,8 +47,7 @@ const createState = (external_cluster_id, display_name) => {
48
47
  };
49
48
  function OpenshiftDropdownV4(props) {
50
49
  const { t } = useTranslation();
51
- const OLD_API_PER_PAGE_GET_ALL = 5000;
52
- const PER_PAGE = 200;
50
+ const PER_PAGE = 20;
53
51
  const [clustersRawResponse, setClustersRawResponse] = useState([]);
54
52
  const abortControllerRef = useRef(undefined);
55
53
  const [clustersSelectOptions, setClustersSelectOptions] = useState([]);
@@ -58,6 +56,7 @@ function OpenshiftDropdownV4(props) {
58
56
  const [inputVal, setInputVal] = useState('');
59
57
  const [showArchivedClusters, setShowArchivedClusters] = useState(false);
60
58
  const [isFetchingClusters, setIsFetchingClusters] = useState(false);
59
+ const [totalResultsNo, setTotalResultsNo] = useState(0);
61
60
  // gets a cluster id and returns display name
62
61
  const getDisplayNameById = (clusters, id, noClusterIdReasonExplanation) => {
63
62
  if (isEmpty(id))
@@ -76,12 +75,18 @@ function OpenshiftDropdownV4(props) {
76
75
  setIsOpen(false);
77
76
  setInputVal('');
78
77
  props.onClusterClear();
78
+ const fetchedClusters = yield fetchAccountClusters();
79
+ setClustersRawResponse(fetchedClusters.items);
80
+ setTotalResultsNo(fetchedClusters.total);
81
+ setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
79
82
  });
80
83
  const onToggle = (isOpen) => setIsOpen(isOpen);
81
84
  const onViewMoreClick = () => __awaiter(this, void 0, void 0, function* () {
82
- const fetchedClusters = yield fetchAccountClusters(inputVal);
83
- const clusterResponse = [...clustersRawResponse, ...fetchedClusters.items];
85
+ const page = Math.floor(clustersRawResponse.length / PER_PAGE) + 1;
86
+ const fetchedClusters = yield fetchAccountClusters(inputVal, page);
87
+ const clusterResponse = [...clustersRawResponse, ...((fetchedClusters === null || fetchedClusters === void 0 ? void 0 : fetchedClusters.items) || [])];
84
88
  setClustersRawResponse(clusterResponse);
89
+ setTotalResultsNo(fetchedClusters.total);
85
90
  setClustersSelectOptions(getClusterOptions(clusterResponse));
86
91
  });
87
92
  const onSelect = (event, selectedCluster) => __awaiter(this, void 0, void 0, function* () {
@@ -100,7 +105,7 @@ function OpenshiftDropdownV4(props) {
100
105
  });
101
106
  const getClusterOptions = (clusters) => {
102
107
  const clustersResponseGrouped = groupBy(clusters, 'dns.base_domain') || [];
103
- const domainNames = Object.keys(clustersResponseGrouped);
108
+ const domainNames = Object.keys(clustersResponseGrouped) || [];
104
109
  // move undefined to the end of domains array
105
110
  const undefinedIndex = domainNames.findIndex((i) => i === 'undefined');
106
111
  if (undefinedIndex !== -1 && undefinedIndex !== domainNames.length - 1) {
@@ -113,14 +118,15 @@ function OpenshiftDropdownV4(props) {
113
118
  domainNames.forEach((domain, index) => {
114
119
  domain !== 'undefined' &&
115
120
  clusterOptions.push(React.createElement(SelectOption, { isDisabled: true, className: "pf-u-font-weight-bold pf-u-color-400", value: createState(domain, domain), key: domain + index }));
116
- clustersResponseGrouped[domain].forEach((cluster, i) => {
117
- clusterOptions.push(React.createElement(SelectOption, { key: cluster.external_cluster_id, value: createState(cluster.external_cluster_id, cluster.display_name) }));
118
- });
121
+ clustersResponseGrouped[domain] &&
122
+ clustersResponseGrouped[domain].forEach((cluster, i) => {
123
+ clusterOptions.push(React.createElement(SelectOption, { key: cluster.external_cluster_id, value: createState(cluster.external_cluster_id, cluster.display_name) }));
124
+ });
119
125
  clusterOptions.push(React.createElement(Divider, { component: "div", key: index + domain }));
120
126
  });
121
127
  return [
122
128
  React.createElement(SelectOption, { key: 'show-hide-archived-clusters', inputId: "check-box" },
123
- React.createElement(Checkbox, { label: t('Show archived clusters'), key: "show-archived-clusters", "aria-label": t('Show archived clusters'), id: "show-archived-clusters", "data-tracking-id": "show-hide-archived-clusters", isChecked: showArchivedClusters })),
129
+ React.createElement(Checkbox, { label: t('Show archived clusters'), key: "show-archived-clusters", "aria-label": t('Show archived clusters'), id: "show-archived-clusters", "data-tracking-id": "show-hide-archived-clusters", isChecked: showArchivedClusters, className: "archived-clusters-checkbox" })),
124
130
  React.createElement(Divider, { component: "div", key: 'cluster-id-options-divider-e' }),
125
131
  React.createElement(SelectOption, { key: 'dont-have-id', value: createState('dont-have-id', t("I don't have my Cluster ID")) }),
126
132
  ...(!props.isV4
@@ -132,9 +138,7 @@ function OpenshiftDropdownV4(props) {
132
138
  ...clusterOptions,
133
139
  ];
134
140
  };
135
- const fetchAccountClusters = (search = '') => __awaiter(this, void 0, void 0, function* () {
136
- var _a, _b;
137
- const page = Math.floor(clustersRawResponse.length / PER_PAGE) + 1;
141
+ const fetchAccountClusters = (search = '', page = 0) => __awaiter(this, void 0, void 0, function* () {
138
142
  setIsFetchingClusters(true);
139
143
  try {
140
144
  if (abortControllerRef.current !== undefined) {
@@ -144,72 +148,57 @@ function OpenshiftDropdownV4(props) {
144
148
  // recreate a new AbortController for each call
145
149
  let controller = new AbortController();
146
150
  abortControllerRef.current = controller;
147
- let clustersResponse;
148
151
  // query language: https://github.com/yaacov/tree-search-language
149
- // old api has dns info but we cannot exclude archived clusters
150
- // new api doesn't have dns info but we can exclude archived clusters
151
- if (showArchivedClusters) {
152
- // call old api
153
- clustersResponse = yield cloud.getAccountClusters({
154
- order: 'display_name asc',
155
- page,
156
- size: PER_PAGE,
157
- search: `external_id ILIKE '%${search}%' OR display_name ILIKE '%${search}%' OR dns.base_domain ILIKE '%${search}%'`,
158
- }, controller.signal);
159
- clustersResponse = clustersResponse.items;
160
- }
161
- else {
162
- // call old api get all clusters and call new api get limitted number of clusters
163
- // then add dns info to the new api response
164
- const clustersResponses = yield Promise.allSettled([
165
- cloud.getAccountClustersSubscription({
166
- order: 'display_name asc',
167
- page,
168
- size: PER_PAGE,
169
- search: `${showArchivedClusters ? '' : "status!='Archived' AND "} (external_cluster_id ILIKE '%${search}%' OR display_name ILIKE '%${search}%')`,
170
- fields: 'external_cluster_id,display_name,status,metrics.openshift_version',
171
- }, controller.signal),
172
- cloud.getAccountClusters({
173
- order: 'display_name asc',
174
- page: 1,
175
- size: OLD_API_PER_PAGE_GET_ALL,
176
- search: `external_id ILIKE '%${search}%' OR display_name ILIKE '%${search}%' OR dns.base_domain ILIKE '%${search}%'`,
177
- }, controller.signal),
178
- ]);
179
- if (clustersResponses[0].status === 'fulfilled' && clustersResponses[1].status === 'fulfilled') {
180
- const newApi = ((_a = clustersResponses[0].value) === null || _a === void 0 ? void 0 : _a.items) || [];
181
- const oldApi = ((_b = clustersResponses[1].value) === null || _b === void 0 ? void 0 : _b.items) || [];
182
- clustersResponse = map(newApi, function (item) {
183
- return merge(item, find(oldApi, { external_id: item.external_cluster_id }));
184
- });
185
- }
186
- else if (clustersResponses[0].status === 'fulfilled' && clustersResponses[1].status === 'rejected') {
187
- clustersResponse = clustersResponses[0].value.items;
188
- }
189
- else {
190
- clustersResponse = [];
191
- }
192
- }
193
- const items = clustersResponse.map((item) => {
152
+ const clustersResponse = yield cloud.getAccountClustersSubscription({
153
+ order: 'display_name asc',
154
+ page,
155
+ size: PER_PAGE,
156
+ search: `${showArchivedClusters ? '' : "status!='Archived'"} ${search && !showArchivedClusters ? 'AND' : ''} ${search ? `(external_cluster_id ILIKE '%${search}%' OR display_name ILIKE '%${search}%')` : ''}`,
157
+ fields: 'external_cluster_id,display_name,status,metrics.openshift_version',
158
+ }, controller.signal);
159
+ const items = clustersResponse.items
160
+ .filter((c) => !isEmpty(c.external_cluster_id))
161
+ .map((item) => {
194
162
  var _a, _b;
195
163
  return ({
196
164
  display_name: getDisplayNameForCluster(item),
197
- external_cluster_id: item.external_cluster_id || item.external_id,
198
- openshift_version: item.openshift_version || ((_b = (_a = item === null || item === void 0 ? void 0 : item.metrics) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.openshift_version) || '',
199
- dns: item.dns || {},
165
+ external_cluster_id: item.external_cluster_id,
166
+ openshift_version: ((_b = (_a = item === null || item === void 0 ? void 0 : item.metrics) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.openshift_version) || '',
200
167
  });
201
168
  });
169
+ try {
170
+ // old api has dns info
171
+ // new api doesn't have dns info but we can exclude archived clusters
172
+ // call old api get all clusters and call new api get limitted number of clusters
173
+ // then add dns info to the new api response
174
+ const promiseArray = clustersResponse.items.map((cluster) => cloud.getAccountClusters({
175
+ order: 'display_name asc',
176
+ search: `external_id='${cluster.external_cluster_id}' OR display_name='${cluster.external_cluster_id}'`,
177
+ }, controller.signal));
178
+ const oldApiResponse = yield Promise.allSettled(promiseArray);
179
+ oldApiResponse.forEach((response) => {
180
+ var _a, _b;
181
+ if (response.status === 'fulfilled' && ((_b = (_a = response.value) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b[0].dns)) {
182
+ var index = findIndex(items, { external_cluster_id: response.value.items[0].external_id });
183
+ items[index] = Object.assign(Object.assign({}, items[index]), { dns: response.value.items[0].dns });
184
+ }
185
+ });
186
+ }
187
+ catch (e) {
188
+ // silently fails
189
+ }
202
190
  setIsFetchingClusters(false);
203
191
  return {
204
192
  items,
205
- totalResult: clustersResponse.length,
193
+ totalResult: items.length,
206
194
  page,
195
+ total: clustersResponse.total,
207
196
  };
208
197
  }
209
198
  catch (e) {
210
199
  // silently fails
211
200
  setIsFetchingClusters(false);
212
- return { items: [], totalResult: 0, page: 0 };
201
+ return { items: [], totalResult: 0, page: 0, total: 0 };
213
202
  }
214
203
  });
215
204
  // need to get clusters on load
@@ -220,8 +209,9 @@ function OpenshiftDropdownV4(props) {
220
209
  const fetchClusters = () => __awaiter(this, void 0, void 0, function* () {
221
210
  const fetchedClusters = yield fetchAccountClusters(inputVal);
222
211
  if (!isUnmounted) {
223
- setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
224
212
  setClustersRawResponse(fetchedClusters.items);
213
+ setTotalResultsNo(fetchedClusters.total);
214
+ setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
225
215
  }
226
216
  });
227
217
  fetchClusters();
@@ -242,8 +232,9 @@ function OpenshiftDropdownV4(props) {
242
232
  setInputVal(input);
243
233
  props.onClusterIdStateUpdate(createState(input, input));
244
234
  const fetchedClusters = yield fetchAccountClusters(input);
245
- setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
246
235
  setClustersRawResponse(fetchedClusters.items);
236
+ setTotalResultsNo(fetchedClusters.total);
237
+ setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
247
238
  });
248
239
  const getSelectedItem = () => {
249
240
  if (!isEmpty(inputVal)) {
@@ -261,8 +252,8 @@ function OpenshiftDropdownV4(props) {
261
252
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"),
262
253
  React.createElement(CaseOpenShiftPopover, null)),
263
254
  React.createElement("span", { id: titleId, hidden: true }, "Select a state"),
264
- React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, isDisabled: props.isDisabled, typeAheadAriaLabel: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), onToggle: onToggle, onSelect: onSelect, onClear: onDropdownClear, selections: getSelectedItem(), isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), hasInlineFilter: false, onTypeaheadInputChanged: onTypeaheadInputChanged, onFilter: () => undefined, validated: validated, "aria-invalid": props.isClusterIdInvalid, "aria-describedby": "clusterID-validate-helper", required: true }, (isFetchingClusters && { loadingVariant: 'spinner' }), (!isFetchingClusters &&
265
- PER_PAGE <= clustersRawResponse.length && {
255
+ React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, isDisabled: props.isDisabled, typeAheadAriaLabel: t('Search by Cluster ID and alias or manually enter your Cluster ID'), onToggle: onToggle, onSelect: onSelect, onClear: onDropdownClear, selections: getSelectedItem(), isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Search by Cluster ID and alias or manually enter your Cluster ID'), hasInlineFilter: false, onTypeaheadInputChanged: onTypeaheadInputChanged, onFilter: () => undefined, validated: validated, "aria-invalid": props.isClusterIdInvalid, "aria-describedby": "clusterID-validate-helper", required: true }, (isFetchingClusters && { loadingVariant: 'spinner' }), (!isFetchingClusters &&
256
+ clustersRawResponse.length < totalResultsNo && {
266
257
  loadingVariant: {
267
258
  text: 'Display additional results',
268
259
  onClick: onViewMoreClick,
@@ -13,8 +13,7 @@ export function Hostname(props) {
13
13
  setCaseDetails(caseDispatch, caseDetails);
14
14
  };
15
15
  const onHostnameChange = (e) => {
16
- var _a;
17
- onCaseDetailsChange({ hostname: (_a = e.target.value) === null || _a === void 0 ? void 0 : _a.trim() });
16
+ onCaseDetailsChange({ hostname: e.target.value });
18
17
  };
19
18
  if (!canUseHostName) {
20
19
  return React.createElement(React.Fragment, null);
@@ -31,6 +31,10 @@ button,
31
31
  font-size: 14px;
32
32
  }
33
33
 
34
+ .archived-clusters-checkbox {
35
+ grid-gap: 0px;
36
+ }
37
+
34
38
  .case-details-tabs .case-details-tabs-content {
35
39
  background-color: #f0f0f0;
36
40
  margin-left: -1.8rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.102",
3
+ "version": "0.2.106-beta.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -26,7 +26,7 @@
26
26
  "lib/**/*"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@cee-eng/hydrajs": "4.9.1",
29
+ "@cee-eng/hydrajs": "4.10.0",
30
30
  "@cee-eng/ui-toolkit": "1.1.6",
31
31
  "@patternfly/patternfly": "4.185.1",
32
32
  "@patternfly/pfe-accordion": "1.12.3",
@@ -63,7 +63,7 @@
63
63
  "react-virtualized": "^9.21.2"
64
64
  },
65
65
  "dependencies": {
66
- "@cee-eng/hydrajs": "4.9.1",
66
+ "@cee-eng/hydrajs": "4.10.0",
67
67
  "@cee-eng/ui-toolkit": "1.1.6",
68
68
  "@patternfly/patternfly": "4.185.1",
69
69
  "@patternfly/pfe-accordion": "1.12.3",
@@ -73,12 +73,12 @@
73
73
  "@patternfly/react-core": "4.202.16",
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
- "@rh-support/api": "0.3.15",
77
- "@rh-support/components": "1.1.59",
78
- "@rh-support/react-context": "0.2.61",
76
+ "@rh-support/api": "0.3.16-beta.2",
77
+ "@rh-support/components": "1.1.60-beta.2",
78
+ "@rh-support/react-context": "0.2.62-beta.2",
79
79
  "@rh-support/types": "0.2.0",
80
- "@rh-support/user-permissions": "0.2.47",
81
- "@rh-support/utils": "0.2.36",
80
+ "@rh-support/user-permissions": "0.2.48-beta.2",
81
+ "@rh-support/utils": "0.2.37-beta.2",
82
82
  "@types/react-redux": "^7.1.12",
83
83
  "@types/redux": "^3.6.0",
84
84
  "@webcomponents/webcomponentsjs": "^2.2.10",
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "82a2161f34c47eeb658bec78e6af2eff79a61b2f"
146
+ "gitHead": "3698a59c19b70dd7c9722faa83c7d8aaf55e483c"
147
147
  }