@rh-support/troubleshoot 0.2.97 → 0.2.100

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBAyPrC"}
1
+ {"version":3,"file":"CaseOpenshiftClusterId.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,gBA2PrC"}
@@ -72,7 +72,7 @@ export function CaseOpenshiftClusterId() {
72
72
  const hasCluster = yield isClusterIdEnabledForProduct(product, (_b = allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult);
73
73
  setShowClusterId(hasCluster);
74
74
  // when product changes from a product with cluster to a product without cluster, reset the clusterId
75
- const isResetClusterID = (!hasCluster || isOpenShiftV3) && openshiftClusterID;
75
+ const isResetClusterID = !hasCluster || isOpenShiftV3;
76
76
  if (isResetClusterID) {
77
77
  const caseDetails = {
78
78
  openshiftClusterID: '',
@@ -81,6 +81,8 @@ export function CaseOpenshiftClusterId() {
81
81
  };
82
82
  yield clusterIdUpdate(caseDetails, false);
83
83
  setCaseDetails(caseDispatch, caseDetails);
84
+ setLocalOpenshiftClusterIDState('');
85
+ clusterStateReset();
84
86
  }
85
87
  });
86
88
  if ((((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult) || []).length) {
@@ -91,7 +93,7 @@ export function CaseOpenshiftClusterId() {
91
93
  // user may change product and version we need to reset internal state
92
94
  // context api state will be reset on parent component each time user changes product and version
93
95
  useEffect(() => {
94
- clusterStateReset(); //=>
96
+ clusterStateReset();
95
97
  }, [product, version]);
96
98
  /**
97
99
  * Hook to make sure that if cluster id comes from session or someother source
@@ -72,8 +72,8 @@ function SupportLevel(props) {
72
72
  React.createElement(Trans, null, "Support level"),
73
73
  ' ',
74
74
  !isEmpty(ownersEntitlements.data) && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
75
- React.createElement(Popover, { "aria-label": "Support Level info", position: PopoverPosition.top, bodyContent: React.createElement(Trans, { i18nKey: "i18ProductionSupportServiceLevelAgreement" },
76
- React.createElement("p", null,
75
+ React.createElement(Popover, { "aria-label": "Support Level info", position: PopoverPosition.top, bodyContent: React.createElement("p", null,
76
+ React.createElement(Trans, { i18nKey: "i18ProductionSupportServiceLevelAgreement" },
77
77
  "Learn more about our",
78
78
  ' ',
79
79
  React.createElement("a", { href: "/support/offerings/production/sla", target: "_blank" }, "production support service level agreement"))), closeBtnAriaLabel: "Close" },
@@ -1 +1 @@
1
- {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA0BD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAsI/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA0BD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAqI/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -74,7 +74,6 @@ const NoClusterIDReasonSelector = (props) => {
74
74
  setIsOpen(false);
75
75
  setInputVal(input);
76
76
  props.onReasonInputBoxChanged(input);
77
- props.onReasonChange('Other');
78
77
  };
79
78
  useEffect(() => {
80
79
  if (haventLoadedMetadata(caseNoClusterIdReasons)) {
@@ -116,7 +116,7 @@ function OpenshiftDropdownV4(props) {
116
116
  clusterOptions.push(React.createElement(Divider, { component: "div", key: index + domain }));
117
117
  });
118
118
  return [
119
- React.createElement(SelectOption, { key: 'show-hide-archived-clusters', component: 'checkbox', inputId: "check-box" },
119
+ React.createElement(SelectOption, { key: 'show-hide-archived-clusters', inputId: "check-box" },
120
120
  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 })),
121
121
  React.createElement(Divider, { component: "div", key: 'cluster-id-options-divider-e' }),
122
122
  React.createElement(SelectOption, { key: 'dont-have-id', value: createState('dont-have-id', t("I don't have my Cluster ID")) }),
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eA2XtD"}
1
+ {"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eAqXtD"}
@@ -293,10 +293,7 @@ export function GlobalTroubleshootEffects(props) {
293
293
  const previousActiveSessionId = usePrevious(activeSessionId);
294
294
  useEffect(() => {
295
295
  var _a;
296
- if (isEmpty(product) ||
297
- isEmpty(version) ||
298
- isEmpty(previousVersion) ||
299
- activeSessionId !== previousActiveSessionId)
296
+ if (isEmpty(product) || isEmpty(version) || activeSessionId !== previousActiveSessionId)
300
297
  return;
301
298
  // we need to reset openshift cluster states only when major version is different
302
299
  const oldMajorVersion = previousVersion && getVersion(previousVersion).major;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.97",
3
+ "version": "0.2.100",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -75,7 +75,7 @@
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
76
  "@rh-support/api": "0.3.15",
77
77
  "@rh-support/components": "1.1.59",
78
- "@rh-support/react-context": "0.2.59",
78
+ "@rh-support/react-context": "0.2.60",
79
79
  "@rh-support/types": "0.2.0",
80
80
  "@rh-support/user-permissions": "0.2.47",
81
81
  "@rh-support/utils": "0.2.36",
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "ad255c7391384f7369695275fcd43481f4298974"
146
+ "gitHead": "c5cd879a2db2a9d1761c8a62eaac17d94a9f1204"
147
147
  }