@rh-support/troubleshoot 2.2.32 → 2.2.33-beta.12

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 (30) hide show
  1. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
  2. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +3 -3
  3. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
  5. package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.js +2 -2
  6. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts +0 -2
  7. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/ShareCase/TnC.js +2 -20
  9. package/lib/esm/components/CaseEditView/index.d.ts +0 -5
  10. package/lib/esm/components/CaseEditView/index.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/index.js +0 -7
  12. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +3 -3
  13. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  14. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +7 -2
  15. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  16. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +5 -0
  17. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
  18. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +2 -2
  19. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  20. package/lib/esm/components/SubmitCase/SubmitCase.js +2 -6
  21. package/lib/esm/components/Suggestions/TopContent.d.ts +0 -1
  22. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  23. package/lib/esm/components/Suggestions/TopContent.js +0 -1
  24. package/lib/esm/scss/_pf4-overrides.scss +14 -12
  25. package/lib/esm/utils/remoteRiderUtils.d.ts.map +1 -1
  26. package/lib/esm/utils/remoteRiderUtils.js +2 -2
  27. package/package.json +6 -14
  28. package/lib/esm/constants/tncConstants.d.ts +0 -13
  29. package/lib/esm/constants/tncConstants.d.ts.map +0 -1
  30. package/lib/esm/constants/tncConstants.js +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"ESSRemoteSession.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,gBAAgB,+EAkH3B,CAAC"}
1
+ {"version":3,"file":"ESSRemoteSession.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,eAAO,MAAM,gBAAgB,+EAkH3B,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 { ESSRemoteSessionModal } from './ESSRemoteSessionModal';
8
8
  import { NewEssTermsModal } from './NewEssTermsModal';
9
9
  export const ESSRemoteSession = forwardRef((props, ref) => {
@@ -40,9 +40,9 @@ export const ESSRemoteSession = forwardRef((props, ref) => {
40
40
  React.createElement("li", null, t(`Such access will help diagnose, debug or lead to the resolution of a software defect`)),
41
41
  React.createElement("li", null, t('Agreed upon by both Red Hat and you, the end user'))),
42
42
  React.createElement("p", { className: "rrs-light-grey-text" }, t('Red Hat will add a comment to your case to schedule your remote session.')),
43
- screenSessionRequested && (React.createElement(Tooltip, { content: t('Remote session agreement has already been accepted.'), reference: tooltipRef, "aria-live": 'polite' })),
43
+ screenSessionRequested && (React.createElement(Tooltip, { content: t('Remote session request has already been submitted.'), reference: tooltipRef, "aria-live": 'polite' })),
44
44
  React.createElement(Button, { "aria-label": screenSessionRequested ? t('Remote session requested') : t('Request remote session'), variant: screenSessionRequested ? 'primary' : 'secondary', onClick: termsAcked ? toggleESSRemoteSessionModal : toggleNewESSRemoteSessionModal, "data-tracking-id": "accept-remote-session-agreement-trigger", isAriaDisabled: screenSessionRequested, ref: tooltipRef }, screenSessionRequested ? t('Remote session requested') : t('Request remote session')))));
45
45
  return (React.createElement(React.Fragment, null,
46
46
  ESSRemoteSessionSectionBody,
47
- remoteSessionTermsAcked && !screenSessionRequested ? (React.createElement(ESSRemoteSessionModal, { caseNumber: caseNumber, caseStatus: caseStatus, screenSessionRequested: screenSessionRequested, show: openESSRemoteSessionModal, onClose: toggleESSRemoteSessionModal, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })) : (React.createElement(NewEssTermsModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openNewESSRemoteSessionModal, onClose: toggleNewESSRemoteSessionModal, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly }))));
47
+ remoteSessionTermsAcked && !screenSessionRequested ? (React.createElement(ESSRemoteSessionModal, { caseNumber: caseNumber, caseStatus: caseStatus, screenSessionRequested: screenSessionRequested, show: openESSRemoteSessionModal, onClose: toggleESSRemoteSessionModal, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })) : (React.createElement(NewEssTermsModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openNewESSRemoteSessionModal, onClose: toggleNewESSRemoteSessionModal, siteCode: TncConstants.REMOTE_RIDER_SITE_CODE, eventCode: TncConstants.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly }))));
48
48
  });
@@ -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();
@@ -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,6 +1,5 @@
1
1
  import '../../css/app.css';
2
2
  import '../../css/case.css';
3
- import { IPfeCollapse } from '@rh-support/types/pfe/pfe-collapse';
4
3
  import { RouteComponentProps } from 'react-router-dom';
5
4
  declare global {
6
5
  interface Window {
@@ -15,10 +14,6 @@ declare global {
15
14
  hydrajs: string;
16
15
  };
17
16
  }
18
- namespace JSX {
19
- interface IntrinsicElements extends IPfeCollapse {
20
- }
21
- }
22
17
  interface Document {
23
18
  documentMode: any;
24
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAI5B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAGlE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAA,KAAK,GAAG,KAAK,GAAG,CAAC;QAC9E,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,eAAe,EAAE,GAAG,CAAC;QACrB,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,GAAG,CAAC;QACV,UAAU,iBAAkB,SAAQ,YAAY;SAAG;KACtD;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,UAAU,MAAM;CAAG;AASnB,wBAAgB,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,MAAM,CAAC,eAkB9D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAI5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,MAAM,OAAA,KAAK,GAAG,KAAK,GAAG,CAAC;QAC9E,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,eAAe,EAAE,GAAG,CAAC;QACrB,aAAa,EAAE;YACX,cAAc,EAAE,MAAM,CAAC;YACvB,OAAO,EAAE,MAAM,CAAC;SACnB,CAAC;KACL;IAED,UAAU,QAAQ;QACd,YAAY,EAAE,GAAG,CAAC;KACrB;CACJ;AAED,UAAU,MAAM;CAAG;AAEnB,wBAAgB,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,MAAM,CAAC,eAkB9D"}
@@ -1,7 +1,6 @@
1
1
  import '../../css/app.css';
2
2
  import '../../css/case.css';
3
3
  import { ConfirmationServiceProvider, ErrorBoundary } from '@rh-support/components';
4
- import { CustomElements, requireCustomElement } from '@rh-support/utils';
5
4
  import React from 'react';
6
5
  import { CaseContextProvider } from '../../context/CaseContext';
7
6
  import { CaseDetailsPageContextProvider } from '../../context/CaseDetailsPageContext';
@@ -9,12 +8,6 @@ import { CaseDiscussionTabContextProvider } from '../../context/CaseDiscussionTa
9
8
  import { RecommendationContextProvider } from '../../context/RecommendationContext';
10
9
  import Case from './Case';
11
10
  import { PDFContainer } from './PDFContainer';
12
- requireCustomElement([
13
- {
14
- element: CustomElements.pfeCollapse,
15
- requireCb: () => require('@patternfly/pfe-collapse'),
16
- },
17
- ]);
18
11
  export function CaseApp(routeProps) {
19
12
  return (React.createElement(ErrorBoundary, { isPageLevelError: true },
20
13
  React.createElement(CaseContextProvider, null,
@@ -13,10 +13,10 @@ import DownloadIcon from '@patternfly/react-icons/dist/esm/icons/download-icon';
13
13
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
14
14
  import { useFetch } from '@rh-support/components';
15
15
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
16
+ import { TncConstants } from '@rh-support/utils';
16
17
  import isEqual from 'lodash/isEmpty';
17
18
  import React, { useContext, useEffect, useState } from 'react';
18
19
  import { Trans, useTranslation } from 'react-i18next';
19
- import { TnC } from '../../constants/tncConstants';
20
20
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
21
21
  import { setCaseDetails } from '../../reducers/CaseReducer';
22
22
  const getLocaleNameFromLocalCode = (localeCode) => {
@@ -60,8 +60,8 @@ const ESSRemoteSessionCheck = () => {
60
60
  const caseDispatch = useCaseDispatch();
61
61
  const [remoteSessionChecked, setRemoteSessionChecked] = useState(screenSessionRequested);
62
62
  const { globalMetadataState: { loggedInUser, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
63
- const siteCode = TnC.REMOTE_RIDER_SITE_CODE;
64
- const eventCode = TnC.REMOTER_RIDER_EVENT_CODE;
63
+ const siteCode = TncConstants.REMOTE_RIDER_SITE_CODE;
64
+ const eventCode = TncConstants.REMOTER_RIDER_EVENT_CODE;
65
65
  const user = loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername;
66
66
  useEffect(() => {
67
67
  const fetchTerms = () => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAkGvD,CAAC"}
1
+ {"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAuGvD,CAAC"}
@@ -31,10 +31,10 @@ export const NewProductDropdownSelector = (props) => {
31
31
  const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
32
32
  const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
33
33
  return [
34
- React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts" }),
34
+ React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '' }),
35
35
  ...topProductOptions,
36
36
  React.createElement(Divider, { key: "all-product-divider" }),
37
- React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts" }),
37
+ React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '' }),
38
38
  ...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
39
39
  ];
40
40
  };
@@ -53,6 +53,11 @@ export const NewProductDropdownSelector = (props) => {
53
53
  }
54
54
  };
55
55
  const onSelect = (event, selection) => {
56
+ if (isEqual(selection, product)) {
57
+ props.onProductChange(''); // To unselect a product when user clicks on the same selected product
58
+ setIsOpen(false);
59
+ return;
60
+ }
56
61
  props.onProductChange(selection);
57
62
  setIsOpen(false);
58
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBA8HtD,CAAC"}
1
+ {"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAWA,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,gBAmItD,CAAC"}
@@ -82,6 +82,11 @@ export const NewProductVersionSelector = (props) => {
82
82
  setIsOpen(isOpen);
83
83
  };
84
84
  const onSelect = (event, selection) => {
85
+ if (isEqual(selection, version)) {
86
+ props.onVersionChange(''); // To unselect a version when user clicks on the same selected product version
87
+ setIsOpen(false);
88
+ return;
89
+ }
85
90
  props.onVersionChange(selection);
86
91
  setIsOpen(false);
87
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMxD,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;IACnB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,eAsD/D"}
1
+ {"version":3,"file":"RemoteRiderAcceptanceModal.d.ts","sourceRoot":"","sources":["../../../../src/components/RemoteRider/RemoteRiderAcceptanceModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAKxD,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;IACnB,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,KAAK,EAAE,MAAM,eAsD/D"}
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
11
  import { AcceptTermsModal, ToastNotification, 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
15
  import { useTranslation } from 'react-i18next';
15
- import { TnC } from '../../constants/tncConstants';
16
16
  export default function RemoteRiderAcceptanceModal(props) {
17
17
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
18
18
  const { t } = useTranslation();
@@ -41,5 +41,5 @@ export default function RemoteRiderAcceptanceModal(props) {
41
41
  props.onFailure && props.onFailure();
42
42
  }
43
43
  });
44
- 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, isDisabled: isPostingComment }));
44
+ 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, isDisabled: isPostingComment }));
45
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA0TjC"}
1
+ {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAsTjC"}
@@ -79,8 +79,7 @@ export default function SubmitCase() {
79
79
  const showRemoteRiderBanner = isRemoteRiderBannerVisible &&
80
80
  !loggedInUser.data.isInternal &&
81
81
  showRemoteRiderTermsInline &&
82
- !selectedAccountDetails.data.remoteSessionTermsAcked &&
83
- !isIdea;
82
+ !selectedAccountDetails.data.remoteSessionTermsAcked;
84
83
  const isNotAnIdea = caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT;
85
84
  // To check if the user is ESS Customer and Product has ESS Support
86
85
  const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, product);
@@ -89,10 +88,7 @@ export default function SubmitCase() {
89
88
  React.createElement(AlertMessage, { className: "pf-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
90
89
  React.createElement(React.Fragment, null, caseCreationErrorMessage)),
91
90
  !isCreatingCase && !caseCreationError && (React.createElement(React.Fragment, null,
92
- !isESSCustomer &&
93
- !screenSessionRequested &&
94
- showRemoteRiderBanner &&
95
- !loggedInUser.data.isInternal && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber: caseNoOfCreatedCase, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })),
91
+ !isESSCustomer && !screenSessionRequested && showRemoteRiderBanner && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber: caseNoOfCreatedCase, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })),
96
92
  React.createElement("div", { className: "submit-case-header-container" },
97
93
  React.createElement("p", { className: "kicker kicker-sm pf-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
98
94
  !isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
@@ -1,4 +1,3 @@
1
- import '@patternfly/pfe-accordion';
2
1
  import { ITopContent } from '@cee-eng/hydrajs/@types/models/topContent/topContentModel';
3
2
  interface IProps {
4
3
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAQxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eA6C/C"}
1
+ {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAQxF,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eA6C/C"}
@@ -1,4 +1,3 @@
1
- import '@patternfly/pfe-accordion';
2
1
  import { pcm } from '@cee-eng/hydrajs';
3
2
  import { Tooltip } from '@patternfly/react-core';
4
3
  import map from 'lodash/map';
@@ -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.2.32",
3
+ "version": "2.2.33-beta.12",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -29,9 +29,6 @@
29
29
  "@cee-eng/hydrajs": "4.16.21",
30
30
  "@cee-eng/ui-toolkit": "1.1.6",
31
31
  "@patternfly/patternfly": "4.196.7",
32
- "@patternfly/pfe-accordion": "1.12.3",
33
- "@patternfly/pfe-collapse": "1.12.3",
34
- "@patternfly/pfe-tabs": "1.12.3",
35
32
  "@patternfly/react-core": "4.264.0",
36
33
  "dompurify": "^2.2.6",
37
34
  "downshift": "^6.0.5",
@@ -59,18 +56,14 @@
59
56
  "@cee-eng/hydrajs": "4.16.21",
60
57
  "@cee-eng/ui-toolkit": "1.1.6",
61
58
  "@patternfly/patternfly": "4.196.7",
62
- "@patternfly/pfe-accordion": "1.12.3",
63
- "@patternfly/pfe-collapse": "1.12.3",
64
- "@patternfly/pfe-icon": "^1.12.3",
65
- "@patternfly/pfe-tabs": "1.12.3",
66
59
  "@patternfly/react-core": "4.264.0",
67
60
  "@progress/kendo-drawing": "^1.6.0",
68
61
  "@progress/kendo-react-pdf": "^3.12.0",
69
- "@rh-support/components": "2.1.18",
70
- "@rh-support/react-context": "2.1.19",
62
+ "@rh-support/components": "2.1.19-beta.12",
63
+ "@rh-support/react-context": "2.1.20-beta.12",
71
64
  "@rh-support/types": "2.0.2",
72
- "@rh-support/user-permissions": "2.1.12",
73
- "@rh-support/utils": "2.1.9",
65
+ "@rh-support/user-permissions": "2.1.13-beta.12",
66
+ "@rh-support/utils": "2.1.10-beta.11",
74
67
  "@types/react-redux": "^7.1.12",
75
68
  "@types/redux": "^3.6.0",
76
69
  "dompurify": "^2.4.1",
@@ -109,7 +102,6 @@
109
102
  "@types/react": "^17.0.14",
110
103
  "@types/react-bootstrap-typeahead": "^5.1.3",
111
104
  "@types/react-dom": "^17.0.9",
112
- "@types/react-i18next": "^8.1.0",
113
105
  "@types/react-router-dom": "^5.1.2",
114
106
  "faker": "^5.5.3"
115
107
  },
@@ -133,5 +125,5 @@
133
125
  "defaults and supports es6-module",
134
126
  "maintained node versions"
135
127
  ],
136
- "gitHead": "1be555e9d41b629276c10a44ec8e40e0bb9a8995"
128
+ "gitHead": "e59d5737fe8e68e71f81cbd744b7cc169c029bdb"
137
129
  }
@@ -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
- };