@rh-support/troubleshoot 2.6.23 → 2.6.24

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 (104) hide show
  1. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts +0 -1
  2. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  3. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +5 -31
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +34 -33
  6. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +1 -2
  8. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  9. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +0 -1
  10. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +22 -16
  12. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +1 -1
  13. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +96 -52
  15. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +21 -24
  17. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -4
  18. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +8 -0
  19. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  20. package/lib/esm/components/CaseInformation/Fts.js +2 -6
  21. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  22. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  23. package/lib/esm/components/CaseInformation/SupportLevel.js +1 -1
  24. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  25. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +13 -1
  26. package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
  27. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +8 -5
  28. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
  29. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +7 -7
  30. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  31. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +1 -1
  32. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  33. package/lib/esm/components/Cve/CveModal.js +3 -2
  34. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  35. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +10 -1
  36. package/lib/esm/components/Recommendations/AsideResults.js +1 -1
  37. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
  38. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -4
  39. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
  40. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +3 -1
  41. package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
  42. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +9 -2
  43. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
  44. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +4 -4
  45. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  46. package/lib/esm/components/Recommendations/RulesModal.js +7 -4
  47. package/lib/esm/components/Recommendations/WatsonxAiIcon.js +1 -1
  48. package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
  49. package/lib/esm/components/Suggestions/Suggestions.js +17 -12
  50. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  51. package/lib/esm/components/Suggestions/TopContent.js +13 -13
  52. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +0 -5
  53. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  54. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -86
  55. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +1 -0
  56. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
  57. package/lib/esm/components/shared/input/ContactSelectorInternal.js +6 -1
  58. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  59. package/lib/esm/components/shared/useIsSectionValid.js +7 -1
  60. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  61. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +3 -1
  62. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  63. package/lib/esm/components/wizardLayout/WizardLayout.js +4 -5
  64. package/lib/esm/components/wizardLayout/WizardMain.d.ts +1 -3
  65. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  66. package/lib/esm/components/wizardLayout/WizardMain.js +18 -124
  67. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +2 -4
  68. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  69. package/lib/esm/components/wizardLayout/WizardNavigation.js +16 -13
  70. package/lib/esm/components/wizardLayout/index.d.ts +0 -1
  71. package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
  72. package/lib/esm/components/wizardLayout/index.js +0 -1
  73. package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
  74. package/lib/esm/context/RootTroubleshootProvider.js +6 -8
  75. package/lib/esm/css/app.css +5 -4
  76. package/lib/esm/css/case.css +12 -0
  77. package/lib/esm/hooks/useWizard.d.ts +0 -4
  78. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  79. package/lib/esm/hooks/useWizard.js +1 -1
  80. package/lib/esm/reducers/CaseConstNTypes.d.ts +0 -2
  81. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  82. package/lib/esm/reducers/CaseConstNTypes.js +0 -2
  83. package/lib/esm/scss/_main.scss +13 -0
  84. package/lib/esm/scss/_pf-overrides.scss +10 -0
  85. package/package.json +6 -7
  86. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts +0 -7
  87. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts.map +0 -1
  88. package/lib/esm/components/TroubleshootSection/AskRedHat.js +0 -73
  89. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts +0 -9
  90. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts.map +0 -1
  91. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.js +0 -9
  92. package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts +0 -9
  93. package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts.map +0 -1
  94. package/lib/esm/components/TroubleshootSection/icons/StarIcon.js +0 -17
  95. package/lib/esm/context/AIResponseContext.d.ts +0 -10
  96. package/lib/esm/context/AIResponseContext.d.ts.map +0 -1
  97. package/lib/esm/context/AIResponseContext.js +0 -26
  98. package/lib/esm/css/AskRedHat.css +0 -333
  99. package/lib/esm/reducers/AIResponseConstNTypes.d.ts +0 -48
  100. package/lib/esm/reducers/AIResponseConstNTypes.d.ts.map +0 -1
  101. package/lib/esm/reducers/AIResponseConstNTypes.js +0 -16
  102. package/lib/esm/reducers/AIResponseReducer.d.ts +0 -9
  103. package/lib/esm/reducers/AIResponseReducer.d.ts.map +0 -1
  104. package/lib/esm/reducers/AIResponseReducer.js +0 -43
@@ -1,12 +1,3 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
1
  var __rest = (this && this.__rest) || function (s, e) {
11
2
  var t = {};
12
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -18,20 +9,16 @@ var __rest = (this && this.__rest) || function (s, e) {
18
9
  }
19
10
  return t;
20
11
  };
21
- import { askRHDirectAIResponse, getRHDirectStatusCheck, } from '@ifd-ui/ask-redhat-core';
22
- import { useWizardContext, Wizard, WizardNav, WizardNavItem, WizardStep } from '@patternfly/react-core';
12
+ import { Wizard, WizardNav, WizardNavItem, WizardStep, } from '@patternfly/react-core';
23
13
  import { LoadingIndicator } from '@rh-support/components';
24
14
  import isEqual from 'lodash/isEqual';
25
15
  import React, { Suspense, useContext, useEffect, useRef, useState } from 'react';
26
16
  import { useTranslation } from 'react-i18next';
27
17
  import { Route } from 'react-router-dom';
28
- import { useAIResponseDispatch } from '../../context/AIResponseContext';
29
18
  import { useCaseSelector } from '../../context/CaseContext';
30
19
  import { RecommendationDispatchContext } from '../../context/RecommendationContext';
31
20
  import { RouteContext, RouteDispatchContext } from '../../context/RouteContext';
32
21
  import { useWizard } from '../../hooks/useWizard';
33
- import { receivedAIResponse, receivedAIResponseError, requestAIResponse } from '../../reducers/AIResponseReducer';
34
- import { appSourceId_ARH, excludedCaseTypesforARH } from '../../reducers/CaseConstNTypes';
35
22
  import { RecommendationsConstants } from '../../reducers/RecommendationsReducer';
36
23
  import { AppRouteSections } from '../../reducers/RouteConstNTypes';
37
24
  import { setActiveSectionChanged, updateisNextBtnClickedToShowValidationError } from '../../reducers/RouteReducer';
@@ -40,54 +27,22 @@ import SubmitCase from '../SubmitCase/SubmitCase';
40
27
  import MainSection from './MainSection';
41
28
  import NewFeatureModal from './NewFeatureModal';
42
29
  import WizardNavigation from './WizardNavigation';
43
- // Mapping for case type display text in AI questions
44
- const CASE_TYPE_AI_TEXT_MAP = {
45
- Other: 'Something',
46
- };
47
- const getCaseTypeAIText = (caseType) => {
48
- return CASE_TYPE_AI_TEXT_MAP[caseType] || caseType;
49
- };
50
- const generateCaseTypePrefix = (activeSection, caseType) => {
51
- if (activeSection === AppRouteSections.TROUBLESHOOT) {
52
- return '';
53
- }
54
- const helpWith = getCaseTypeAIText(caseType);
55
- return `I want help with ${helpWith}. `;
56
- };
57
- //generate AI question based on case details
58
- const generateAIQuestion = (activeSection, product, version, summary, issue, caseType) => {
59
- const baseMessage = `My issue is primarily related to ${product} ${version}. I would title my problem: ${summary}. More details are as follows: ${issue}.`;
60
- const prefix = generateCaseTypePrefix(activeSection, caseType);
61
- return `${prefix}${baseMessage}`;
62
- };
63
30
  function WizardMain(props) {
64
31
  const [showRestFlag, setShowRestFlag] = useState(false);
65
- const [aiServicesAvailable, setAIServicesAvailable] = useState(false); // default to false until services are confirmed available
66
32
  const recommendationDispatch = useContext(RecommendationDispatchContext);
67
- const { isCreatingCase, product, version, summary, issue, caseType } = useCaseSelector((state) => ({
33
+ const { isCreatingCase } = useCaseSelector((state) => ({
68
34
  isCreatingCase: state.isCreatingCase,
69
- product: state.caseDetails.product,
70
- version: state.caseDetails.version,
71
- summary: state.caseDetails.summary,
72
- issue: state.caseDetails.issue,
73
- caseType: state.caseDetails.caseType,
74
35
  }), isEqual);
75
- const { routeState: { isCaseCreate, activeSection }, } = useContext(RouteContext);
76
- const aiResponseDispatch = useAIResponseDispatch();
77
- const isTroubleshootSection = activeSection === AppRouteSections.TROUBLESHOOT;
78
- const isResourcesSection = activeSection === AppRouteSections.RESOURCES;
79
- const isSummarizeSection = activeSection === AppRouteSections.SUMMARIZE;
36
+ const { routeState: { isCaseCreate }, } = useContext(RouteContext);
80
37
  const [userSeenRecommendations, setUserSeenRecommendations] = useState(false);
81
38
  const [userClickedNextonRecommendations, setUserClickedNextonRecommendations] = useState(false);
82
39
  const [userScrolledLabel, setUserScrolledLabel] = useState(false);
83
40
  const [userCanNavigateToTroubleshoot, setUserCanNavigateToTroubleshoot] = useState(false);
41
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
84
42
  const [isNextButtonClicked, setIsNextButtonClicked] = useState(false);
85
43
  const isNextButtonClickedRef = useRef(false);
86
44
  const isBackButtonClickedRef = useRef(false);
87
45
  const resultsRowRef = useRef(null);
88
- const handleChatWithAIClick = () => {
89
- props.setIsAIChatMode(true);
90
- };
91
46
  const { getStepsSequece } = useWizard(props.routeProps, {
92
47
  userSeenRecommendationsfn: setUserSeenRecommendations,
93
48
  userSeenRecommendationsValue: userSeenRecommendations,
@@ -95,48 +50,12 @@ function WizardMain(props) {
95
50
  userClickedNextonRecommendationsValue: userClickedNextonRecommendations,
96
51
  resultsRowRef: resultsRowRef,
97
52
  userScrolledLabel: userScrolledLabel,
98
- isAIChatMode: props.isAIChatMode,
99
- setIsAIChatMode: props.setIsAIChatMode,
100
- onChatWithAIClick: handleChatWithAIClick,
101
- aiServicesAvailable: aiServicesAvailable,
102
53
  });
103
54
  const dispatchToRouteReducer = useContext(RouteDispatchContext);
104
55
  const { t } = useTranslation();
105
56
  useEffect(() => {
106
57
  setActiveSectionChanged(dispatchToRouteReducer, isCaseCreate ? AppRouteSections.GET_SUPPORT : AppRouteSections.TROUBLESHOOT, '');
107
58
  }, [isCaseCreate, dispatchToRouteReducer]);
108
- useEffect(() => {
109
- if (!activeSection) {
110
- return;
111
- }
112
- const isRelevantSection = isTroubleshootSection || isSummarizeSection || isResourcesSection;
113
- const isAllowedCaseType = !excludedCaseTypesforARH.includes(caseType || '');
114
- if (!isRelevantSection || !isAllowedCaseType) {
115
- if (aiServicesAvailable) {
116
- setAIServicesAvailable(false);
117
- }
118
- return;
119
- }
120
- // check if ARH services are available
121
- if (!aiServicesAvailable) {
122
- const checkAIServices = () => __awaiter(this, void 0, void 0, function* () {
123
- var _a, _b;
124
- const config = {
125
- appSourceId: appSourceId_ARH,
126
- authToken: (_b = (_a = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _a === void 0 ? void 0 : _a.getEncodedToken()) !== null && _b !== void 0 ? _b : '',
127
- };
128
- try {
129
- yield getRHDirectStatusCheck(config);
130
- setAIServicesAvailable(true);
131
- }
132
- catch (error) {
133
- setAIServicesAvailable(false);
134
- }
135
- });
136
- checkAIServices();
137
- }
138
- // eslint-disable-next-line react-hooks/exhaustive-deps
139
- }, [activeSection, caseType, isCaseCreate, aiServicesAvailable]);
140
59
  const renderSubmitCasePage = () => (React.createElement(MainSection, { section: AppRouteSections.SUBMIT_CASE, title: t('Case has been submitted'), isLoading: isCreatingCase, description: t("We'll be in contact with you shortly. Look for updates on this case."), className: "case-submit-page" },
141
60
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
142
61
  React.createElement(SubmitCase, { routeProps: props.routeProps }))));
@@ -181,51 +100,26 @@ function WizardMain(props) {
181
100
  isBackButtonClickedRef.current = false;
182
101
  setIsNextButtonClicked(false);
183
102
  };
184
- const handleReturnToCaseCreation = () => {
185
- props.setIsAIChatMode(false);
186
- };
187
103
  const customNav = (isExpanded, steps, activeStep, goToStepByIndex) => (React.createElement(WizardNav, { isExpanded: isExpanded }, steps.map((step) => {
188
104
  return (React.createElement(WizardNavItem, { key: step.id, id: step.id, content: step.name, isCurrent: activeStep.id === step.id, isDisabled: !step.canJumpTo, stepIndex: step.index, onClick: () => goToStepByIndex(step.index) }));
189
105
  })));
190
- const CustomFooter = () => {
191
- var _a, _b;
192
- const { activeStep, goToNextStep, goToPrevStep, steps, goToStepByIndex } = useWizardContext(); // Correctly using the context
193
- const config = {
194
- appSourceId: appSourceId_ARH,
195
- authToken: (_b = (_a = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _a === void 0 ? void 0 : _a.getEncodedToken()) !== null && _b !== void 0 ? _b : '',
196
- };
106
+ const CustomFooter = (activeStep, goToNextStep, goToPrevStep) => {
197
107
  useEffect(() => {
198
- if (steps.length > 2 && activeStep.index === 2 && isNextButtonClicked) {
199
- goToStepByIndex(3);
108
+ if (steps.length > 2 && (activeStep === null || activeStep === void 0 ? void 0 : activeStep.index) === 2 && isNextButtonClicked) {
109
+ goToNextStep({});
200
110
  }
201
- }, [activeStep, steps.length, goToStepByIndex]);
202
- const handleContinueClick = () => __awaiter(this, void 0, void 0, function* () {
203
- const shouldCallAPI = (isTroubleshootSection || isSummarizeSection) && !excludedCaseTypesforARH.includes(caseType || '');
204
- // Navigate to next step first
205
- isNextButtonClickedRef.current = true;
206
- setIsNextButtonClicked(true);
207
- goToNextStep();
208
- focusWizardMainPanel();
209
- if (shouldCallAPI) {
210
- const detailedQuestion = generateAIQuestion(activeSection, product, version, summary, issue, caseType || '');
211
- const useAIServices = aiServicesAvailable;
212
- if (useAIServices) {
213
- aiResponseDispatch(requestAIResponse(detailedQuestion));
214
- try {
215
- const response = yield askRHDirectAIResponse(detailedQuestion, config);
216
- aiResponseDispatch(receivedAIResponse(response));
217
- }
218
- catch (error) {
219
- aiResponseDispatch(receivedAIResponseError((error === null || error === void 0 ? void 0 : error.message) || 'Failed to get AI response'));
220
- }
221
- }
222
- }
223
- });
224
- return (React.createElement(WizardNavigation, { routeProps: props.routeProps, onNext: handleContinueClick, onBack: () => {
111
+ // eslint-disable-next-line react-hooks/exhaustive-deps
112
+ }, [activeStep, steps.length, isNextButtonClicked, goToNextStep]);
113
+ return (React.createElement(WizardNavigation, { routeProps: props.routeProps, onNext: (e) => {
114
+ isNextButtonClickedRef.current = true;
115
+ setIsNextButtonClicked(true);
116
+ goToNextStep(e);
117
+ focusWizardMainPanel();
118
+ }, onBack: (e) => {
225
119
  isBackButtonClickedRef.current = true;
226
- goToPrevStep();
120
+ goToPrevStep(e);
227
121
  focusWizardMainPanel();
228
- }, activeStep: activeStep, onSubmit: onSubmit, confirmSupportModal: props.confirmSupportModal, onShowRestUpdate: (flag) => setShowRestFlag(flag), userSeenRecommendations: userSeenRecommendations, setUserSeenRecommendations: setUserSeenRecommendations, userClickedNextonRecommendationsFn: setUserClickedNextonRecommendations, userClickedNextonRecommendationsValue: userClickedNextonRecommendations, setUserCanNavigateToTroubleshoot: setUserCanNavigateToTroubleshoot, resultsRowRef: resultsRowRef, setUserScrolledLabel: setUserScrolledLabel, isAIChatMode: props.isAIChatMode, onReturnToCaseCreation: handleReturnToCaseCreation }));
122
+ }, activeStep: activeStep, onSubmit: onSubmit, confirmSupportModal: props.confirmSupportModal, onShowRestUpdate: (flag) => setShowRestFlag(flag), userSeenRecommendations: userSeenRecommendations, setUserSeenRecommendations: setUserSeenRecommendations, userClickedNextonRecommendationsFn: setUserClickedNextonRecommendations, userClickedNextonRecommendationsValue: userClickedNextonRecommendations, setUserCanNavigateToTroubleshoot: setUserCanNavigateToTroubleshoot, resultsRowRef: resultsRowRef, setUserScrolledLabel: setUserScrolledLabel }));
229
123
  };
230
124
  const steps = getStepsSequece(showRestFlag);
231
125
  const wizardSteps = steps.map((step) => {
@@ -236,7 +130,7 @@ function WizardMain(props) {
236
130
  // in useWizard file then add it to step squences in RouteConstNTypes
237
131
  return (React.createElement(React.Fragment, null,
238
132
  React.createElement(NewFeatureModal, null),
239
- steps.length !== 0 && (React.createElement(Route, { path: `${RouteUtils.seBasePath}/(${steps[0].id}|describe-issue|open-case)`, render: () => (React.createElement(Wizard, { isVisitRequired: true, nav: customNav, navAriaLabel: ` navAriaLabel steps `, footer: React.createElement(CustomFooter, null), onStepChange: onCurrentStepChanged }, wizardSteps)) })),
133
+ steps.length !== 0 && (React.createElement(Route, { path: `${RouteUtils.seBasePath}/(${steps[0].id}|describe-issue|open-case)`, render: () => (React.createElement(Wizard, { isVisitRequired: true, nav: customNav, navAriaLabel: ` navAriaLabel steps `, footer: CustomFooter, onStepChange: onCurrentStepChanged }, wizardSteps)) })),
240
134
  React.createElement(Route, { exact: true, path: `${RouteUtils.seBasePath}/${AppRouteSections.SUBMIT_CASE}`, render: () => renderSubmitCasePage() })));
241
135
  }
242
136
  export default WizardMain;
@@ -3,8 +3,8 @@ import { RouteComponentProps } from 'react-router-dom';
3
3
  import { IRouteUrlParams, ISectionConfiguration } from '../../reducers/RouteConstNTypes';
4
4
  interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
- onNext: () => void;
7
- onBack: () => void;
6
+ onNext: (e: React.MouseEvent<HTMLButtonElement>) => void;
7
+ onBack: (e: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  activeStep: Partial<ISectionConfiguration>;
9
9
  onSubmit: () => void;
10
10
  confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
@@ -16,8 +16,6 @@ interface IProps {
16
16
  setUserCanNavigateToTroubleshoot: (value: React.SetStateAction<boolean>) => void;
17
17
  resultsRowRef?: any;
18
18
  setUserScrolledLabel: (value: React.SetStateAction<boolean>) => void;
19
- isAIChatMode?: boolean;
20
- onReturnToCaseCreation?: () => void;
21
19
  }
22
20
  declare function WizardNavigation(props: IProps): React.JSX.Element;
23
21
  declare namespace WizardNavigation {
@@ -1 +1 @@
1
- {"version":3,"file":"WizardNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardNavigation.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,EAAoB,eAAe,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAM3G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,MAAM,IA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,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,MAAM,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,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,CAAC;CACxE;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBA8UtC;kBA9UQ,gBAAgB;;;AAgVzB,eAAe,gBAAgB,CAAC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { pcm } from '@cee-eng/hydrajs';
11
11
  import { Button, ButtonVariant, WizardFooterWrapper } from '@patternfly/react-core';
12
- import { useFetch } from '@rh-support/components';
12
+ import { useFetch, usePrevious } from '@rh-support/components';
13
13
  import { GlobalMetadataStateContext, useCanCreateCase } from '@rh-support/react-context';
14
14
  import { dtmTrackEventCaseCreationStepEncountered, getResTypeFromUrl, PreviousToNewCaseTypeMap, scrollIntoView, } from '@rh-support/utils';
15
15
  import find from 'lodash/find';
@@ -51,6 +51,7 @@ function WizardNavigation(props) {
51
51
  const { activeSectionError, isSectionValidFn } = useIsSectionValid(activeSection);
52
52
  const [isRecsModalVisible, setIsRecsModalVisible] = useState(false);
53
53
  const previousRecommendationTop = useRef(0);
54
+ const previousStep = usePrevious(props.activeStep);
54
55
  const { request: resolveSessionRequest } = useFetch(pcm.preCase.session.resolveSession);
55
56
  const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
56
57
  const { SessionResourceSource } = pcm.preCase.session;
@@ -59,12 +60,15 @@ function WizardNavigation(props) {
59
60
  }), isEqual);
60
61
  const caseDispatch = useCaseDispatch();
61
62
  useEffect(() => {
62
- var _a;
63
+ var _a, _b;
64
+ if ((previousStep === null || previousStep === void 0 ? void 0 : previousStep.id) === ((_a = props.activeStep) === null || _a === void 0 ? void 0 : _a.id)) {
65
+ return;
66
+ }
63
67
  const isCreatingCase = RouteUtils.getQueryParams(props.routeProps).caseCreate === 'true';
64
68
  dtmTrackEventCaseCreationStepEncountered(isCreatingCase,
65
69
  // @ts-ignore
66
70
  props.activeStep.name, props.activeStep.id === AppRouteSections.GET_SUPPORT ||
67
- props.activeStep.id === AppRouteSections.TROUBLESHOOT, (_a = caseState.caseDetails) === null || _a === void 0 ? void 0 : _a.caseNumber, PreviousToNewCaseTypeMap[caseState.caseDetails.caseType], caseState.caseDetails.summary, caseState.caseDetails.product, caseState.caseDetails.version);
71
+ props.activeStep.id === AppRouteSections.TROUBLESHOOT, (_b = caseState.caseDetails) === null || _b === void 0 ? void 0 : _b.caseNumber, PreviousToNewCaseTypeMap[caseState.caseDetails.caseType], caseState.caseDetails.summary, caseState.caseDetails.product, caseState.caseDetails.version);
68
72
  if (props.activeStep.id === AppRouteSections.RESOURCES) {
69
73
  window.scrollTo({
70
74
  top: 0,
@@ -72,7 +76,7 @@ function WizardNavigation(props) {
72
76
  });
73
77
  }
74
78
  // eslint-disable-next-line react-hooks/exhaustive-deps
75
- }, [props.activeStep.id]);
79
+ }, [previousStep === null || previousStep === void 0 ? void 0 : previousStep.id, props.activeStep.id]);
76
80
  const [hasUserScrolled, setHasUserScrolled] = useState(false);
77
81
  useEffect(() => {
78
82
  if (props.activeStep.id !== (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT) ||
@@ -135,7 +139,7 @@ function WizardNavigation(props) {
135
139
  }
136
140
  };
137
141
  }, [recommendationState.numFound, hasUserScrolled, props, isCaseCreate]);
138
- const onNext = () => {
142
+ const onNext = (e) => {
139
143
  var _a;
140
144
  updateisNextBtnClickedToShowValidationError(dispatchToRouteReducer, true);
141
145
  //handle the new changes for 13406:
@@ -171,19 +175,19 @@ function WizardNavigation(props) {
171
175
  // to show all steps, a delay needed in order to steps array
172
176
  // to be updated
173
177
  window.setTimeout(() => {
174
- props.onNext && props.onNext();
178
+ props.onNext && props.onNext(e);
175
179
  }, 10);
176
180
  }
177
181
  else {
178
- props.onNext && props.onNext();
182
+ props.onNext && props.onNext(e);
179
183
  }
180
184
  }
181
185
  return;
182
186
  };
183
- const onBack = () => {
187
+ const onBack = (e) => {
184
188
  if (props.activeStep.hidRestOnBack)
185
189
  props.onShowRestUpdate(false);
186
- props.onBack();
190
+ props.onBack(e);
187
191
  };
188
192
  const onRecsFeedbackModalToggle = () => {
189
193
  setIsRecsModalVisible((visible) => !visible);
@@ -249,10 +253,9 @@ function WizardNavigation(props) {
249
253
  // To handle entitled products
250
254
  return (React.createElement(React.Fragment, null,
251
255
  React.createElement(WizardFooterWrapper, null,
252
- props.isAIChatMode ? (React.createElement(Button, { onClick: props.onReturnToCaseCreation, variant: "link", className: "return-to-case-btn" }, t('Return to case creation'))) : (React.createElement(React.Fragment, null,
253
- 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", disabled: isDisabledGoBack() }, t('Go back'))),
254
- 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)),
255
- activeSection === AppRouteSections.RESOURCES && 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'))))),
256
+ 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", disabled: isDisabledGoBack() }, t('Go back'))),
257
+ 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)),
258
+ activeSection === AppRouteSections.RESOURCES && 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'))),
256
259
  React.createElement(RecommendationFeedbackModal, { isModalOpen: isRecsModalVisible, handleModalToggle: onRecsFeedbackModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
257
260
  activeSectionError ? (React.createElement("small", { className: "pf-v6-u-align-self-center pf-v6-u-ml-md text-red" }, activeSectionError)) : null)));
258
261
  }
@@ -2,7 +2,6 @@ import 'react-bootstrap-typeahead/css/Typeahead.css';
2
2
  import '../../css/app.css';
3
3
  import '../../css/pagination.css';
4
4
  import '../../css/productSelector.css';
5
- import '../../css/AskRedHat.css';
6
5
  import '../../css/results.css';
7
6
  import '../shared/fileUpload/css/fileSelector.css';
8
7
  import React from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AACvC,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AAGnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,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,eAAO,MAAM,YAAY,UAAW,MAAM,sBAYzC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AACvC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2CAA2C,CAAC;AAGnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAGlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,SAAS,EAAE,GAAG,CAAC;QACf,oBAAoB,EAAE,GAAG,CAAC;QAC1B,MAAM,EAAE,GAAG,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,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,eAAO,MAAM,YAAY,UAAW,MAAM,sBAYzC,CAAC"}
@@ -2,7 +2,6 @@ import 'react-bootstrap-typeahead/css/Typeahead.css';
2
2
  import '../../css/app.css';
3
3
  import '../../css/pagination.css';
4
4
  import '../../css/productSelector.css';
5
- import '../../css/AskRedHat.css';
6
5
  import '../../css/results.css';
7
6
  import '../shared/fileUpload/css/fileSelector.css';
8
7
  import { useDocumentTitle } from '@rh-support/components';
@@ -1 +1 @@
1
- {"version":3,"file":"RootTroubleshootProvider.d.ts","sourceRoot":"","sources":["../../../src/context/RootTroubleshootProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACzC;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,qBAoBrD"}
1
+ {"version":3,"file":"RootTroubleshootProvider.d.ts","sourceRoot":"","sources":["../../../src/context/RootTroubleshootProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACzC;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,qBAkBrD"}
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AttachmentContextProvider } from '../components/shared/fileUpload/reducer/AttachmentReducerContext';
3
- import { AIResponseContextProvider } from './AIResponseContext';
4
3
  import { CaseContextProvider } from './CaseContext';
5
4
  import { ClusterRecommendationsContextProvider } from './ClusterRecommendationsContext';
6
5
  import { RecommendationContextProvider } from './RecommendationContext';
@@ -11,11 +10,10 @@ import { TCContextProvider } from './TopContentContext';
11
10
  export function RootTroubleshootProvider(props) {
12
11
  return (React.createElement(RouteContextProvider, null,
13
12
  React.createElement(CaseContextProvider, null,
14
- React.createElement(AIResponseContextProvider, null,
15
- React.createElement(RecommendationContextProvider, null,
16
- React.createElement(AttachmentContextProvider, null,
17
- React.createElement(RulesContextProvider, null,
18
- React.createElement(ClusterRecommendationsContextProvider, null,
19
- React.createElement(TCContextProvider, null,
20
- React.createElement(SessionRestoreContextProvider, null, props.children))))))))));
13
+ React.createElement(RecommendationContextProvider, null,
14
+ React.createElement(AttachmentContextProvider, null,
15
+ React.createElement(RulesContextProvider, null,
16
+ React.createElement(ClusterRecommendationsContextProvider, null,
17
+ React.createElement(TCContextProvider, null,
18
+ React.createElement(SessionRestoreContextProvider, null, props.children)))))))));
21
19
  }
@@ -91,10 +91,6 @@ form textarea.form-control:focus {
91
91
  border-bottom-color: #06c;
92
92
  }
93
93
 
94
- form textarea {
95
- resize: vertical !important;
96
- }
97
-
98
94
  .pf-v6-c-form-control.pf-m-warning {
99
95
  border-bottom-color: var(--pf-v5-c-form-control--m-warning--BorderBottomColor);
100
96
  border-bottom-width: 2px;
@@ -345,6 +341,7 @@ input[type='checkbox'] {
345
341
 
346
342
  .list-flushleft li {
347
343
  margin-bottom: 0.5em;
344
+ list-style-type: none;
348
345
  }
349
346
 
350
347
  .list-flushleft li:last-child {
@@ -448,3 +445,7 @@ input[type='checkbox'] {
448
445
  row-gap: 9px;
449
446
  line-height: 2px;
450
447
  }
448
+
449
+ #additional-information-section textarea {
450
+ resize: none !important;
451
+ }
@@ -363,3 +363,15 @@ input[aria-invalid='true'].pf-v6-c-form-control {
363
363
  min-width: 552px;
364
364
  }
365
365
  }
366
+
367
+ #reopen-case-description {
368
+ resize: none !important;
369
+ }
370
+
371
+ .add-watcher-button {
372
+ max-width: 15rem;
373
+ }
374
+
375
+ .remove-watcher-button {
376
+ max-width: 15rem;
377
+ }
@@ -5,10 +5,6 @@ interface IProps {
5
5
  userClickedNextonRecommendationsValue: boolean;
6
6
  resultsRowRef: any;
7
7
  userScrolledLabel: boolean;
8
- isAIChatMode: boolean;
9
- setIsAIChatMode: (value: boolean) => void;
10
- onChatWithAIClick?: () => void;
11
- aiServicesAvailable: boolean;
12
8
  }
13
9
  export declare function useWizard(routeProps: any, props?: IProps): {
14
10
  getStepsSequece: (showRest?: boolean) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,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;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,SAAS,CAAC,UAAU,KAAA,EAAE,KAAK,CAAC,EAAE,MAAM;iCAgRb,OAAO;EAwC7C"}
1
+ {"version":3,"file":"useWizard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWizard.tsx"],"names":[],"mappings":"AA+BA,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;iCA2Qb,OAAO;EAwC7C"}
@@ -68,7 +68,7 @@ export function useWizard(routeProps, props) {
68
68
  [AppRouteSections.RESOURCES]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.RESOURCES, name: isCaseCreate ? t('Resources') : t('Resources'), component: (React.createElement(MainSection, { stepNumber: 3, totalSteps: 6, section: AppRouteSections.RESOURCES, title: t('Recommendations') },
69
69
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
70
70
  alertMessage(),
71
- React.createElement(TroubleshootSection, { isAIChatMode: props.isAIChatMode, setIsAIChatMode: props.setIsAIChatMode, onChatWithAIClick: props.onChatWithAIClick, aiServicesAvailable: props.aiServicesAvailable })))), canJumpTo: isSectionValidFn(AppRouteSections.RESOURCES || activeSection === AppRouteSections.RESOURCES) &&
71
+ React.createElement(TroubleshootSection, null)))), canJumpTo: isSectionValidFn(AppRouteSections.RESOURCES || activeSection === AppRouteSections.RESOURCES) &&
72
72
  (props === null || props === void 0 ? void 0 : props.userSeenRecommendationsValue) &&
73
73
  (props === null || props === void 0 ? void 0 : props.userCanNavigateToTroubleshoot), nextButtonLabel: isCaseCreate ? t('Continue') : t('Convert to case') }),
74
74
  [AppRouteSections.ADDITIONAL_INFORMATION]: Object.assign(Object.assign({}, defaultRouteConfiguration), { id: AppRouteSections.ADDITIONAL_INFORMATION, name: t('Additional information'), component: (React.createElement(MainSection, { stepNumber: 4, totalSteps: 6, section: AppRouteSections.ADDITIONAL_INFORMATION, title: React.createElement(React.Fragment, null,
@@ -242,6 +242,4 @@ export type ICaseActionType = IAction<CaseReducerConstants, ICreateCasePayloadTy
242
242
  export type CaseReducerDispatchType = Dispatch<ICaseActionType>;
243
243
  export declare const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967811";
244
244
  export declare const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967831";
245
- export declare const excludedCaseTypesforARH: string[];
246
- export declare const appSourceId_ARH = "PCM-001";
247
245
  //# sourceMappingURL=CaseConstNTypes.d.ts.map
@@ -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,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO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C;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,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;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"}
@@ -234,5 +234,3 @@ export const initialCaseState = {
234
234
  };
235
235
  export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
236
236
  export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
237
- export const excludedCaseTypesforARH = ['Feature / Enhancement Request', 'Certification']; //Feature / Enhancement Request casetype is alias for Idea on PCM UI
238
- export const appSourceId_ARH = 'PCM-001';
@@ -994,6 +994,19 @@ svg.pf-v6-u-ml-xs.icon-size {
994
994
  background: #fff;
995
995
  }
996
996
 
997
+ .card-body-wrapper {
998
+ display: flex;
999
+ padding: 16px;
1000
+ flex-direction: column;
1001
+ align-items: flex-start;
1002
+ gap: 16px;
1003
+ border-radius: 0px 0px var(--global-border-radius-medium, 16px) var(--global-border-radius-medium, 16px);
1004
+ border-right: 1px solid var(--global-border-color-default, #c7c7c7);
1005
+ border-bottom: 1px solid var(--global-border-color-default, #c7c7c7);
1006
+ border-left: 1px solid var(--global-border-color-default, #c7c7c7);
1007
+ background: #fff;
1008
+ }
1009
+
997
1010
  .form-group {
998
1011
  span.form-instructions-bold {
999
1012
  font-weight: 600;
@@ -193,6 +193,7 @@
193
193
 
194
194
  .pf-v6-c-accordion {
195
195
  padding: 0;
196
+ margin: 0;
196
197
  .pf-m-expanded ul {
197
198
  list-style-type: none; //Because, FF
198
199
  }
@@ -329,6 +330,10 @@
329
330
  color: #06c;
330
331
  }
331
332
 
333
+ .pf-v6-c-button.pf-m-primary {
334
+ color: var(--pf-v6-c-button--Color);
335
+ }
336
+
332
337
  // Override disable color on darker backgrounds
333
338
  .case-overview-secondary,
334
339
  #review {
@@ -399,6 +404,10 @@ div#cep-details-modal.pf-v6-c-modal-box__body {
399
404
  div#request-mgmt-escalation-modal.request-escalation-modal {
400
405
  div.pf-v6-c-modal-box__body {
401
406
  form.pf-v6-c-form.request-escalation-form {
407
+ .pf-m-textarea textarea {
408
+ resize: none !important;
409
+ }
410
+
402
411
  div.pf-v6-l-grid.pf-m-all-12-col-on-md.pf-m-gutter {
403
412
  div.pf-v6-l-grid__item.pf-m-6-col {
404
413
  div.pf-v6-c-form__group {
@@ -739,6 +748,7 @@ a.case-resource-recommendation-link {
739
748
  }
740
749
 
741
750
  .description-textarea {
751
+ resize: none !important;
742
752
  &.pf-v6-c-form-control {
743
753
  &:disabled,
744
754
  &.kt1-disabled {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.23",
3
+ "version": "2.6.24",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -51,7 +51,6 @@
51
51
  "dependencies": {
52
52
  "@cee-eng/hydrajs": "4.18.57",
53
53
  "@cee-eng/ui-toolkit": "1.1.8",
54
- "@ifd-ui/ask-redhat-core": "^0.0.28",
55
54
  "@patternfly/patternfly": "6.2.1",
56
55
  "@patternfly/react-core": "6.2.1",
57
56
  "@patternfly/react-table": "6.2.1",
@@ -59,11 +58,11 @@
59
58
  "@progress/kendo-licensing": "1.3.5",
60
59
  "@progress/kendo-react-pdf": "^5.16.0",
61
60
  "@redux-devtools/extension": "^3.3.0",
62
- "@rh-support/components": "2.5.27",
63
- "@rh-support/react-context": "2.5.29",
61
+ "@rh-support/components": "2.5.32",
62
+ "@rh-support/react-context": "2.5.34",
64
63
  "@rh-support/types": "2.0.5",
65
- "@rh-support/user-permissions": "2.5.18",
66
- "@rh-support/utils": "2.5.17",
64
+ "@rh-support/user-permissions": "2.5.20",
65
+ "@rh-support/utils": "2.5.19",
67
66
  "@types/react-redux": "^7.1.33",
68
67
  "@types/redux": "^3.6.0",
69
68
  "date-fns": "3.6.0",
@@ -135,5 +134,5 @@
135
134
  "defaults and supports es6-module",
136
135
  "maintained node versions"
137
136
  ],
138
- "gitHead": "01e1d7d449bc445d659dcbba88345ae110045632"
137
+ "gitHead": "0ecaec663e234789df10d8f8a98a46757388e573"
139
138
  }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onChatWithAIClick?: () => void;
4
- }
5
- export declare const AskRedHat: React.FC<IProps>;
6
- export {};
7
- //# sourceMappingURL=AskRedHat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AskRedHat.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/AskRedHat.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,UAAU,MAAM;IACZ,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAqJtC,CAAC"}