@rh-support/troubleshoot 2.4.5-beta.11 → 2.4.5-beta.14

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 (52) hide show
  1. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  2. package/lib/esm/components/CaseInformation/Description.js +2 -3
  3. package/lib/esm/components/Cve/CveItem.d.ts +2 -0
  4. package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
  5. package/lib/esm/components/Cve/CveItem.js +49 -6
  6. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  7. package/lib/esm/components/Cve/CveModal.js +4 -1
  8. package/lib/esm/components/Cve/CvePanel.js +1 -1
  9. package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
  10. package/lib/esm/components/OpenCase/OpenCase.js +4 -3
  11. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
  12. package/lib/esm/components/ProductSelector/AllProductsSelector.js +37 -32
  13. package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
  14. package/lib/esm/components/ProductSelector/ProductSelector.js +31 -21
  15. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  16. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +6 -1
  17. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  18. package/lib/esm/components/Recommendations/Recommendations.js +26 -21
  19. package/lib/esm/components/Review/Review.d.ts.map +1 -1
  20. package/lib/esm/components/Review/Review.js +4 -2
  21. package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
  22. package/lib/esm/components/SessionRestore/SessionRestore.js +4 -2
  23. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  24. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +6 -10
  25. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  26. package/lib/esm/components/shared/useIsSectionValid.js +63 -14
  27. package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
  28. package/lib/esm/components/wizardLayout/WizardAside.js +9 -4
  29. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  30. package/lib/esm/components/wizardLayout/WizardLayout.js +18 -3
  31. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  32. package/lib/esm/components/wizardLayout/WizardNavigation.js +23 -7
  33. package/lib/esm/hooks/useFetchCVEData.d.ts.map +1 -1
  34. package/lib/esm/hooks/useFetchCVEData.js +10 -6
  35. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  36. package/lib/esm/hooks/useWizard.js +23 -5
  37. package/lib/esm/models/caseCreationWorkflows.d.ts +2 -0
  38. package/lib/esm/models/caseCreationWorkflows.d.ts.map +1 -1
  39. package/lib/esm/reducers/CaseConstNTypes.d.ts +3 -1
  40. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  41. package/lib/esm/reducers/CaseConstNTypes.js +2 -0
  42. package/lib/esm/reducers/CaseReducer.d.ts +1 -0
  43. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  44. package/lib/esm/reducers/CaseReducer.js +9 -0
  45. package/lib/esm/reducers/SessionRestoreReducer.d.ts +7 -4
  46. package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
  47. package/lib/esm/reducers/SessionRestoreReducer.js +25 -12
  48. package/lib/esm/scss/_main.scss +49 -0
  49. package/lib/esm/utils/caseUtils.d.ts +1 -1
  50. package/lib/esm/utils/caseUtils.d.ts.map +1 -1
  51. package/lib/esm/utils/caseUtils.js +2 -2
  52. package/package.json +8 -8
@@ -35,12 +35,13 @@ export function SessionRestore(props) {
35
35
  const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
36
36
  const dispatchToAttachmentReducer = useContext(AttachmentDispatchContext);
37
37
  const { sessionRestore } = useContext(SessionRestoreStateContext);
38
- const { selectedNotificationContacts, cepDetails, caseDetails, caseCreation500ErrorStatus } = useCaseSelector((state) => ({
38
+ const { selectedNotificationContacts, cepDetails, caseDetails, caseCreation500ErrorStatus, ABTestVarioation } = useCaseSelector((state) => ({
39
39
  openshiftClusterID: state.caseDetails.openshiftClusterID,
40
40
  cepDetails: state.cepDetails,
41
41
  selectedNotificationContacts: state.selectedNotificationContacts,
42
42
  caseDetails: state.caseDetails,
43
43
  caseCreation500ErrorStatus: state.caseCreation500ErrorStatus,
44
+ ABTestVarioation: state.ABTestVarioation,
44
45
  }), isEqual);
45
46
  const caseDispatch = useCaseDispatch();
46
47
  const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights, referrerUrl }, } = useContext(GlobalMetadataStateContext);
@@ -90,8 +91,9 @@ export function SessionRestore(props) {
90
91
  const needsNewSessionId = hasProductVersionOrSummary && isEmpty(relevantSession);
91
92
  if (needsNewSessionId) {
92
93
  const userAgent = getUserAgentForCaseMode(isCaseCreate);
94
+ const userAgentAB = userAgent + (ABTestVarioation ? '-A-1' : '-B-1');
93
95
  let session = {
94
- userAgent,
96
+ userAgent: userAgentAB,
95
97
  originatingSystem: userAgent,
96
98
  referrerUrl: referrerUrl.substring(0, SESSION_REFERRER_URL_LIMIT),
97
99
  isInternal: loggedInUserRights.data.isInternal(),
@@ -1 +1 @@
1
- {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA2EzC;kBA3EQ,mBAAmB;;;AA8E5B,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAuEzC;kBAvEQ,mBAAmB;;;AA0E5B,eAAe,mBAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Card, CardBody, CardHeader, CardTitle } from '@patternfly/react-core';
2
- import { ErrorBoundary, LoadingDots, MoreOrLess } from '@rh-support/components';
2
+ import { ErrorBoundary, LoadingDots } from '@rh-support/components';
3
3
  import { PreviousCaseTypes } from '@rh-support/utils';
4
4
  import isEmpty from 'lodash/isEmpty';
5
5
  import isEqual from 'lodash/isEqual';
@@ -22,7 +22,7 @@ function TroubleshootSection(props) {
22
22
  var _a;
23
23
  const { t } = useTranslation();
24
24
  const { topContentState: { topContent }, } = useContext(TCStateContext);
25
- const { product, version, summary, isCreatingCase, caseType, issue } = useCaseSelector((state) => ({
25
+ const { product, version, isCreatingCase, caseType } = useCaseSelector((state) => ({
26
26
  product: state.caseDetails.product,
27
27
  version: state.caseDetails.version,
28
28
  summary: state.caseDetails.summary,
@@ -39,14 +39,10 @@ function TroubleshootSection(props) {
39
39
  React.createElement("p", { className: "pf-v5-u-pt-md" },
40
40
  React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-pr-xs" }, t('Product')),
41
41
  " ",
42
- product,
43
- React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-ml-xl pf-v5-u-pr-xs" }, t('Version')),
44
- version),
45
- React.createElement("div", { className: "pf-v5-u-font-family-heading" }, t('Title')),
46
- React.createElement("p", null, summary),
47
- React.createElement("div", { className: "pf-v5-u-font-family-heading" }, t('Problem description')),
48
- React.createElement("p", { className: "pf-v5-u-mb-xl" },
49
- React.createElement(MoreOrLess, { maxHeight: 93 }, issue))),
42
+ product),
43
+ React.createElement("p", null,
44
+ React.createElement("span", { className: "pf-v5-u-font-family-heading pf-v5-u-pr-xs" }, t('Version')),
45
+ version)),
50
46
  !isCreatingCase && (React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" })),
51
47
  React.createElement(LoadingDots, { show: topContent.isFetching }),
52
48
  topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-v5-u-mb-md", isCompact: true },
@@ -1 +1 @@
1
- {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA+M9D"}
1
+ {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAuB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA2Q9D"}
@@ -14,7 +14,7 @@ import { AppRouteSections } from '../../reducers/RouteConstNTypes';
14
14
  import { AttachmentStateContext } from './fileUpload/reducer/AttachmentReducerContext';
15
15
  export function useIsSectionValid(sectionName) {
16
16
  var _a, _b;
17
- const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, issue, environment, timeFramesAndUrgency, periodicityOfIssue, enableGetSupportProductVersion, } = useCaseSelector((state) => ({
17
+ const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, issue, environment, timeFramesAndUrgency, periodicityOfIssue, ABTestVarioation, } = useCaseSelector((state) => ({
18
18
  caseState: state,
19
19
  caseType: state.caseDetails.caseType,
20
20
  product: state.caseDetails.product,
@@ -30,8 +30,12 @@ export function useIsSectionValid(sectionName) {
30
30
  environment: state.caseDetails.environment,
31
31
  timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
32
32
  periodicityOfIssue: state.caseDetails.periodicityOfIssue,
33
- enableGetSupportProductVersion: state.enableGetSupportProductVersion,
33
+ ABTestVarioation: state.ABTestVarioation,
34
34
  }), isEqual);
35
+ //&seSessionId=8e8960ac-680b-443e-bf67-9e13f2acd64e
36
+ const isATestvariation = ABTestVarioation === 'A';
37
+ const isBTestvariation = ABTestVarioation === 'B';
38
+ const { routeState: { isCaseCreate }, } = useContext(RouteContext);
35
39
  const { globalMetadataState: { allProducts, loggedInUserJwtToken }, } = useContext(GlobalMetadataStateContext);
36
40
  const { topContentState: { topContent }, } = useContext(TCStateContext);
37
41
  const { recommendationState } = useContext(RecommendationStateContext);
@@ -54,24 +58,53 @@ export function useIsSectionValid(sectionName) {
54
58
  !isEmpty(accountNumber) &&
55
59
  !isEmpty(contactSSOName) &&
56
60
  !selectedAccountDetails.data.subscriptionAbuse;
57
- if (enableGetSupportProductVersion) {
61
+ if (isATestvariation) {
58
62
  isValid = isValid && !isEmpty(product) && !isEmpty(version);
59
63
  }
60
64
  return isValid;
61
65
  };
62
66
  const isSummarizeSectionValid = () => {
63
- let isValid = !allProducts.isFetching &&
64
- !allProducts.isError &&
65
- !topContent.isFetching &&
66
- !isEmpty(summary) &&
67
- !isEmpty(issue) &&
68
- !recommendationState.isLoadingRecommendations &&
69
- (summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
70
- (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT;
71
- if (!enableGetSupportProductVersion) {
72
- isValid = isValid && !isEmpty(product) && !isEmpty(version);
67
+ if (isBTestvariation) {
68
+ let isValid = !allProducts.isFetching &&
69
+ !allProducts.isError &&
70
+ !topContent.isFetching &&
71
+ !recommendationState.isLoadingRecommendations &&
72
+ (summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
73
+ (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT &&
74
+ !isEmpty(product) &&
75
+ !isEmpty(version) &&
76
+ !isEmpty(summary) &&
77
+ !isEmpty(issue);
78
+ return isValid;
79
+ }
80
+ if (isATestvariation) {
81
+ let isValid = !allProducts.isFetching &&
82
+ !allProducts.isError &&
83
+ !topContent.isFetching &&
84
+ !recommendationState.isLoadingRecommendations &&
85
+ (summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
86
+ (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT &&
87
+ !isEmpty(summary) &&
88
+ !isEmpty(issue);
89
+ return isValid;
90
+ }
91
+ if (isCaseCreate) {
92
+ //because on the summarize page for troubleshoot flow we have only product version and owner
93
+ let isValid = !allProducts.isFetching &&
94
+ !allProducts.isError &&
95
+ // !topContent.isFetching &&
96
+ // !recommendationState.isLoadingRecommendations &&
97
+ // summary!?.length <= TITLE_SUMMARY_LENGTH_LIMIT &&
98
+ // issue!?.length <= ISSUE_SUMMARY_LENGTH_LIMIT &&
99
+ !isEmpty(product) &&
100
+ !isEmpty(accountNumber) &&
101
+ !isEmpty(contactSSOName) &&
102
+ !isEmpty(version);
103
+ return isValid;
104
+ }
105
+ else if (!isCaseCreate) {
106
+ return !isEmpty(product) && !isEmpty(version) && !isEmpty(accountNumber) && !isEmpty(contactSSOName);
73
107
  }
74
- return isValid;
75
108
  };
76
109
  const isCaseManagementSectionValid = () => {
77
110
  const hasContactInfo24x7ValidLength = contactInfo24x7
@@ -83,6 +116,22 @@ export function useIsSectionValid(sectionName) {
83
116
  hasAlternateCaseIdValidLength);
84
117
  };
85
118
  const isTroubleshootSectionValid = () => {
119
+ if (isBTestvariation) {
120
+ //if we are in the new experience and user is troubleshoot we give them those validity fields
121
+ if (!isCaseCreate) {
122
+ let isValid = !allProducts.isFetching &&
123
+ !allProducts.isError &&
124
+ !topContent.isFetching &&
125
+ !recommendationState.isLoadingRecommendations &&
126
+ (summary === null || summary === void 0 ? void 0 : summary.length) <= TITLE_SUMMARY_LENGTH_LIMIT &&
127
+ (issue === null || issue === void 0 ? void 0 : issue.length) <= ISSUE_SUMMARY_LENGTH_LIMIT &&
128
+ !isEmpty(product) &&
129
+ !isEmpty(version) &&
130
+ !isEmpty(summary) &&
131
+ !isEmpty(issue);
132
+ return isValid;
133
+ }
134
+ }
86
135
  // don't check for entitled product if user is on search intent flow
87
136
  const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
88
137
  return !recommendationState.isLoadingRecommendations && isEntitledProductLocal;
@@ -1 +1 @@
1
- {"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAGH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AASzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAwDjC;kBAxDQ,WAAW;;;AA0DpB,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"WizardAside.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardAside.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAGH,eAAe,EAIlB,MAAM,iCAAiC,CAAC;AASzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,2BAA2B,EAAE,OAAO,CAAC;CACxC;AAGD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBA8DjC;kBA9DQ,WAAW;;;AAgEpB,eAAe,WAAW,CAAC"}
@@ -17,19 +17,24 @@ const defaultProps = {};
17
17
  function WizardAside(props) {
18
18
  const { routeState: { activeSection }, } = useContext(RouteContext);
19
19
  const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
20
- const { isCreatingCase, caseType, isCveModalOpened, enableGetSupportProductVersion } = useCaseSelector((state) => ({
20
+ const { isCreatingCase, caseType, isCveModalOpened, ABTestVarioation } = useCaseSelector((state) => ({
21
21
  isCreatingCase: state.isCreatingCase,
22
22
  caseType: state.caseDetails.caseType,
23
23
  isCveModalOpened: state.isCveModalOpened,
24
- enableGetSupportProductVersion: state.enableGetSupportProductVersion,
24
+ ABTestVarioation: state.ABTestVarioation,
25
25
  }), isEqual);
26
+ const isBTestvariation = ABTestVarioation === 'B';
26
27
  const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
27
28
  const canUseSessionManagement = ability.can(resourceActions.CREATE, resources.SESSION_TRACKING);
28
29
  const canShowFileUploadWidget = () => canAddAttachments &&
29
30
  !props.isAttachmentUploadModalOpen &&
30
31
  !isUndefined(activeSection) &&
31
32
  !hideFileUploadSidebarWidgetSections.includes(activeSection);
32
- const canShowEARuleWidget = showSideBarEARuleWidgetSections.includes(activeSection);
33
+ const canShowEARuleWidget = isBTestvariation
34
+ ? showSideBarEARuleWidgetSections.includes(activeSection)
35
+ : showSideBarEARuleWidgetSections.includes(activeSection) ||
36
+ activeSection === AppRouteSections.SUMMARIZE ||
37
+ activeSection === AppRouteSections.REVIEW;
33
38
  const canShowClusterIdReportWidget = showSideBarClusterIdRuleWidgetSections.includes(activeSection);
34
39
  const canShowFileRecommendationSectionsWidget = showSideBarFileRecommendationSections.includes(activeSection);
35
40
  return (React.createElement("aside", null,
@@ -39,7 +44,7 @@ function WizardAside(props) {
39
44
  canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-v5-u-mb-md" }),
40
45
  activeSection === AppRouteSections.SUMMARIZE && !isCveModalOpened && React.createElement(CveSidebar, null),
41
46
  activeSection === AppRouteSections.TROUBLESHOOT && React.createElement(CveSidebar, null),
42
- enableGetSupportProductVersion && canShowEARuleWidget && React.createElement(EARuleWidget, null),
47
+ canShowEARuleWidget && React.createElement(EARuleWidget, null),
43
48
  !(isIdea && activeSection === 'submit-case') && (React.createElement(AsideResults, { routeProps: props.routeProps, className: "pf-v5-u-mb-md pf-v5-u-mt-0" })),
44
49
  canShowFileRecommendationSectionsWidget && React.createElement(InsightsResults, { isDisplayOnMain: true }),
45
50
  React.createElement(ClusterRecommendations, { showClusterRecommendationsList: canShowClusterIdReportWidget, className: "pf-v5-u-mb-md pf-v5-u-mt-0" }))));
@@ -1 +1 @@
1
- {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAkKzC"}
1
+ {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAavG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6LzC"}
@@ -11,15 +11,16 @@ import { Grid, GridItem } from '@patternfly/react-core';
11
11
  import { SupportFeedbackForm } from '@rh-support/components';
12
12
  import { fetchProducts, GlobalMetadataDispatchContext, GlobalMetadataStateContext } from '@rh-support/react-context';
13
13
  import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
14
- import { getVersionIfOnlyVersion, pendoTrackEvent, PreviousCaseTypes } from '@rh-support/utils';
14
+ import { ABTestSplitBasedOnAccountNumber, getConfigField, getVersionIfOnlyVersion, PCM_CONFIG_FIELD_TYPE, pendoTrackEvent, PreviousCaseTypes, } from '@rh-support/utils';
15
15
  import findIndex from 'lodash/findIndex';
16
+ import isEmpty from 'lodash/isEmpty';
16
17
  import isEqual from 'lodash/isEqual';
17
18
  import React, { useContext, useEffect, useRef, useState } from 'react';
18
19
  import { Trans } from 'react-i18next';
19
20
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
20
21
  import { RouteContext } from '../../context/RouteContext';
21
22
  import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
22
- import { submitCase } from '../../reducers/CaseReducer';
23
+ import { setABTestVarioation, submitCase } from '../../reducers/CaseReducer';
23
24
  import { AppRouteSections } from '../../reducers/RouteConstNTypes';
24
25
  import RouteUtils from '../../utils/routeUtils';
25
26
  import PreCaseConfirmationModals, { PreCaseConfirmationModalsEnum, } from '../ConfirmationModals/PreCaseConfirmationModals';
@@ -32,6 +33,7 @@ import WizardAside from './WizardAside';
32
33
  import WizardMain from './WizardMain';
33
34
  export function WizardLayout(props) {
34
35
  const { routeState: { activeSection, isCaseCreate }, } = useContext(RouteContext);
36
+ // const urlParams = getUrlParsedParams(props.routeProps.location.search);
35
37
  const { caseCreationError, contactSSOName, caseType, product, caseState } = useCaseSelector((state) => ({
36
38
  caseState: state,
37
39
  caseCreationError: state.caseCreationError,
@@ -42,7 +44,7 @@ export function WizardLayout(props) {
42
44
  const sessionRestoreDispatch = useContext(SessionRestoreDispatchContext);
43
45
  const caseDispatch = useCaseDispatch();
44
46
  const { sessionRestore: { activeSessionId, previousSessions }, } = useContext(SessionRestoreStateContext);
45
- const { globalMetadataState: { allProducts, loggedInUser, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
47
+ const { globalMetadataState: { allProducts, loggedInUser, loggedInUsersAccount, pcmConfig }, } = useContext(GlobalMetadataStateContext);
46
48
  const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
47
49
  const canAddAttachments = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ATTACHMENTS);
48
50
  const { attachmentState } = useContext(AttachmentStateContext);
@@ -110,6 +112,19 @@ export function WizardLayout(props) {
110
112
  }
111
113
  setConfirmationModalType(null);
112
114
  };
115
+ // A/B test
116
+ useEffect(() => {
117
+ if (isEmpty(loggedInUsersAccount.data.accountNumber))
118
+ return;
119
+ const appABTestConfig = getConfigField(pcmConfig.data, 'testVariationWeightZeroToTen', PCM_CONFIG_FIELD_TYPE.STRING);
120
+ if (isEmpty(appABTestConfig))
121
+ return;
122
+ const appTestWeight = parseInt(appABTestConfig, 10);
123
+ const ABTestVariation = ABTestSplitBasedOnAccountNumber(appTestWeight, loggedInUsersAccount.data.accountNumber);
124
+ // set state for PCM to show A or B
125
+ setABTestVarioation(caseDispatch, ABTestVariation);
126
+ // eslint-disable-next-line react-hooks/exhaustive-deps
127
+ }, [loggedInUsersAccount.data.accountNumber]);
113
128
  // Loading app metadata
114
129
  useEffect(() => {
115
130
  fetchProducts(dispatchToGlobalMetadataReducer, contactSSOName);
@@ -1 +1 @@
1
- {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAK3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,EAAE,CAAC,gCAAgC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzE,gBAAgB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kCAAkC,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACpF,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,gCAAgC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjF,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,C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E;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAmRtC;kBAnRQ,gBAAgB;;;AAqRzB,eAAe,gBAAgB,CAAC"}
@@ -31,11 +31,14 @@ function WizardNavigation(props) {
31
31
  const { t } = useTranslation();
32
32
  const canCreateCase = useCanCreateCase();
33
33
  const { recommendationState } = useContext(RecommendationStateContext);
34
- const { routeState: { activeSection, isNextBtnClickedToShowValidationError, noValidEntitlement, isSearchIntent }, } = useContext(RouteContext);
34
+ const { routeState: { activeSection, isNextBtnClickedToShowValidationError, noValidEntitlement, isSearchIntent, isCaseCreate, }, } = useContext(RouteContext);
35
35
  const { globalMetadataState: { loggedInUsersAccount, allProducts, navBarRef }, } = useContext(GlobalMetadataStateContext);
36
- const { caseState } = useCaseSelector((state) => ({
36
+ const { caseState, ABTestVarioation } = useCaseSelector((state) => ({
37
37
  caseState: state,
38
+ ABTestVarioation: state.ABTestVarioation,
38
39
  }), isEqual);
40
+ const isATestvariation = ABTestVarioation === 'A';
41
+ const isBTestvariation = ABTestVarioation === 'B';
39
42
  // To check if the user is entitled or not
40
43
  const isEntitledProduct = (_b = find((_a = allProducts === null || allProducts === void 0 ? void 0 : allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, (p) => p.product === caseState.caseDetails.product)) === null || _b === void 0 ? void 0 : _b.isEntitledProduct;
41
44
  const dispatchToRouteReducer = useContext(RouteDispatchContext);
@@ -54,7 +57,7 @@ function WizardNavigation(props) {
54
57
  props.userClickedNextonRecommendationsFn(false);
55
58
  props.setUserScrolledLabel(false);
56
59
  // eslint-disable-next-line react-hooks/exhaustive-deps
57
- }, []);
60
+ }, [recommendationState.isLoadingRecommendations]);
58
61
  useEffect(() => {
59
62
  if (props.activeStep.id === AppRouteSections.TROUBLESHOOT) {
60
63
  window.scrollTo({
@@ -175,14 +178,27 @@ function WizardNavigation(props) {
175
178
  }
176
179
  catch (e) { }
177
180
  });
181
+ const nextButtonDisabledLogic = () => {
182
+ if (isBTestvariation) {
183
+ let value = (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.SUMMARIZE) ||
184
+ (!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
185
+ (!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
186
+ noValidEntitlement;
187
+ return value;
188
+ }
189
+ else if (isATestvariation && !isCaseCreate) {
190
+ let value = (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.TROUBLESHOOT) ||
191
+ (!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
192
+ (!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
193
+ noValidEntitlement;
194
+ return value;
195
+ }
196
+ };
178
197
  // To handle entitled products
179
198
  const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
180
199
  return (React.createElement(React.Fragment, null,
181
200
  props.activeStep.order !== 0 && (React.createElement("button", { onClick: () => onBack(), className: "btn btn-app btn-open-white main-nav-button", "data-tracking-id": `prev-of-${activeSection}`, type: "button" }, t('Go back'))),
182
- React.createElement("button", { disabled: (!props.userSeenRecommendations && props.activeStep.id === AppRouteSections.SUMMARIZE) ||
183
- (!isEntitledProductLocal && props.activeStep.nextButtonLabel === 'Get support') ||
184
- (!isSectionValidFn(props.activeStep.id) && isNextBtnClickedToShowValidationError) ||
185
- noValidEntitlement, onClick: onNext, className: "btn btn-app btn-primary main-nav-button", "data-tracking-id": `next-of-${activeSection}`, type: "button" }, t(props.activeStep.nextButtonLabel)),
201
+ React.createElement("button", { disabled: nextButtonDisabledLogic(), onClick: onNext, className: "btn btn-app btn-primary main-nav-button", "data-tracking-id": `next-of-${activeSection}`, type: "button" }, t(props.activeStep.nextButtonLabel)),
186
202
  activeSection === AppRouteSections.TROUBLESHOOT && isFileRecommendationsTriggered && (React.createElement(Button, { onClick: handleFileRecsSelfSolved, variant: ButtonVariant.secondary, className: "issue-solved-button solved-issue-button", "data-tracking-id": "troubleshoot-self-solved-issue" }, t('I solved my issue'))),
187
203
  React.createElement(RecommendationFeedbackModal, { isModalOpen: isRecsModalVisible, handleModalToggle: onRecsFeedbackModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
188
204
  activeSectionError ? (React.createElement("small", { className: "pf-v5-u-align-self-center pf-v5-u-ml-md text-red" }, activeSectionError)) : null));
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchCVEData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchCVEData.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,0BAA0B,EAAkB,MAAM,iCAAiC,CAAC;AAI7F,wBAAgB,eAAe;;EAiI9B"}
1
+ {"version":3,"file":"useFetchCVEData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchCVEData.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,0BAA0B,EAAkB,MAAM,iCAAiC,CAAC;AAI7F,wBAAgB,eAAe;;EAmI9B"}
@@ -14,16 +14,16 @@ import isArray from 'lodash/isArray';
14
14
  import isEmpty from 'lodash/isEmpty';
15
15
  import isEqual from 'lodash/isEqual';
16
16
  import map from 'lodash/map';
17
+ import slice from 'lodash/slice';
17
18
  import sortBy from 'lodash/sortBy';
18
- import { useContext, useEffect, useState } from 'react';
19
+ import uniqBy from 'lodash/uniqBy';
20
+ import { useEffect, useState } from 'react';
19
21
  import { useCaseDispatch, useCaseSelector } from '../context/CaseContext';
20
- import { RecommendationStateContext } from '../context/RecommendationContext';
21
22
  import { setCaseState } from '../reducers/CaseReducer';
22
23
  import { findCVEsInString } from '../utils/caseUtils';
23
24
  // custom hook for CVE workflow data .
24
25
  export function useFetchCVEData() {
25
26
  const caseDispatch = useCaseDispatch();
26
- const { recommendationState } = useContext(RecommendationStateContext);
27
27
  const [cveRecommendation, setCveRecommendation] = useState([]);
28
28
  const { product, version, summary, description } = useCaseSelector((state) => ({
29
29
  product: state.caseDetails.product,
@@ -51,7 +51,8 @@ export function useFetchCVEData() {
51
51
  (majorVersion && product === `red hat ${selectedProductLower} ${majorVersion}`);
52
52
  return productVersionMatchConditions && (obj === null || obj === void 0 ? void 0 : obj.state) === 'Fixed';
53
53
  });
54
- return map(filteredArray, (i) => {
54
+ const uniqFilteredArray = uniqBy(filteredArray, (fa) => { var _a; return (_a = fa === null || fa === void 0 ? void 0 : fa.advisory) === null || _a === void 0 ? void 0 : _a.name; });
55
+ const errataData = map(uniqFilteredArray, (i) => {
55
56
  var _a;
56
57
  return ({
57
58
  package: (i === null || i === void 0 ? void 0 : i.package) || '',
@@ -62,6 +63,7 @@ export function useFetchCVEData() {
62
63
  product: (i === null || i === void 0 ? void 0 : i.product) || '',
63
64
  });
64
65
  });
66
+ return slice(errataData, 0, 3);
65
67
  };
66
68
  const sortCveResult = (cveData) => {
67
69
  if (isEmpty(cveData)) {
@@ -109,7 +111,7 @@ export function useFetchCVEData() {
109
111
  const cveIds = findCVEsInString(CVETextValue);
110
112
  fetchCVEData(cveIds)
111
113
  .then((results) => {
112
- const sortedData = sortCveResult(results);
114
+ const sortedData = slice(sortCveResult(results), 0, 4);
113
115
  const processedData = map(sortedData, ({ data }) => {
114
116
  var _a, _b, _c, _d;
115
117
  return ({
@@ -119,6 +121,8 @@ export function useFetchCVEData() {
119
121
  mitigation: data === null || data === void 0 ? void 0 : data.field_cve_mitigation_text,
120
122
  details: (_b = data === null || data === void 0 ? void 0 : data.field_cve_details_text) === null || _b === void 0 ? void 0 : _b.value,
121
123
  cveLink: (_c = data === null || data === void 0 ? void 0 : data.path) === null || _c === void 0 ? void 0 : _c.replace(/\\/g, ''),
124
+ type: (data === null || data === void 0 ? void 0 : data.type) || 'cve',
125
+ nid: (data === null || data === void 0 ? void 0 : data.nid) || '',
122
126
  errataData: getFixedErrataByProduct(((_d = data === null || data === void 0 ? void 0 : data.field_cve_releases_txt) === null || _d === void 0 ? void 0 : _d.object) || [], product, version),
123
127
  });
124
128
  }).filter((d) => d.severity !== 'Low');
@@ -131,6 +135,6 @@ export function useFetchCVEData() {
131
135
  console.error('Error processing CVE data:', error);
132
136
  });
133
137
  // eslint-disable-next-line react-hooks/exhaustive-deps
134
- }, [summary, description, product, version, recommendationState === null || recommendationState === void 0 ? void 0 : recommendationState.allDocs]);
138
+ }, [summary, description, product, version]);
135
139
  return { cveRecommendation };
136
140
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AAmCA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,6BAA6B,EAAE,OAAO,CAAC;IACvC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAmRb,OAAO;EAwC7C"}
1
+ {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AAmCA,UAAU,MAAM;IACZ,yBAAyB,CAAC,EAAE,GAAG,CAAC;IAChC,4BAA4B,EAAE,OAAO,CAAC;IACtC,6BAA6B,EAAE,OAAO,CAAC;IACvC,qCAAqC,EAAE,OAAO,CAAC;IAC/C,aAAa,EAAE,GAAG,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAsSb,OAAO;EAwC7C"}
@@ -57,6 +57,27 @@ export function useWizard(routeProps, props) {
57
57
  return props.userScrolledLabel;
58
58
  };
59
59
  const canChangeAccountInfo = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.ACCOUNT_AND_OWNER);
60
+ const summarizeButtonLabel = () => {
61
+ if (isCaseCreate) {
62
+ const shouldContinue = (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
63
+ !isEmpty(issue);
64
+ return shouldContinue ? t('Continue') : t('See more options');
65
+ }
66
+ else {
67
+ return t('Continue');
68
+ }
69
+ };
70
+ const informationButtonLabel = () => {
71
+ if (!isCaseCreate) {
72
+ (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
73
+ !isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
74
+ ? t('Continue')
75
+ : t('See more options');
76
+ }
77
+ else {
78
+ return t('Continue');
79
+ }
80
+ };
60
81
  // components that are used in wizard steps
61
82
  const appRouteConfugurations = {
62
83
  [AppRouteSections.GET_SUPPORT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.GET_SUPPORT, name: t('Get support'), component: (React.createElement(MainSection, { stepNumber: 1, totalSteps: 6, section: AppRouteSections.GET_SUPPORT, title: t('Why are you opening a case?'), description: t('Select the best category for your issue.') },
@@ -69,16 +90,13 @@ export function useWizard(routeProps, props) {
69
90
  canChangeAccountInfo && !isCaseCreate && (React.createElement(React.Fragment, null,
70
91
  React.createElement(AccountSelector, { "data-tracking-id": "get-support-account-selector" }),
71
92
  React.createElement(OwnerSelector, { "data-tracking-id": "get-support-owner-selector" }))),
72
- React.createElement(ProductSelector, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: false, caseCreateExperience: isCaseCreate })))), canJumpTo: isSectionValidFn(AppRouteSections.SUMMARIZE) || activeSection === AppRouteSections.SUMMARIZE, nextButtonLabel: (summarizeNextButtonLabelLogic() || ((props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) && numFound < 3)) &&
73
- !isEmpty(issue) // do this so that when user refreshes tab and state persists we don't cause edge 'continue' render
74
- ? t('Continue')
75
- : t('See more options') }),
93
+ React.createElement(ProductSelector, { routeProps: routeProps, userSeenRecommendations: props.userSeenRecommendationsfn, userClickedNextonRecommendations: props.userClickedNextonRecommendationsValue, resultsRowRef: props.resultsRowRef, isOnGetSupportPage: false, caseCreateExperience: isCaseCreate })))), canJumpTo: isSectionValidFn(AppRouteSections.SUMMARIZE) || activeSection === AppRouteSections.SUMMARIZE, nextButtonLabel: summarizeButtonLabel() }),
76
94
  [AppRouteSections.TROUBLESHOOT]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.TROUBLESHOOT, name: t('Troubleshoot'), component: (React.createElement(MainSection, { stepNumber: 3, totalSteps: 6, section: AppRouteSections.TROUBLESHOOT, title: t('Recommendations') },
77
95
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
78
96
  alertMessage(),
79
97
  React.createElement(TroubleshootSection, null)))), canJumpTo: isSectionValidFn(AppRouteSections.TROUBLESHOOT || activeSection === AppRouteSections.TROUBLESHOOT) &&
80
98
  (props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) &&
81
- (props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel: isCaseCreate ? t('Continue') : t('Convert to Case') }),
99
+ (props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel: informationButtonLabel() }),
82
100
  [AppRouteSections.DESCRIBE_MORE]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.DESCRIBE_MORE, name: t('Describe more'), component: (React.createElement(MainSection, { stepNumber: 4, totalSteps: 6, section: AppRouteSections.DESCRIBE_MORE, title: React.createElement(React.Fragment, null,
83
101
  t('Case information'),
84
102
  isEmpty(RouteUtils.seBasePath) && isSelectedAccounntSecureSupport && (React.createElement("span", { className: "secured-support" },
@@ -5,6 +5,8 @@ export interface ICVEWorkflowRecommendation {
5
5
  mitigation: any;
6
6
  details: string;
7
7
  cveLink: string;
8
+ type: string;
9
+ nid: string;
8
10
  errataData: IErrataDetails[];
9
11
  }
10
12
  interface IAdvisory {
@@ -1 +1 @@
1
- {"version":3,"file":"caseCreationWorkflows.d.ts","sourceRoot":"","sources":["../../../src/models/caseCreationWorkflows.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"caseCreationWorkflows.d.ts","sourceRoot":"","sources":["../../../src/models/caseCreationWorkflows.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB"}
@@ -176,7 +176,8 @@ export declare enum CaseReducerConstants {
176
176
  resetCaseNoOfCreatedCase = "resetCaseNoOfCreatedCase",
177
177
  setIsPostingRemoteRequestCommentCompleted = "setIsPostingRemoteRequestCommentCompleted",
178
178
  setIsPostingRemoteRequestCommentCompletedError = "setIsPostingRemoteRequestCommentCompletedError",
179
- updateComments = "updateComments"
179
+ updateComments = "updateComments",
180
+ setABTestVarioation = "setABTestVarioation"
180
181
  }
181
182
  export declare const initialCaseState: ICaseState;
182
183
  export interface ICaseState {
@@ -234,6 +235,7 @@ export interface ICaseState {
234
235
  isCasePhoneUpdating?: boolean;
235
236
  cveWorkflowRecommendation?: ICVEWorkflowRecommendation[];
236
237
  isCveModalOpened?: boolean;
238
+ ABTestVarioation?: string;
237
239
  }
238
240
  export interface ICreateCasePayloadType extends ICaseState {
239
241
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseConstNTypes.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseConstNTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,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O,CAAC;IAC7B,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sCAAsC,CAAC,EAAE,OAAO,CAAC;IACjD,kDAAkD,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mCAAmC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;IAChF,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,yBAAyB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;CAAG;AAC7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
@@ -128,6 +128,7 @@ export var CaseReducerConstants;
128
128
  CaseReducerConstants["setIsPostingRemoteRequestCommentCompleted"] = "setIsPostingRemoteRequestCommentCompleted";
129
129
  CaseReducerConstants["setIsPostingRemoteRequestCommentCompletedError"] = "setIsPostingRemoteRequestCommentCompletedError";
130
130
  CaseReducerConstants["updateComments"] = "updateComments";
131
+ CaseReducerConstants["setABTestVarioation"] = "setABTestVarioation";
131
132
  })(CaseReducerConstants || (CaseReducerConstants = {}));
132
133
  export const initialCaseState = {
133
134
  enableGetSupportProductVersion: true,
@@ -230,6 +231,7 @@ export const initialCaseState = {
230
231
  isCasePhoneUpdating: false,
231
232
  cveWorkflowRecommendation: [],
232
233
  isCveModalOpened: true,
234
+ ABTestVarioation: '',
233
235
  };
234
236
  export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
235
237
  export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
@@ -49,4 +49,5 @@ export declare function getCustomNotificationEmails(dispatch: CaseReducerDispatc
49
49
  export declare function updateEmailListState(dispatch: CaseReducerDispatchType, email: string, customEmailsList: IApiResponseDetails<Partial<ICaseNotificationAddresses[]>>, callback: (email: string) => ICaseNotificationAddresses[]): void;
50
50
  export declare function getVersionsDetails(dispatch: CaseReducerDispatchType, product: string): Promise<void>;
51
51
  export declare const setRemoteRiderFlag: (dispatch: CaseReducerDispatchType, flag: boolean) => void;
52
+ export declare const setABTestVarioation: (dispatch: CaseReducerDispatchType, ABTestVarioation: string) => void;
52
53
  //# sourceMappingURL=CaseReducer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseReducer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAEtH,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAA+B,MAAM,qCAAqC,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAWxD,OAAO,EAEH,uBAAuB,EAEvB,UAAU,EAGb,MAAM,mBAAmB,CAAC;AAS3B,OAAO,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;AAEF,wBAAsB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,iBAmBtG;AAGD,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAC5E,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,0BAA0B,EAAE,QAO5D;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,iBAiB1F;AAED,eAAO,MAAM,kBAAkB,aAAc,uBAAuB,QAAQ,OAAO,SAKlF,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,uBAAuB,oBAAoB,MAAM,SAK9F,CAAC"}
@@ -145,6 +145,9 @@ export const caseReducer = (pState, action) => {
145
145
  case CaseReducerConstants.setIsPostingRemoteRequestCommentCompletedError: {
146
146
  return Object.assign(Object.assign({}, pState), { isPostingRemoteRequestCommentCompleted: false, isPostingRemoteRequestCommentCompletedErrorMessage: action.payload.isPostingRemoteRequestCommentCompletedErrorMessage });
147
147
  }
148
+ case CaseReducerConstants.setABTestVarioation: {
149
+ return Object.assign(Object.assign({}, pState), { ABTestVarioation: action.payload.ABTestVarioation });
150
+ }
148
151
  default: {
149
152
  return pState;
150
153
  }
@@ -921,3 +924,9 @@ export const setRemoteRiderFlag = (dispatch, flag) => {
921
924
  payload: { caseDetails: { remoteSessionTermsAcked: flag } },
922
925
  });
923
926
  };
927
+ export const setABTestVarioation = (dispatch, ABTestVarioation) => {
928
+ dispatch({
929
+ type: CaseReducerConstants.setABTestVarioation,
930
+ payload: { ABTestVarioation },
931
+ });
932
+ };