@rh-support/troubleshoot 2.1.19 → 2.1.20-beta.0

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.
Files changed (41) hide show
  1. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
  2. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +2 -1
  3. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/CaseOverview/index.js +8 -3
  5. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +3 -3
  7. package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.js +2 -2
  8. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts +0 -2
  9. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
  10. package/lib/esm/components/CaseEditView/ShareCase/TnC.js +2 -20
  11. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
  12. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -0
  13. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -1
  15. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts +9 -0
  16. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +1 -0
  17. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +69 -0
  18. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +1 -1
  19. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  20. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +2 -1
  21. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  22. package/lib/esm/components/CaseInformation/Severity.js +2 -1
  23. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  24. package/lib/esm/components/CaseInformation/SupportLevel.js +2 -1
  25. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  26. package/lib/esm/components/CaseManagement/Cep.js +3 -3
  27. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  28. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +6 -8
  29. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
  30. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +2 -2
  31. package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
  32. package/lib/esm/components/shared/fileUpload/FileLister.js +2 -1
  33. package/lib/esm/components/wizardLayout/WizardMain.js +1 -1
  34. package/lib/esm/scss/_main.scss +9 -221
  35. package/lib/esm/scss/_pf4-overrides.scss +14 -12
  36. package/lib/esm/utils/remoteRiderUtils.d.ts.map +1 -1
  37. package/lib/esm/utils/remoteRiderUtils.js +2 -2
  38. package/package.json +8 -8
  39. package/lib/esm/constants/tncConstants.d.ts +0 -13
  40. package/lib/esm/constants/tncConstants.d.ts.map +0 -1
  41. package/lib/esm/constants/tncConstants.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"CaseOwnerInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseOwnerInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,MAAM,eA+DlD"}
1
+ {"version":3,"file":"CaseOwnerInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseOwnerInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAI5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,MAAM,eA+DlD"}
@@ -1,4 +1,5 @@
1
1
  import { Tooltip, TooltipPosition } from '@patternfly/react-core';
2
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
2
3
  import { LoadingIndicator } from '@rh-support/components';
3
4
  import React from 'react';
4
5
  import { Trans } from 'react-i18next';
@@ -43,5 +44,5 @@ export default function CaseOwnerInfo(props) {
43
44
  React.createElement(Trans, null, "Office location")),
44
45
  ": ",
45
46
  props.caseDetailsHydra.data.caseOwner.officeLocation)) },
46
- React.createElement("i", { "aria-label": "Support Level info", className: "fa fa-question-circle" })))))));
47
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
47
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AA6BnF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eA0ejD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAA8D,MAAM,OAAO,CAAC;AA8BnF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eA8ejD"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Alert, AlertVariant, Button, ButtonVariant, ExpandableSection, Label } from '@patternfly/react-core';
10
+ import { Alert, AlertVariant, Button, ButtonVariant, ExpandableSection, Label, ModalVariant, } from '@patternfly/react-core';
11
11
  import { ToastNotification, useConfirmation } from '@rh-support/components';
12
12
  import { CloseCaseModal, fetchCaseSeverities, fetchCaseTypes, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
13
13
  import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
@@ -27,6 +27,7 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
27
27
  import { PDFContext } from '../PDFContainer';
28
28
  import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
29
29
  import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
30
+ import { CasePhoneNumberSev1ConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert';
30
31
  import Summary from '../Tabs/CaseDetails/Summary';
31
32
  import CaseOwnerInfo from './CaseOwnerInfo';
32
33
  import CaseStatus from './CaseStatus';
@@ -172,8 +173,11 @@ export default function CaseOverview(props) {
172
173
  else {
173
174
  yield confirm({
174
175
  catchOnCancel: true,
175
- title: t(`Status has been changed`),
176
- description: t('Are you sure you want to change this case status to {{newStatus}}?', { newStatus }),
176
+ title: t(`Update the status of the case?`),
177
+ description: t('Are you sure you want to change the case status to {{newStatus}}?', { newStatus }),
178
+ confirmText: t('Yes, confirm'),
179
+ cancelText: t('No, cancel'),
180
+ modalVariant: ModalVariant.small,
177
181
  });
178
182
  updateStatusState(newStatus);
179
183
  }
@@ -229,6 +233,7 @@ export default function CaseOverview(props) {
229
233
  React.createElement("p", { className: "pf-u-mb-sm" },
230
234
  React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
231
235
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
236
+ React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
232
237
  React.createElement("header", null,
233
238
  React.createElement("h2", { className: "case-ID" },
234
239
  React.createElement(Trans, null, "Case"),
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EA8FjC,CAAC"}
1
+ {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EA8FjC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { Button, Popover, Tooltip } from '@patternfly/react-core';
2
2
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
3
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
4
+ import { TncConstants } from '@rh-support/utils';
4
5
  import React, { forwardRef, useContext, useRef, useState } from 'react';
5
6
  import { useTranslation } from 'react-i18next';
6
- import { TnC } from '../../../constants/tncConstants';
7
7
  import { RemoteSessionAgreementModal } from './RemoteSessionAgreementModal';
8
8
  export const RemoteSessionAgreement = forwardRef((props, ref) => {
9
9
  const tooltipRef = useRef();
@@ -22,7 +22,7 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
22
22
  const RemoteSessionAgreementSectionBody = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
23
23
  React.createElement("h3", { className: "card-heading pf-u-display-flex pf-u-justify-content-space-between" },
24
24
  t('Remote session agreement'),
25
- React.createElement(Popover, { "aria-label": t('Remote Session Helper Info'), bodyContent: t('Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access'), footerContent: React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Read more about remote sessions') }, t('Read more about remote sessions')) },
25
+ React.createElement(Popover, { "aria-label": t('Remote Session Helper Info'), bodyContent: t('Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access.'), footerContent: React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Read more about remote sessions') }, t('Read more about remote sessions')) },
26
26
  React.createElement(InfoCircleIcon, null))),
27
27
  React.createElement("div", { className: "card-body" },
28
28
  React.createElement("p", null,
@@ -35,5 +35,5 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
35
35
  React.createElement(Button, { "aria-label": acceptedRemoteSessionTerms ? t('Agreement accepted') : t('Accept agreement'), variant: acceptedRemoteSessionTerms ? 'primary' : 'secondary', onClick: toggleRemoteSessionAgreementModal, "data-tracking-id": "accept-remote-session-agreement-trigger", isAriaDisabled: acceptedRemoteSessionTerms, ref: tooltipRef }, acceptedRemoteSessionTerms ? t('Agreement accepted') : t('Accept agreement')))));
36
36
  return (React.createElement(React.Fragment, null,
37
37
  RemoteSessionAgreementSectionBody,
38
- React.createElement(RemoteSessionAgreementModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openRequestRemoteSessionModal, onClose: toggleRemoteSessionAgreementModal, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })));
38
+ React.createElement(RemoteSessionAgreementModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openRequestRemoteSessionModal, onClose: toggleRemoteSessionAgreementModal, siteCode: TncConstants.REMOTE_RIDER_SITE_CODE, eventCode: TncConstants.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })));
39
39
  });
@@ -7,10 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { getUrlParsedParams } from '@rh-support/utils';
10
+ import { getTnCHost, getUrlParsedParams } from '@rh-support/utils';
11
11
  import React, { useEffect, useState } from 'react';
12
12
  import { useLocation } from 'react-router';
13
- import { getTnCHost, handleTnCQueryParams } from './TnC';
13
+ import { handleTnCQueryParams } from './TnC';
14
14
  export function PartnerCaseHelper(props) {
15
15
  var _a, _b;
16
16
  const [isUpdating, setIsUpdating] = useState(false);
@@ -1,6 +1,4 @@
1
1
  import { RouteComponentProps } from 'react-router';
2
- export declare function getTnCHost(): string;
3
- export declare function baseTnCUrl(): string;
4
2
  export declare function getTnCUrl(accountNumber: any): string;
5
3
  export declare const handleTnCQueryParams: (caseNumber: string, routeProps: RouteComponentProps) => Promise<void>;
6
4
  //# sourceMappingURL=TnC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TnC.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ShareCase/TnC.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,wBAAgB,UAAU,WAYzB;AAED,wBAAgB,UAAU,WAGzB;AAED,wBAAgB,SAAS,CAAC,aAAa,KAAA,UAQtC;AAMD,eAAO,MAAM,oBAAoB,eAAsB,MAAM,cAAc,mBAAmB,kBAc7F,CAAC"}
1
+ {"version":3,"file":"TnC.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ShareCase/TnC.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,wBAAgB,SAAS,CAAC,aAAa,KAAA,UAQtC;AAMD,eAAO,MAAM,oBAAoB,eAAsB,MAAM,cAAc,mBAAmB,kBAc7F,CAAC"}
@@ -10,30 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  // code replicated from legacy PCM<TnC.js>
11
11
  import hydrajs from '@cee-eng/hydrajs';
12
12
  import { ToastNotification } from '@rh-support/components';
13
- import { getText } from '@rh-support/utils';
13
+ import { baseTnCUrl, getText, TncConstants } from '@rh-support/utils';
14
14
  import get from 'lodash/get';
15
- import { TnC } from '../../../constants/tncConstants';
16
- export function getTnCHost() {
17
- const env = hydrajs.Env.getEnvName();
18
- switch (env) {
19
- case 'QA':
20
- return TnC.HOSTS.QA;
21
- case 'DEV':
22
- return TnC.HOSTS.DEV;
23
- case 'Stage':
24
- return TnC.HOSTS.Stage;
25
- default:
26
- return TnC.HOSTS.PROD;
27
- }
28
- }
29
- export function baseTnCUrl() {
30
- const wejava_host = getTnCHost();
31
- return `https://${wejava_host}/wapps/tnc/ackrequired`;
32
- }
33
15
  export function getTnCUrl(accountNumber) {
34
16
  const redirectUrl = encodeURIComponent(window.location.href + (accountNumber ? `?partnerAccountNumber=${accountNumber}` : ''));
35
17
  const cancelRedirectUrl = encodeURIComponent(window.location.href + `?rejectedTnC=true`);
36
- return `${baseTnCUrl()}?site=${TnC.PARTNER_SHARE_SITE_CODE}&event=${TnC.PARTNER_SHARE_EVENT_CODE}&redirect=${redirectUrl}&cancelRedirect=${cancelRedirectUrl}`;
18
+ return `${baseTnCUrl()}?site=${TncConstants.PARTNER_SHARE_SITE_CODE}&event=${TncConstants.PARTNER_SHARE_EVENT_CODE}&redirect=${redirectUrl}&cancelRedirect=${cancelRedirectUrl}`;
37
19
  }
38
20
  const removeQueryParams = (routeProps) => {
39
21
  routeProps.history.replace({ search: '' });
@@ -1 +1 @@
1
- {"version":3,"file":"CaseDetailsManagement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAiBnD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,MAAM,eA+D1D"}
1
+ {"version":3,"file":"CaseDetailsManagement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAkBnD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,MAAM,eAgE1D"}
@@ -14,6 +14,7 @@ import { ShareWithPartner } from '../../ShareCase/PartnerShare';
14
14
  import { CaseContactPhoneNumber } from './CaseContactPhoneNumber';
15
15
  import CaseInternalStatus from './CaseInternalStatus';
16
16
  import { CaseContactPhoneNumberAlert } from './CasePhoneNumberConfirmAlert';
17
+ import { CasePhoneNumberSev1ConfirmAlert } from './CasePhoneNumberSev1ConfirmAlert';
17
18
  import CaseReferenceNumber from './CaseReferenceNumber';
18
19
  import CaseSbrGroups from './CaseSbrGroups';
19
20
  export default function CaseDetailsManagement(props) {
@@ -38,6 +39,7 @@ export default function CaseDetailsManagement(props) {
38
39
  React.createElement(FlexItem, { flex: { default: 'flex_1' } },
39
40
  React.createElement(CaseContactPhoneNumber, null))),
40
41
  React.createElement(CaseContactPhoneNumberAlert, { isConfirm: true }),
42
+ React.createElement(CasePhoneNumberSev1ConfirmAlert, { isConfirm: true }),
41
43
  canSeeInternalStatus && React.createElement(CaseInternalStatus, null),
42
44
  canSeeSBRGroups && React.createElement(CaseSbrGroups, null),
43
45
  React.createElement(CaseGroup, null),
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAY5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eAqKlC;kBArKQ,YAAY;;;AAwKrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAa5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eAqKlC;kBArKQ,YAAY;;;AAwKrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { accounts } from '@cee-eng/hydrajs';
11
11
  import { Popover, PopoverPosition, Spinner, Switch } from '@patternfly/react-core';
12
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
12
13
  import { InlineEdit, LoadingIndicator, ToastNotification, useFetch, ValueChangedIcon } from '@rh-support/components';
13
14
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
14
15
  import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
@@ -108,7 +109,7 @@ function CaseHostname(props) {
108
109
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
109
110
  React.createElement(Trans, null, "Hostname"),
110
111
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
111
- React.createElement("i", { "aria-label": "Hostname Info", className: "m-l-1 fa fa-question-circle" })), allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined },
112
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Hostname Info" })), allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined },
112
113
  React.createElement("input", { type: "text", id: "case-details-hostname", className: `form-control${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: onHostnameChange, disabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
113
114
  lengthError && (React.createElement("div", { className: "pull-top" },
114
115
  React.createElement("p", { className: "form-instructions form-invalid" },
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isReview?: boolean;
4
+ isConfirm?: boolean;
5
+ tabRef?: React.MutableRefObject<HTMLDivElement>;
6
+ }
7
+ export declare function CasePhoneNumberSev1ConfirmAlert(props: IProps): JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=CasePhoneNumberSev1ConfirmAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CasePhoneNumberSev1ConfirmAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+B,MAAM,OAAO,CAAC;AASpD,UAAU,MAAM;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAMD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,eAmG5D"}
@@ -0,0 +1,69 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { Alert, AlertVariant, Button, ButtonVariant } from '@patternfly/react-core';
11
+ import { ToastNotification } from '@rh-support/components';
12
+ import { GlobalMetadataStateContext } from '@rh-support/react-context';
13
+ import { scrollIntoView } from '@rh-support/utils';
14
+ import isEqual from 'lodash/isEqual';
15
+ import React, { useContext, useState } from 'react';
16
+ import { Trans, useTranslation } from 'react-i18next';
17
+ import { Link } from 'react-router-dom';
18
+ import { useCaseDispatch, useCaseSelector } from '../../../../context/CaseContext';
19
+ import { useCaseUpdateErrorMessage } from '../../../../hooks/useCaseUpdateErrorMessage';
20
+ import { updateCaseDetails } from '../../../../reducers/CaseReducer';
21
+ /*
22
+ On case detail page when case owner changes the sevirity to sev1, this alert will be displayed
23
+ // what happens when partner changes ???
24
+ */
25
+ export function CasePhoneNumberSev1ConfirmAlert(props) {
26
+ const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
27
+ const [isCaseUpdating, setCasUpdating] = useState(false);
28
+ const { caseNumber, suppliedPhoneNumberVerified, contactSSOName, severity } = useCaseSelector((state) => ({
29
+ caseNumber: state.caseDetails.caseNumber,
30
+ suppliedPhoneNumberVerified: state.caseDetails.suppliedPhoneNumberVerified,
31
+ contactSSOName: state.caseDetails.contactSSOName,
32
+ severity: state.caseDetails.severity,
33
+ }), isEqual);
34
+ const { t } = useTranslation();
35
+ const caseDispatch = useCaseDispatch();
36
+ const caseUpdateError = useCaseUpdateErrorMessage();
37
+ const onCaseDetailsChange = (caseDetails) => __awaiter(this, void 0, void 0, function* () {
38
+ setCasUpdating(true);
39
+ try {
40
+ yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
41
+ setCasUpdating(false);
42
+ ToastNotification.addSuccessMessage(t(`Phone number has been successfully confirmed`));
43
+ }
44
+ catch (e) {
45
+ setCasUpdating(false);
46
+ caseUpdateError.showError(e, t(`Phone number failed to be confirmed`));
47
+ }
48
+ });
49
+ const goToPhoneField = () => {
50
+ scrollIntoView(props.tabRef);
51
+ };
52
+ const isPhoneNeedsConfirm = contactSSOName === loggedInUser.data.ssoUsername &&
53
+ severity === "1 (Urgent)" /* SEV_1 */ &&
54
+ suppliedPhoneNumberVerified === 'False';
55
+ if (!isPhoneNeedsConfirm)
56
+ return React.createElement(React.Fragment, null);
57
+ return (React.createElement(React.Fragment, null, props.isReview ? (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), actionLinks: [
58
+ React.createElement(Link, { replace: true, to: {
59
+ pathname: `/case/${caseNumber}/management`,
60
+ search: 'hello',
61
+ }, onClick: () => goToPhoneField(), "data-tracking-id": "case-contact-phone-number-review" },
62
+ React.createElement(Trans, null, "Review phone number")),
63
+ ] },
64
+ React.createElement(Trans, null, "This case severity is urgent. Please confirm the phone number we have on file is correct."))) : props.isConfirm ? (React.createElement(Alert, { isInline: true, className: "pf-u-mb-md", variant: AlertVariant.warning, title: t('Review phone number'), actionLinks: [
65
+ React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
66
+ React.createElement(Trans, null, "Confirm phone number")),
67
+ ] },
68
+ React.createElement(Trans, null, "This case severity is urgent. Please confirm the phone number we have on file is correct."))) : (React.createElement(React.Fragment, null))));
69
+ }
@@ -32,7 +32,7 @@ export function ContactPhoneNumber() {
32
32
  limit: PHONE_LIMIT,
33
33
  });
34
34
  return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
35
- React.createElement("h3", { className: "subheading subheading-sm" },
35
+ React.createElement("label", { className: "subheading subheading-sm" },
36
36
  React.createElement(Trans, null, "Case owner's phone number"),
37
37
  ContactPhoneNumberPopOver()),
38
38
  React.createElement(TextInput, { id: "case-phone-number", placeholder: "+1 555-555-5555", value: caseDetails.phone, onChange: handlePhoneChange, validated: ((_a = caseDetails.phone) === null || _a === void 0 ? void 0 : _a.length) > PHONE_LIMIT
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumberPopOver.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberPopOver.tsx"],"names":[],"mappings":"AAIA,wBAAgB,yBAAyB,gBA2BxC"}
1
+ {"version":3,"file":"ContactPhoneNumberPopOver.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumberPopOver.tsx"],"names":[],"mappings":"AAKA,wBAAgB,yBAAyB,gBA2BxC"}
@@ -1,4 +1,5 @@
1
1
  import { Popover, PopoverPosition } from '@patternfly/react-core';
2
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
2
3
  import React from 'react';
3
4
  import { Trans } from 'react-i18next';
4
5
  export function ContactPhoneNumberPopOver() {
@@ -8,5 +9,5 @@ export function ContactPhoneNumberPopOver() {
8
9
  ' ',
9
10
  React.createElement("a", { href: "https://www.redhat.com/wapps/ugc/protected/personalInfo.html", "data-tracking-id": "case-contact-phone-number-account-details", target: "_blank", rel: "noopener noreferrer" }, "your account details"),
10
11
  ".")), closeBtnAriaLabel: "Close" },
11
- React.createElement("i", { "aria-label": "Support Severity Level info", className: "fa fa-question-circle" })));
12
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Contact Phone Number Info" })));
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAwBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAqR9B;kBArRQ,QAAQ;;;AAuRjB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAwBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAqR9B;kBArRQ,QAAQ;;;AAuRjB,eAAe,QAAQ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Popover, PopoverPosition, Tooltip, TooltipPosition } from '@patternfly/react-core';
2
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
2
3
  import WarningTriangleIcon from '@patternfly/react-icons/dist/js/icons/warning-triangle-icon';
3
4
  import { Dropdown, ValueChangedIcon } from '@rh-support/components';
4
5
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
@@ -159,7 +160,7 @@ function Severity(props) {
159
160
  ' ',
160
161
  React.createElement("a", { href: "/support/policy/severity", target: "_blank" },
161
162
  React.createElement(Trans, null, "Red Hat Support Severity Level Definitions"))), closeBtnAriaLabel: "Close" },
162
- React.createElement("i", { "aria-label": "Support Severity Level info", className: "fa fa-question-circle" }))),
163
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Severity Level Info" }))),
163
164
  "\u00A0",
164
165
  filteredSeverities.filter((s) => s.disabled).length !== 0 && (React.createElement(Tooltip, { position: TooltipPosition.top, content: React.createElement(Trans, null, "Only the enabled severity levels are supported for selected product and version.") },
165
166
  React.createElement(WarningTriangleIcon, { color: "#ec7a08", size: "sm", title: "Support Severity Level warning" }))),
@@ -1 +1 @@
1
- {"version":3,"file":"SupportLevel.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/SupportLevel.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAU5D,UAAU,MAAO,SAAQ,gBAAgB;CAAG;AAO5C,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA4HlC;kBA5HQ,YAAY;;;AA8HrB,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SupportLevel.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/SupportLevel.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAU5D,UAAU,MAAO,SAAQ,gBAAgB;CAAG;AAO5C,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA4HlC;kBA5HQ,YAAY;;;AA8HrB,eAAe,YAAY,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Popover, PopoverPosition, Select, SelectOption, SelectVariant, ValidatedOptions, } from '@patternfly/react-core';
2
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
2
3
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
4
  import { showFtsOnCaseViewEditPage, showFtsOnCreateCasePage } from '@rh-support/utils';
4
5
  import isEmpty from 'lodash/isEmpty';
@@ -81,7 +82,7 @@ function SupportLevel(props) {
81
82
  "Learn more about our",
82
83
  ' ',
83
84
  React.createElement("a", { href: "/support/offerings/production/sla", target: "_blank" }, "production support service level agreement"))), closeBtnAriaLabel: "Close" },
84
- React.createElement("i", { "aria-label": "Support Level info", className: "fa fa-question-circle" })),
85
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Level Info" })),
85
86
  React.createElement(Select, { variant: SelectVariant.single, "aria-label": t('Select Support Level'), onToggle: onToggle, onSelect: onEntitlementChange, selections: selectedSla, isOpen: isOpen, "aria-labelledby": 'get-support-supportLevel', isDisabled: ownersEntitlements.isError || isEmpty(ownersEntitlements.data), validated: isSupportLevelInValid ? ValidatedOptions.error : ValidatedOptions.default, "data-tracking-id": "get-support-supportLevel" }, getSlaList().map((sla, index) => (React.createElement(SelectOption, { key: index, value: sla })))),
86
87
  isEmpty(ownersEntitlements.data) && (React.createElement("p", { className: "form-instructions" }, ownersEntitlements.isError ? t('Error loading support levels') : t('No active subscriptions')))));
87
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAkShC"}
1
+ {"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAsCA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAkShC"}
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { Button, Form, FormGroup, Modal, ModalVariant, Popover, PopoverPosition, TextArea, TextInput, ValidatedOptions, } from '@patternfly/react-core';
11
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
11
12
  import { LoadingIndicator, ToastNotification, useConfirmation } from '@rh-support/components';
12
13
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
13
14
  import { AbilityContext, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
@@ -135,12 +136,11 @@ export function Cep(props) {
135
136
  return React.createElement(React.Fragment, null);
136
137
  }
137
138
  return (React.createElement("div", { className: "form-group push-top" },
138
- React.createElement("input", { type: "checkbox", id: "get-support-cep", name: "get-support-cep", checked: cep, onChange: onCepChange, "data-tracking-id": "get-support-cep" }),
139
+ React.createElement("input", { type: "checkbox", id: "get-support-cep", name: "get-support-cep", checked: isEqual(cep, undefined) ? false : cep, onChange: onCepChange, "data-tracking-id": "get-support-cep" }),
139
140
  React.createElement("label", { htmlFor: "get-support-cep" },
140
141
  React.createElement(Trans, null, "Consultant has been engaged")),
141
142
  React.createElement(Popover, { "aria-label": "CEP info", position: PopoverPosition.top, bodyContent: React.createElement(Trans, null, "Used by consultants to indicate that a consulting engagement is in progress and the issue requires increased attention from support resources."), closeBtnAriaLabel: "Close" },
142
- React.createElement("i", { "aria-label": "CEP info", className: "fa fa-question-circle" })),
143
- ' ',
143
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "CEP Info" })),
144
144
  React.createElement(LoadingIndicator, { show: isCaseUpdating && isPostingCep, isInline: true, size: "sm" }),
145
145
  React.createElement(Modal, { id: "cep-details-modal", title: t('Consultant engagement is in progress'), "aria-describedby": "cep-modal-description", isOpen: isCepModalOpen, showClose: true, variant: ModalVariant.large, onClose: onCancel, actions: [
146
146
  React.createElement(Button, { key: "confirm", variant: "primary", className: "btn btn-app btn-primary", onClick: onSubmit, isDisabled: saveButtonIsClicked && isFormInvalid, "data-tracking-id": "cep-details-save" },
@@ -1 +1 @@
1
- {"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC;IACvD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAOD,QAAA,MAAM,8BAA8B,wEA2ClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC;IACvD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAOD,QAAA,MAAM,8BAA8B,wEAuClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -12,17 +12,15 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
12
12
  return (React.createElement(React.Fragment, null,
13
13
  React.createElement("div", { className: "product-selector-wrapper" },
14
14
  React.createElement("label", { htmlFor: "product-selector-dropdown-downshift-search", ref: ref },
15
- React.createElement("h3", { className: "subheading subheading-sm" },
16
- React.createElement(Trans, null, "Product"),
17
- ' ',
18
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
15
+ React.createElement(Trans, null, "Product"),
16
+ ' ',
17
+ React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
19
18
  React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, selectedProduct: props.selectedProduct, onVersionChange: props.onVersionChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate })),
20
19
  React.createElement("div", { className: "version-selector-wrapper" },
21
20
  React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
22
- React.createElement("h3", { className: "subheading subheading-sm" },
23
- React.createElement(Trans, null, "Version"),
24
- ' ',
25
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
21
+ React.createElement(Trans, null, "Version"),
22
+ ' ',
23
+ React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
26
24
  React.createElement(NewProductVersionSelector, { selectedProduct: props.selectedProduct, onVersionChange: props.onVersionChange, versionState: props.version, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError }))));
27
25
  });
28
26
  ProductVersionDropdownSelector.defaultProps = defaultProps;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAOA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,eA2B/D"}
1
+ {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,eA2B/D"}
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
11
  import { AcceptTermsModal, useFetch } from '@rh-support/components';
12
12
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
13
+ import { TncConstants } from '@rh-support/utils';
13
14
  import React, { useContext } from 'react';
14
- import { TnC } from '../../constants/tncConstants';
15
15
  export default function RemoteRiderAcceptanceModal(props) {
16
16
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
17
17
  const { request, isFetching } = useFetch(publicApi.kase.acknowledgeRemoteSessionTerms, { propgateErrors: true });
@@ -24,5 +24,5 @@ export default function RemoteRiderAcceptanceModal(props) {
24
24
  props.onFailure && props.onFailure();
25
25
  }
26
26
  });
27
- return (React.createElement(AcceptTermsModal, { isSubmitting: isFetching, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername, isModalOpen: props.isModalOpen, onModalClose: props.onModalClose, dataTrackingId: props.isCaseDetailsPage ? 'rar-case-details' : 'rar-case-submit', onConfirm: onConfirm }));
27
+ return (React.createElement(AcceptTermsModal, { isSubmitting: isFetching, siteCode: TncConstants.REMOTE_RIDER_SITE_CODE, eventCode: TncConstants.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername, isModalOpen: props.isModalOpen, onModalClose: props.onModalClose, dataTrackingId: props.isCaseDetailsPage ? 'rar-case-details' : 'rar-case-submit', onConfirm: onConfirm }));
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA4BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAsR/C"}
1
+ {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA6BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAsR/C"}
@@ -1,5 +1,6 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
2
  import { Button, ButtonVariant, Label, Progress, ProgressMeasureLocation } from '@patternfly/react-core';
3
+ import HistoryIcon from '@patternfly/react-icons/dist/js/icons/history-icon';
3
4
  import { CircularProgressbar } from '@rh-support/components';
4
5
  import { humanizeSize } from '@rh-support/utils';
5
6
  import capitalize from 'lodash/capitalize';
@@ -113,7 +114,7 @@ export default function FileLister(props) {
113
114
  ((_a = localFile === null || localFile === void 0 ? void 0 : localFile.description) === null || _a === void 0 ? void 0 : _a.length) > 1 && (React.createElement("span", { className: "character-counter text-muted" }, 255 - localFile.description.length)),
114
115
  (isUploadFailed(localFile.uploadProgress.uploadStatus) ||
115
116
  isUploadAborted(localFile.uploadProgress.uploadStatus)) && (React.createElement("button", { type: "button", "aria-label": "Failed to upload, Retry", title: "Failed to upload, Retry", className: "btn btn-link btn-xs", "data-tracking-id": "file-lister-retry", onClick: onRetry(index) },
116
- React.createElement("i", { className: "nimbus-icon-backup" }))),
117
+ React.createElement(HistoryIcon, null))),
117
118
  !isVerifyingUpload(localFile.uploadProgress.uploadStatus) &&
118
119
  !isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(React.Fragment, null,
119
120
  canShowAbortBtn(localFile.uploadProgress.uploadStatus) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Cancel Upload'), title: t('Cancel Upload'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-abort", onClick: onAbortClick(localFile, index), hidden: !localFile.uploadability.ableToUpload, isDisabled: !(localFile.uploadProgress.percentUploaded > 0) },
@@ -48,7 +48,7 @@ function WizardMain(props) {
48
48
  // in useWizard file then add it to step squences in RouteConstNTypes
49
49
  const steps = getStepsSequece(showRestFlag);
50
50
  return (React.createElement(React.Fragment, null,
51
- steps.length !== 0 && (React.createElement(Route, { path: `${RouteUtils.seBasePath}/(${steps[0].id}|describe-issue)`, render: () => (React.createElement(Wizard, { navAriaLabel: ` navAriaLabel steps `, mainAriaLabel: ` mainAriaLabel content `, steps: steps, footer: CustomFooter, onNext: onNext, onBack: onBack, hideClose: true, backButtonText: t('Go back'), onCurrentStepChanged: onCurrentStepChanged })) })),
51
+ steps.length !== 0 && (React.createElement(Route, { path: `${RouteUtils.seBasePath}/(${steps[0].id}|describe-issue|open-case)`, render: () => (React.createElement(Wizard, { navAriaLabel: ` navAriaLabel steps `, mainAriaLabel: ` mainAriaLabel content `, steps: steps, footer: CustomFooter, onNext: onNext, onBack: onBack, hideClose: true, backButtonText: t('Go back'), onCurrentStepChanged: onCurrentStepChanged })) })),
52
52
  React.createElement(Route, { exact: true, path: `${RouteUtils.seBasePath}/${AppRouteSections.SUBMIT_CASE}`, render: () => renderSubmitCasePage() })));
53
53
  }
54
54
  export default WizardMain;
@@ -11,129 +11,6 @@ div.support-grid-case-details.support-case {
11
11
  margin-bottom: -2.5rem;
12
12
  padding: 0;
13
13
 
14
- /* Layout - progress section */
15
- .grid-progress {
16
- grid-area: progress;
17
- }
18
-
19
- .grid-progress .grid-progress-content {
20
- padding: 1.5rem 1rem 1.5rem 2rem;
21
-
22
- & > button {
23
- margin-top: 0.5rem;
24
- margin-bottom: 1rem;
25
- }
26
-
27
- & > .back-to-app {
28
- margin-left: -0.8rem;
29
- margin-bottom: 2rem;
30
- }
31
-
32
- .grid-progress-steps {
33
- counter-reset: wizard-step-count;
34
- display: -webkit-box;
35
- display: -ms-flexbox;
36
- display: flex;
37
- -webkit-box-orient: horizontal;
38
- -webkit-box-direction: normal;
39
- -ms-flex-direction: row;
40
- flex-direction: row;
41
- -webkit-box-align: center;
42
- -ms-flex-align: center;
43
- align-items: center;
44
- -webkit-box-pack: start;
45
- -ms-flex-pack: start;
46
- justify-content: flex-start;
47
- margin: 0;
48
- padding: 0 0.5rem;
49
- list-style: none;
50
-
51
- li {
52
- padding: 0 1rem;
53
-
54
- button {
55
- position: relative;
56
- text-align: left;
57
- font-weight: 400;
58
-
59
- &::before {
60
- position: absolute;
61
- display: inline-flex;
62
- align-items: center;
63
- justify-content: center;
64
- top: 0px;
65
- left: 0px;
66
- color: #fff;
67
- counter-increment: wizard-step-count;
68
- content: counter(wizard-step-count);
69
- font-size: 12px;
70
- font-weight: 600;
71
- line-height: 1;
72
- width: 1.5rem;
73
- height: 1.5rem;
74
- border-radius: 50%;
75
- transform: matrix(1, 0, 0, 1, -18, 4);
76
- }
77
-
78
- span {
79
- display: none;
80
- }
81
- }
82
-
83
- &.on button {
84
- background-color: #06c;
85
- font-weight: 600;
86
-
87
- &::before {
88
- background-color: #06c;
89
- border-color: #06c;
90
- }
91
- }
92
-
93
- &.next button,
94
- &.future button {
95
- color: #151515;
96
-
97
- &::before {
98
- background-color: #ededed;
99
- color: #151515;
100
- }
101
-
102
- &[disabled] {
103
- background-color: transparent;
104
- border-color: #8b8d8f;
105
- color: #8b8d8f;
106
-
107
- &::before {
108
- color: #8d8e8f;
109
- }
110
- }
111
-
112
- &:hover {
113
- color: #06c;
114
- }
115
- }
116
-
117
- &.completed button {
118
- color: #151515;
119
-
120
- &::before {
121
- background-color: #ededed;
122
- color: #151515;
123
- }
124
-
125
- &:hover {
126
- color: #06c;
127
- }
128
- }
129
-
130
- &:last-child {
131
- margin-bottom: 0;
132
- }
133
- }
134
- }
135
- }
136
-
137
14
  .grid-main {
138
15
  -ms-grid-row: 1;
139
16
  -ms-grid-column: 1;
@@ -156,32 +33,6 @@ div.support-grid-case-details.support-case {
156
33
  } /* ONLY until step refactoring */
157
34
  }
158
35
 
159
- .grid-navigation {
160
- -ms-grid-row: 2;
161
- -ms-grid-column: 1;
162
- grid-area: nav;
163
- position: -webkit-sticky;
164
- position: sticky;
165
- bottom: 0;
166
- display: -webkit-box;
167
- display: -ms-flexbox;
168
- display: flex;
169
- padding: 1rem;
170
- background-color: #fff;
171
- border: 1px solid #d9d9d9;
172
- border-bottom: initial;
173
- border-left: initial;
174
-
175
- /* Layout - navigation section */
176
- button:first-child {
177
- margin-right: 1em;
178
- }
179
-
180
- button:last-child:not(.btn-primary) {
181
- margin-left: auto;
182
- }
183
- }
184
-
185
36
  .grid-aside {
186
37
  grid-area: aside;
187
38
  background-color: #e7e7e7;
@@ -243,51 +94,6 @@ div.support-grid-case-details.support-case {
243
94
  'progress main'
244
95
  'progress nav';
245
96
 
246
- .grid-progress {
247
- -ms-grid-row: 1;
248
- -ms-grid-row-span: 2;
249
- -ms-grid-column: 1;
250
- display: inline-block;
251
- border-right: 1px solid #d9d9d9;
252
- padding: 1rem;
253
-
254
- & > button {
255
- margin-top: 0;
256
- margin-bottom: 1.5rem;
257
- margin-left: -0.9rem;
258
- }
259
-
260
- .grid-progress-content {
261
- position: -webkit-sticky;
262
- position: sticky;
263
- top: 8rem;
264
-
265
- .grid-progress-steps {
266
- -webkit-box-orient: vertical;
267
- -ms-flex-direction: column;
268
- flex-direction: column;
269
- -webkit-box-align: start;
270
- -ms-flex-align: start;
271
- align-items: flex-start;
272
- -webkit-box-pack: center;
273
- -ms-flex-pack: center;
274
- justify-content: center;
275
- padding: 0;
276
-
277
- li {
278
- margin-right: 0;
279
- margin-bottom: 1.5rem;
280
- padding: 0;
281
-
282
- button {
283
- white-space: nowrap;
284
- font-size: 15px;
285
- }
286
- }
287
- }
288
- }
289
- }
290
-
291
97
  .grid-main {
292
98
  -ms-grid-row: 1;
293
99
  -ms-grid-column: 2;
@@ -299,12 +105,6 @@ div.support-grid-case-details.support-case {
299
105
  position: sticky;
300
106
  top: 8rem;
301
107
  }
302
-
303
- .grid-navigation {
304
- -ms-grid-row: 2;
305
- -ms-grid-column: 2;
306
- padding: 1rem 2rem;
307
- }
308
108
  }
309
109
 
310
110
  /* Large devices - add aside */
@@ -317,8 +117,7 @@ div.support-grid-case-details.support-case {
317
117
  'progress main aside'
318
118
  'progress nav aside';
319
119
 
320
- .grid-main,
321
- .grid-navigation {
120
+ .grid-main {
322
121
  border-right: 1px solid #e7e7e7;
323
122
  }
324
123
 
@@ -337,21 +136,6 @@ div.support-grid-case-details.support-case {
337
136
  padding: 2.5rem 1.5rem;
338
137
  }
339
138
  }
340
-
341
- .grid-navigation {
342
- -ms-grid-row: 2;
343
- -ms-grid-column: 2;
344
- }
345
-
346
- .grid-progress {
347
- -ms-grid-row: 1;
348
- -ms-grid-row-span: 2;
349
- -ms-grid-column: 1;
350
-
351
- & > .grid-main-section {
352
- padding: 2rem 1rem;
353
- }
354
- }
355
139
  }
356
140
 
357
141
  /* XL devices - Add step names to progress section */
@@ -364,10 +148,6 @@ div.support-grid-case-details.support-case {
364
148
  @media (min-width: 2000px) {
365
149
  -ms-grid-columns: 300px 1fr 33%;
366
150
  grid-template-columns: 300px auto 33%;
367
-
368
- .grid-progress {
369
- padding: 1rem;
370
- }
371
151
  }
372
152
 
373
153
  /* Case details grid */
@@ -1090,3 +870,11 @@ li.pf-c-wizard__nav-item button.pf-m-disabled::before {
1090
870
  .solved-issue-button {
1091
871
  margin-left: auto !important;
1092
872
  }
873
+
874
+ svg.pf-c-spinner.pf-m-md.export-csv-loader {
875
+ --pf-c-spinner--Color: var(--pf-global--Color--200) !important;
876
+ }
877
+
878
+ svg.pf-u-ml-xs.icon-size {
879
+ width: 14px;
880
+ }
@@ -172,20 +172,22 @@
172
172
  }
173
173
  }
174
174
 
175
- .pf-c-expandable-section {
176
- .pf-c-expandable-section__content {
177
- margin-top: 0 !important;
178
- padding: 10px 5px;
179
- border: 1px solid #d2d2d2;
180
- border-top: none;
181
- }
175
+ #rh-support-case {
176
+ .pf-c-expandable-section {
177
+ .pf-c-expandable-section__content {
178
+ margin-top: 0 !important;
179
+ padding: 10px 5px;
180
+ border: 1px solid #d2d2d2;
181
+ border-top: none;
182
+ }
182
183
 
183
- .pf-c-expandable-section__toggle {
184
- font-size: 16px;
184
+ .pf-c-expandable-section__toggle {
185
+ font-size: 16px;
185
186
 
186
- .pf-c-expandable-section__toggle-text {
187
- margin-left: 8px;
188
- font-weight: 500;
187
+ .pf-c-expandable-section__toggle-text {
188
+ margin-left: 8px;
189
+ font-weight: 500;
190
+ }
189
191
  }
190
192
  }
191
193
  }
@@ -1 +1 @@
1
- {"version":3,"file":"remoteRiderUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/remoteRiderUtils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,mDAUhC,CAAC"}
1
+ {"version":3,"file":"remoteRiderUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/remoteRiderUtils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,mDAUhC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import hydrajs from '@cee-eng/hydrajs';
2
- import { TnC } from '../constants/tncConstants';
2
+ import { TncConstants } from '@rh-support/utils';
3
3
  export const getTnCRemoteRiderUrl = (caseNumber, isSecureSupport) => {
4
4
  const path = `${isSecureSupport ? hydrajs.Env.securePathPrefix : hydrajs.Env.pathPrefix}/cases/${caseNumber}/remotesessionterms`;
5
5
  const redirectUrl = hydrajs.Env.hydraHostName.clone().setPath(path);
6
6
  const cancelRedirectUrl = encodeURIComponent(`${window.location.href}?remoteSessionTermsAcked=false`);
7
- const tncUrl = `https://${TnC.HOSTS[hydrajs.Env.getEnvName()]}/wapps/tnc/ackrequired?site=${TnC.REMOTE_RIDER_SITE_CODE}&event=${TnC.REMOTER_RIDER_EVENT_CODE}&redirect=${redirectUrl}&cancelRedirect=${cancelRedirectUrl}`;
7
+ const tncUrl = `https://${TncConstants.HOSTS[hydrajs.Env.getEnvName()]}/wapps/tnc/ackrequired?site=${TncConstants.REMOTE_RIDER_SITE_CODE}&event=${TncConstants.REMOTER_RIDER_EVENT_CODE}&redirect=${redirectUrl}&cancelRedirect=${cancelRedirectUrl}`;
8
8
  return tncUrl;
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.1.19",
3
+ "version": "2.1.20-beta.0",
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.15.82",
29
+ "@cee-eng/hydrajs": "4.15.84",
30
30
  "@cee-eng/ui-toolkit": "1.1.6",
31
31
  "@patternfly/patternfly": "4.196.7",
32
32
  "@patternfly/pfe-accordion": "1.12.3",
@@ -56,7 +56,7 @@
56
56
  "react-virtualized": "^9.21.2"
57
57
  },
58
58
  "dependencies": {
59
- "@cee-eng/hydrajs": "4.15.82",
59
+ "@cee-eng/hydrajs": "4.15.84",
60
60
  "@cee-eng/ui-toolkit": "1.1.6",
61
61
  "@patternfly/patternfly": "4.196.7",
62
62
  "@patternfly/pfe-accordion": "1.12.3",
@@ -66,11 +66,11 @@
66
66
  "@patternfly/react-core": "4.264.0",
67
67
  "@progress/kendo-drawing": "^1.6.0",
68
68
  "@progress/kendo-react-pdf": "^3.12.0",
69
- "@rh-support/components": "2.0.11",
70
- "@rh-support/react-context": "2.0.11",
69
+ "@rh-support/components": "2.0.12-beta.0",
70
+ "@rh-support/react-context": "2.0.12-beta.0",
71
71
  "@rh-support/types": "2.0.2",
72
- "@rh-support/user-permissions": "2.0.11",
73
- "@rh-support/utils": "2.0.11",
72
+ "@rh-support/user-permissions": "2.0.11-beta.0",
73
+ "@rh-support/utils": "2.0.11-beta.0",
74
74
  "@types/react-redux": "^7.1.12",
75
75
  "@types/redux": "^3.6.0",
76
76
  "dompurify": "^2.4.1",
@@ -133,5 +133,5 @@
133
133
  "defaults and supports es6-module",
134
134
  "maintained node versions"
135
135
  ],
136
- "gitHead": "847c33cd666971e8c8529b15192437cd74d995bb"
136
+ "gitHead": "d2f8df79dfae0ffc697fcf847d85ec6f2f892403"
137
137
  }
@@ -1,13 +0,0 @@
1
- export declare const TnC: {
2
- HOSTS: {
3
- DEV: string;
4
- QA: string;
5
- Stage: string;
6
- PROD: string;
7
- };
8
- PARTNER_SHARE_SITE_CODE: string;
9
- PARTNER_SHARE_EVENT_CODE: string;
10
- REMOTER_RIDER_EVENT_CODE: string;
11
- REMOTE_RIDER_SITE_CODE: string;
12
- };
13
- //# sourceMappingURL=tncConstants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tncConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/tncConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;;;;;;CAWf,CAAC"}
@@ -1,12 +0,0 @@
1
- export const TnC = {
2
- HOSTS: {
3
- DEV: 'ams-dev1.devlab.redhat.com',
4
- QA: 'www.qa.redhat.com',
5
- Stage: 'www.stage.redhat.com',
6
- PROD: 'www.redhat.com',
7
- },
8
- PARTNER_SHARE_SITE_CODE: 'customerPortal',
9
- PARTNER_SHARE_EVENT_CODE: 'partnerAuthorization',
10
- REMOTER_RIDER_EVENT_CODE: 'remoteAccessRider',
11
- REMOTE_RIDER_SITE_CODE: 'remoteAccessRider',
12
- };