@rh-support/troubleshoot 2.2.98 → 2.2.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBAoM1C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"RHAssociatesSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/RHAssociatesSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,MAAM,WAAW,MAAM;CAAG;AAG1B,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBAqM1C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -107,12 +107,12 @@ function RHAssociatesSelector(props) {
107
107
  if (!canNotifyRHAssociates)
108
108
  return React.createElement(React.Fragment, null);
109
109
  return (React.createElement(React.Fragment, null, canNotifyRHAssociates && (React.createElement("div", { className: "form-group" },
110
- React.createElement("label", { htmlFor: "get-support-notifications" },
111
- React.createElement(Trans, null, "Red Hat associates")),
112
- React.createElement(ContactSelectorInternal, { className: "push-bottom-narrow", selectedContacts: filter(selectedNotificationContacts, (c) => c.isInternal), showSelectedContacts: true, contactsToExclude: !isEmpty(selectedOwner.data) ? [{ ssoUsername: selectedOwner.data.ssoUsername }] : [], id: "open-case-rh-notifications", name: "open-case-rh-notifications", multiple: true, contactListParams: {
113
- internal: false, // to get non-ldap contacts only
114
- isInternalContact: true,
115
- }, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating, "data-tracking-id": "case-contact-select-rh-watcher" }),
110
+ React.createElement("label", { className: "react-typeahead-label-wrapper", htmlFor: "get-support-notifications" },
111
+ React.createElement(Trans, null, "Red Hat associates"),
112
+ React.createElement(ContactSelectorInternal, { className: "push-bottom-narrow", selectedContacts: filter(selectedNotificationContacts, (c) => c.isInternal), showSelectedContacts: true, contactsToExclude: !isEmpty(selectedOwner.data) ? [{ ssoUsername: selectedOwner.data.ssoUsername }] : [], id: "open-case-rh-notifications", name: "open-case-rh-notifications", multiple: true, contactListParams: {
113
+ internal: false, // to get non-ldap contacts only
114
+ isInternalContact: true,
115
+ }, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating, "data-tracking-id": "case-contact-select-rh-watcher" })),
116
116
  caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-rh-watcher" },
117
117
  React.createElement(Trans, null, "Add me as a watcher"))),
118
118
  caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-v5-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAqB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EAiM9D"}
1
+ {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAoB1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA4L9D"}
@@ -8,13 +8,13 @@ import { useCaseSelector } from '../../context/CaseContext';
8
8
  import { RecommendationStateContext } from '../../context/RecommendationContext';
9
9
  import { RouteContext } from '../../context/RouteContext';
10
10
  import { TCStateContext } from '../../context/TopContentContext';
11
- import { CASE_REFERENCE_NUMBER_LIMIT, CONTACT_INFO_24X7_LIMIT, DESCRIPTION_LENGTH_LIMIT, HOSTNAME_LENGTH_LIMIT, SUMMARY_LENGTH_LIMIT, } from '../../reducers/CaseConstNTypes';
11
+ import { CASE_REFERENCE_NUMBER_LIMIT, CONTACT_INFO_24X7_LIMIT, HOSTNAME_LENGTH_LIMIT, SUMMARY_LENGTH_LIMIT, } from '../../reducers/CaseConstNTypes';
12
12
  import { isCaseInformationSectionValid, isCaseManagementStateValid, isCaseStateValid, isClusterIDValid, isIdeaCaseStateValid, } from '../../reducers/CaseHelpers';
13
13
  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, description, hostname, contactInfo24x7, alternateId, selectedAccountDetails, } = useCaseSelector((state) => ({
17
+ const { caseState, caseType, product, version, contactSSOName, accountNumber, summary, hostname, contactInfo24x7, alternateId, selectedAccountDetails, } = useCaseSelector((state) => ({
18
18
  caseState: state,
19
19
  caseType: state.caseDetails.caseType,
20
20
  product: state.caseDetails.product,
@@ -22,7 +22,6 @@ export function useIsSectionValid(sectionName) {
22
22
  contactSSOName: state.caseDetails.contactSSOName,
23
23
  accountNumber: state.caseDetails.accountNumberRef,
24
24
  summary: state.caseDetails.summary,
25
- description: state.caseDetails.description,
26
25
  hostname: state.caseDetails.hostname,
27
26
  contactInfo24x7: state.caseDetails.contactInfo24x7,
28
27
  alternateId: state.caseDetails.alternateId,
@@ -75,10 +74,7 @@ export function useIsSectionValid(sectionName) {
75
74
  // don't check for entitled product if user is on search intent flow
76
75
  const isEntitledProductLocal = isSearchIntent ? true : isEntitledProduct;
77
76
  return (!recommendationState.isLoadingRecommendations &&
78
- !isEmpty(summary) &&
79
77
  isEntitledProductLocal &&
80
- (summary === null || summary === void 0 ? void 0 : summary.length) <= SUMMARY_LENGTH_LIMIT &&
81
- (description === null || description === void 0 ? void 0 : description.length) <= DESCRIPTION_LENGTH_LIMIT &&
82
78
  isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult));
83
79
  };
84
80
  const isReviewSectionValid = () => {
@@ -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,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAKlB,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,qBAkDjC;kBAlDQ,WAAW;;;AAoDpB,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,cAAc,CAAC;AAInD,OAAO,EAGH,eAAe,EAKlB,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,qBAsDjC;kBAtDQ,WAAW;;;AAwDpB,eAAe,WAAW,CAAC"}
@@ -33,8 +33,7 @@ function WizardAside(props) {
33
33
  const canShowRecommendationTips = showRecommendationTipsSections.includes(activeSection);
34
34
  return (React.createElement("aside", null,
35
35
  React.createElement("section", { className: "grid-aside-content" },
36
- React.createElement(InsightsResults, null),
37
- " ",
36
+ canShowFileUploadWidget() && React.createElement(InsightsResults, null),
38
37
  canShowFileUploadWidget() && React.createElement(FileDiag, { className: "pf-v5-u-mb-md" }),
39
38
  canshowEARuleWidget && React.createElement(EARuleWidget, null),
40
39
  !(isIdea && activeSection === 'submit-case') && (React.createElement(AsideResults, { routeProps: props.routeProps, className: "pf-v5-u-mb-md pf-v5-u-mt-0" })),
@@ -85,7 +85,7 @@ button,
85
85
  }
86
86
 
87
87
  .support-comment.private {
88
- background-color: rgba(238, 0, 0, 0.05);
88
+ background-color: var(--pf-v5-global--palette--red-50);
89
89
  }
90
90
 
91
91
  .support-comment header {
@@ -1 +1 @@
1
- {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;iCAsPG,OAAO;EAwC7C"}
1
+ {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,wBAAgB,SAAS,CAAC,UAAU,KAAA;iCA8OG,OAAO;EAwC7C"}
@@ -38,21 +38,12 @@ export function useWizard(routeProps) {
38
38
  enableNext: false,
39
39
  nextButtonLabel: 'Continue',
40
40
  };
41
- const focusWizardMainPanel = () => {
42
- setTimeout(() => {
43
- var _a;
44
- (_a = document.querySelector('.main-step-content')) === null || _a === void 0 ? void 0 : _a.focus();
45
- }, 250);
46
- };
47
41
  const alertMessage = () => {
48
42
  // alert title and variant based on multiple conditions for two different sections
49
43
  const isLoading = topContent.isFetching || (isLoadingRecommendations && summary);
50
44
  const title = isLoading
51
45
  ? t('Please wait while recommendations are loading')
52
46
  : t('Please address the errors to proceed');
53
- if (isNextBtnClickedToShowValidationError) {
54
- focusWizardMainPanel();
55
- }
56
47
  return (React.createElement(AlertMessage, { show: isNextBtnClickedToShowValidationError && !isActiveSectionValid, variant: (isLoadingRecommendations && summary) || topContent.isFetching ? AlertType.INFO : AlertType.DANGER, isInline: true, title: title, className: "pf-v5-u-mb-lg", "data-tracking-id": isLoading ? 'wait-recommendations-loading' : 'proceed-address-errors' }));
57
48
  };
58
49
  // components that are used in wizard steps
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHelpers.d.ts","sourceRoot":"","sources":["../../../src/reducers/CaseHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qDAAqD,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAmB3D,OAAO,EAUH,UAAU,EAeb,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,sBAAsB,SAAU,mBAAmB,EAAE,wBAMjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAAgB,WAAW,KAAG,MAOrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAS,mBAAmB,SAAS,MAAM,sBAyB9E,CAAC;AAIF,eAAO,MAAM,qBAAqB,UACvB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,kBACb,MAAM,YACZ,MAAM,YACN,MAAM,KACjB,MAyBF,CAAC;AAIF,eAAO,MAAM,oBAAoB,UACtB,MAAM,gBACC,MAAM,uBACC,MAAM,yBACJ,MAAM,KAC9B,MAQF,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AAQ,eAAe,CAAC,KAC/C,OAmBF,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,UAAU,gBACP,YAAY,iBACZ,OAAO,KACtB,QAAQ,YAAY,CA6EtB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAsB,YAAY,EAAE,KAAG,YAAY,EAEvF,CAAC;AACF,eAAO,MAAM,yBAAyB,qBAAsB,YAAY,EAAE,KAAG,OAE5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gBACrB,YAAY,6BACE,MAAM,mBAChB,MAAM,KACxB,QAAQ,YAAY,CAiCtB,CAAC;AACF,eAAO,MAAM,yBAAyB,gBACrB,QAAQ,YAAY,CAAC,gCACJ,QAAQ,EAAE,KACzC,eAiDF,CAAC"}
@@ -183,13 +183,6 @@ export const isIdeaCaseStateValid = (caseState, loggedInUserJwtToken) => {
183
183
  export const isCaseManagementStateValid = (caseState, loggedInUserJwtToken) => {
184
184
  const case_details = caseState.caseDetails;
185
185
  return (isEmpty(case_details.caseNumber) &&
186
- !caseState.hasLargeCaseDescription &&
187
- !isEmpty(case_details.product) &&
188
- !isEmpty(case_details.version) &&
189
- !isEmpty(case_details.summary) &&
190
- case_details.summary.length <= SUMMARY_LENGTH_LIMIT &&
191
- !isEmpty(case_details.description) &&
192
- case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
193
186
  !isEmpty(case_details.severity) &&
194
187
  (caseState.selectedAccountDetails.data.requireCGroupOnCreate
195
188
  ? !isEmpty(case_details.groupNumber) && case_details.groupNumber !== '-1'
@@ -203,10 +196,6 @@ export const isCaseInformationSectionValid = (caseState, loggedInUserJwtToken) =
203
196
  //checks to ensure the ktquestion section is valid
204
197
  return (isEmpty(case_details.caseNumber) &&
205
198
  !caseState.hasLargeCaseDescription &&
206
- !isEmpty(case_details.product) &&
207
- !isEmpty(case_details.version) &&
208
- !isEmpty(case_details.summary) &&
209
- case_details.summary.length <= SUMMARY_LENGTH_LIMIT &&
210
199
  !isEmpty(case_details.description) &&
211
200
  case_details.description.length <= DESCRIPTION_LENGTH_LIMIT &&
212
201
  !isEmpty(case_details.timeFramesAndUrgency) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.98",
3
+ "version": "2.2.100",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -60,8 +60,8 @@
60
60
  "@progress/kendo-licensing": "1.3.5",
61
61
  "@progress/kendo-react-pdf": "^5.16.0",
62
62
  "@redux-devtools/extension": "^3.3.0",
63
- "@rh-support/components": "2.1.50",
64
- "@rh-support/react-context": "2.1.56",
63
+ "@rh-support/components": "2.1.51",
64
+ "@rh-support/react-context": "2.1.57",
65
65
  "@rh-support/types": "2.0.3",
66
66
  "@rh-support/user-permissions": "2.1.37",
67
67
  "@rh-support/utils": "2.1.27",
@@ -131,5 +131,5 @@
131
131
  "defaults and supports es6-module",
132
132
  "maintained node versions"
133
133
  ],
134
- "gitHead": "c845e2834052a8d7bbeaa4ca7ba325ca3f869a29"
134
+ "gitHead": "3b669f23c094069a3e7d042cfdffd716407734d3"
135
135
  }