@rh-support/troubleshoot 1.0.0 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAwCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA+VnD"}
1
+ {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAwCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eAsWnD"}
@@ -147,11 +147,11 @@ export function RequestEscalationModal(props) {
147
147
  fetchCategories();
148
148
  // eslint-disable-next-line react-hooks/exhaustive-deps
149
149
  }, [props.show]);
150
- return (React.createElement(Modal, { isOpen: props.show, onClose: onCancel, actions: modalActions, header: header },
150
+ return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, actions: modalActions, header: header },
151
151
  React.createElement("p", { className: "pf-u-mb-md" },
152
152
  React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
153
153
  React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-u-mb-md" }),
154
- React.createElement(Form, { "aria-label": t('form') },
154
+ React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
155
155
  React.createElement(Grid, { hasGutter: true, md: 12 },
156
156
  React.createElement(GridItem, { span: 6 },
157
157
  React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
@@ -1 +1 @@
1
- {"version":3,"file":"ReopenCaseModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ConfirmationModals/ReopenCaseModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,KAAA,EAAE,SAAS,KAAA,EAAE,UAAU,CAAC,KAAA,EAAE,iBAAiB,CAAC,KAAA,EAAE,cAAc,CAAC,KAAA,EAAE,mBAAmB,CAAC,KAAA,KAAK,IAAI,CAAC;IACpH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA6L5C"}
1
+ {"version":3,"file":"ReopenCaseModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ConfirmationModals/ReopenCaseModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,KAAA,EAAE,SAAS,KAAA,EAAE,UAAU,CAAC,KAAA,EAAE,iBAAiB,CAAC,KAAA,EAAE,cAAc,CAAC,KAAA,EAAE,mBAAmB,CAAC,KAAA,KAAK,IAAI,CAAC;IACpH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA8L5C"}
@@ -69,13 +69,13 @@ export function ReopenCaseModal(props) {
69
69
  onDropdownToggle(false);
70
70
  };
71
71
  const isDescriptionEmpty = showTextArea ? isEmpty(reopenDescription === null || reopenDescription === void 0 ? void 0 : reopenDescription.trim()) : false;
72
- return (React.createElement(Modal, { id: "case-reopen-modal", title: t(`Reopening case ${props.caseNumber}`), "aria-describedby": "case-reopen-modal", isOpen: true, onClose: props.onClose, showClose: true, actions: [
72
+ return (React.createElement(Modal, { className: "case-reopen-modal", id: "case-reopen-modal", title: t(`Reopening case ${props.caseNumber}`), "aria-describedby": "case-reopen-modal", isOpen: true, onClose: props.onClose, showClose: true, actions: [
73
73
  React.createElement(Button, { key: "submit-description", variant: ButtonVariant.primary, onClick: onSubmit, isLoading: props.isUpdating, isDisabled: isDescriptionEmpty || showValidationError || props.isUpdating, "data-tracking-id": "reopen-case-description-modal-submit" },
74
74
  React.createElement(Trans, null, "Reopen case")),
75
75
  React.createElement(Button, { key: "close-modal", variant: ButtonVariant.secondary, onClick: props.onClose, isDisabled: props.isUpdating, "data-tracking-id": "reopen-case-description-modal-cancel" },
76
76
  React.createElement(Trans, null, "Cancel")),
77
77
  ], variant: ModalVariant.medium },
78
- React.createElement(Form, null,
78
+ React.createElement(Form, { className: "case-reopen-modal-form" },
79
79
  (!props.isInternal || !props.reopenStatus) && (React.createElement(FormGroup, { label: t(props.isInternal ? 'Status' : 'Reason'), isRequired: true, fieldId: "case-resolution", helperTextInvalid: "Required field", validated: showValidationError && (props.isInternal ? !selectedStatus : !selectedReason)
80
80
  ? 'error'
81
81
  : 'default', helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null) }, props.isInternal ? (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "reopen-case-status", selections: selectedStatus, onSelect: onStatusChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedStatus ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, props.allStatuses
@@ -25,7 +25,7 @@ import { getIsClusterIdInvalid, isClusterIdEnabledForProduct, } from '../../util
25
25
  import { NoClusterIDReasonSelector } from './NoClusterIDReasonSelector';
26
26
  import { OpenshiftDropdownV4 } from './OpenshiftDropdownV4';
27
27
  import { OpenShiftV3Inputbox } from './OpenShiftV3Inputbox';
28
- export const v3Tov4TransitionLink = () => (React.createElement("a", { className: "show-target", href: "https://access.redhat.com/documentation/en-us/openshift_container_platform/4.8/html-single/migrating_from_openshift_container_platform_3_to_4/index", target: "_blank", rel: "noopener noreferrer" },
28
+ export const v3Tov4TransitionLink = () => (React.createElement("a", { className: "show-target", href: "https://access.redhat.com/documentation/en-us/openshift_container_platform/4.11/html/migrating_from_version_3_to_4/index", target: "_blank", rel: "noopener noreferrer" },
29
29
  React.createElement(Trans, null, "How to transition from v3 to v4?")));
30
30
  export const discoverV4ClusterIdLink = () => (React.createElement("a", { className: "show-target", href: "/solutions/4505861", target: "_blank", rel: "noopener noreferrer" },
31
31
  React.createElement(Trans, null, "How do I determine my OpenShift 4.x 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;AAQrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eA6YtD"}
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;AAQrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,eAyYtD"}
@@ -301,12 +301,10 @@ export function GlobalTroubleshootEffects(props) {
301
301
  const previousActiveSessionId = usePrevious(activeSessionId);
302
302
  useEffect(() => {
303
303
  var _a;
304
- if (isEmpty(product) ||
305
- isEmpty(version) ||
306
- activeSessionId !== previousActiveSessionId ||
307
- isEmpty(previousVersion))
304
+ if (isEmpty(product) || isEmpty(version) || activeSessionId !== previousActiveSessionId)
308
305
  return;
309
306
  // we need to reset openshift cluster states only when major version is different
307
+ // this logic can be removed when version 3 is depricated
310
308
  const oldMajorVersion = previousVersion && getVersion(previousVersion).major;
311
309
  const newMajorVersion = getVersion(version).major;
312
310
  const hasCluster = isClusterIdEnabledForProduct(product, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult);
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDA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Y,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,uBAAuB,iBAAkB,MAAM,YAAY,MAAM,KAAG,MAQhF,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAc,MAAM,KAAG,MAKzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAiC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB,cAAe,UAAU,wBAAwB,QAAQ,eAAe,CAAC,KAAG,OA2BxG,CAAC;AAEF,eAAO,MAAM,0BAA0B,cACxB,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAiBF,CAAC;AAIF,eAAO,MAAM,6BAA6B,cAC3B,UAAU,wBACC,QAAQ,eAAe,CAAC,KAC/C,OAuBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CAiEtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CA6BtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAyCF,CAAC"}
@@ -116,8 +116,10 @@ export const isClusterIDValid = (caseState, allProducts) => {
116
116
  !isEmpty(case_details.noClusterIdReason) &&
117
117
  case_details.noClusterIdReason === 'Other' &&
118
118
  !isEmpty(case_details.noClusterIdReasonExplanation) &&
119
- isEmpty(caseState.v3ClusterName);
120
- const hasValidV3ClusterName = () => isEmpty(case_details.openshiftClusterID) && !isEmpty(caseState.v3ClusterName);
119
+ case_details.noClusterIdReasonExplanation !== 'v3-cluster';
120
+ const hasValidV3ClusterName = () => isEmpty(case_details.openshiftClusterID) &&
121
+ !isEmpty(caseState.v3ClusterName) &&
122
+ case_details.noClusterIdReasonExplanation === 'v3-cluster';
121
123
  return productHasClusterID
122
124
  ? hasValidClusterId() || hasValidReason() || hasValidReasonExplanation() || hasValidV3ClusterName()
123
125
  : true;
@@ -322,3 +322,63 @@ div pfe-accordion {
322
322
  --pfe-accordion--FontSize--header: 16px;
323
323
  --pfe-accordion--FontWeight--header: 600;
324
324
  }
325
+
326
+ // To override font weight in CEP Form - PCM-11644
327
+ div#cep-details-modal.pf-c-modal-box__body {
328
+ form.pf-c-form.push-top-narrow {
329
+ div.pf-c-form__group {
330
+ div.pf-c-form__group-label {
331
+ label.pf-c-form__label {
332
+ span.pf-c-form__label-text {
333
+ font-weight: 600 !important;
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+
341
+ // To override font weight in Request Escalation Form - PCM-11644
342
+ div#request-mgmt-escalation-modal.request-escalation-modal {
343
+ div.pf-c-modal-box__body {
344
+ form.pf-c-form.request-escalation-form {
345
+ div.pf-l-grid.pf-m-all-12-col-on-md.pf-m-gutter {
346
+ div.pf-l-grid__item.pf-m-6-col {
347
+ div.pf-c-form__group {
348
+ div.pf-c-form__group-label {
349
+ label.pf-c-form__label {
350
+ span.pf-c-form__label-text {
351
+ font-weight: 600 !important;
352
+ }
353
+ }
354
+ }
355
+ }
356
+ }
357
+ div.pf-c-form__group {
358
+ div.pf-c-form__group-label {
359
+ label.pf-c-form__label {
360
+ span.pf-c-form__label-text {
361
+ font-weight: 600 !important;
362
+ }
363
+ }
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
370
+
371
+ // To override font weight on reopen case modal - PCM-11644
372
+ div#case-reopen-modal.pf-c-modal-box__body {
373
+ form.pf-c-form.case-reopen-modal-form {
374
+ div.pf-c-form__group {
375
+ div.pf-c-form__group-label {
376
+ label.pf-c-form__label {
377
+ span.pf-c-form__label-text {
378
+ font-weight: 600 !important;
379
+ }
380
+ }
381
+ }
382
+ }
383
+ }
384
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -74,7 +74,7 @@
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
76
  "@rh-support/components": "1.2.0",
77
- "@rh-support/react-context": "1.0.0",
77
+ "@rh-support/react-context": "1.0.1",
78
78
  "@rh-support/types": "0.2.0",
79
79
  "@rh-support/user-permissions": "1.0.0",
80
80
  "@rh-support/utils": "1.0.0",
@@ -142,5 +142,5 @@
142
142
  "not ie <= 11",
143
143
  "not op_mini all"
144
144
  ],
145
- "gitHead": "8c4eecd9b17607a5b010dc65d079327167650bee"
145
+ "gitHead": "455d21baf7d383cdd9a58ba9ff6483dd4a9b60a9"
146
146
  }