@rh-support/troubleshoot 2.6.73 → 2.6.75

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.
@@ -19,7 +19,7 @@ import DOMPurify from 'dompurify';
19
19
  import isEqual from 'lodash/isEqual';
20
20
  import React, { useEffect, useState } from 'react';
21
21
  import { Trans } from 'react-i18next';
22
- import { CASE_SUMMARY_AI_MODEL_ID, CaseSummaryStates } from '../../../../constants/caseDetailsConstants';
22
+ import { CaseSummaryStates } from '../../../../constants/caseDetailsConstants';
23
23
  import { useCaseSelector } from '../../../../context/CaseContext';
24
24
  import { CaseSummaryErrorMessage } from './CaseSummaryErrorMessage';
25
25
  export const CaseSummary = (props) => {
@@ -52,7 +52,7 @@ export const CaseSummary = (props) => {
52
52
  else {
53
53
  const fetchCaseSummary = () => __awaiter(void 0, void 0, void 0, function* () {
54
54
  try {
55
- const data = yield caseSummary.getCaseSummary(props.caseNumber, CASE_SUMMARY_AI_MODEL_ID);
55
+ const data = yield caseSummary.getCaseSummary(props.caseNumber);
56
56
  setCaseSummaryData(getApiResourceObject(data));
57
57
  setCaseSummaryState(CaseSummaryStates.SUCCESS);
58
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAA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,9 +127,7 @@ export default function FileLister(props) {
127
127
  showDeleteBtn(localFile.uploadProgress.uploadStatus, localFile) && (React.createElement(Button, { variant: ButtonVariant.link, isDanger: true, "aria-label": t('Delete file'), title: t('Delete file'), className: "btn btn-link btn-app remove-file", "data-tracking-id": "file-lister-delete", onClick: onRemoveClick(localFile, index), hidden: !localFile.uploadability.ableToUpload },
128
128
  React.createElement(Trans, null, "Remove")))))),
129
129
  isAnalysingFile(localFile.analysisMetadata.analysisStatus) && (React.createElement(Progress, { measureLocation: ProgressMeasureLocation.top, value: getAnalysisStepCount(localFile), "aria-label": `Progress - ${getAnalysisProgressTitle(localFile)}`, min: 0, max: (analysisSteps === null || analysisSteps === void 0 ? void 0 : analysisSteps.length) + 1, label: getAnalysisProgressTitle(localFile), valueText: getAnalysisProgressTitle(localFile) })),
130
- React.createElement(TextInput, { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description pf-v6-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
131
- ? ''
132
- : t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
130
+ !shouldHideDescription(localFile, props.isSessionId) && (React.createElement(TextInput, { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description pf-v6-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t('Enter a description') })),
133
131
  isUploadedAndAnalysisSkipped(localFile) &&
134
132
  !(caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT) && (React.createElement("span", { className: "text-muted" }, localFile.analysisMetadata.analysisErrorMesssage)),
135
133
  ((_c = localFile.description) === null || _c === void 0 ? void 0 : _c.length) === ATTACHMENT_DESCRIPTION_LENGTH_LIMIT ? (React.createElement("p", { className: "form-instructions" },
@@ -9,7 +9,6 @@ export declare enum CaseDetailsTabsEnum {
9
9
  HISTORY = "History",
10
10
  GENERATE_AI_CASE_SUMMARY = "Generate AI case summary"
11
11
  }
12
- export declare const CASE_SUMMARY_AI_MODEL_ID = "granite-3-1-8b-instruct";
13
12
  export declare enum CaseStatusEnum {
14
13
  CLOSED = "Closed",
15
14
  WAITING_ON_CUSTOMER = "Waiting on Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,wBAAwB,4BAA4B,CAAC;AAElE,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,2BAA2B,gCAAgC;IAC3D,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,kDAAkD,CAAC;AAElF,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
1
+ {"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,wBAAwB,6BAA6B;CACxD;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,2BAA2B,gCAAgC;IAC3D,wBAAwB,6BAA6B;CACxD;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,kDAAkD,CAAC;AAElF,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
@@ -10,7 +10,6 @@ export var CaseDetailsTabsEnum;
10
10
  CaseDetailsTabsEnum["HISTORY"] = "History";
11
11
  CaseDetailsTabsEnum["GENERATE_AI_CASE_SUMMARY"] = "Generate AI case summary";
12
12
  })(CaseDetailsTabsEnum || (CaseDetailsTabsEnum = {}));
13
- export const CASE_SUMMARY_AI_MODEL_ID = 'granite-3-1-8b-instruct';
14
13
  export var CaseStatusEnum;
15
14
  (function (CaseStatusEnum) {
16
15
  CaseStatusEnum["CLOSED"] = "Closed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.73",
3
+ "version": "2.6.75",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -25,7 +25,7 @@
25
25
  "lib/**/*"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@cee-eng/hydrajs": "4.18.86",
28
+ "@cee-eng/hydrajs": "4.18.92",
29
29
  "@cee-eng/ui-toolkit": "1.1.8",
30
30
  "@patternfly/patternfly": "6.2.1",
31
31
  "@patternfly/react-core": "6.2.1",
@@ -49,7 +49,7 @@
49
49
  "react-virtualized": "^9.22.5"
50
50
  },
51
51
  "dependencies": {
52
- "@cee-eng/hydrajs": "4.18.86",
52
+ "@cee-eng/hydrajs": "4.18.92",
53
53
  "@cee-eng/ui-toolkit": "1.1.8",
54
54
  "@ifd-ui/ask-redhat-core": "^0.0.36",
55
55
  "@patternfly/patternfly": "6.2.1",
@@ -59,11 +59,11 @@
59
59
  "@progress/kendo-licensing": "1.3.5",
60
60
  "@progress/kendo-react-pdf": "^5.16.0",
61
61
  "@redux-devtools/extension": "^3.3.0",
62
- "@rh-support/components": "2.5.54",
63
- "@rh-support/react-context": "2.5.69",
62
+ "@rh-support/components": "2.5.55",
63
+ "@rh-support/react-context": "2.5.70",
64
64
  "@rh-support/types": "2.0.5",
65
- "@rh-support/user-permissions": "2.5.25",
66
- "@rh-support/utils": "2.5.22",
65
+ "@rh-support/user-permissions": "2.5.26",
66
+ "@rh-support/utils": "2.5.23",
67
67
  "@types/react-redux": "^7.1.33",
68
68
  "@types/redux": "^3.6.0",
69
69
  "date-fns": "3.6.0",
@@ -135,5 +135,5 @@
135
135
  "defaults and supports es6-module",
136
136
  "maintained node versions"
137
137
  ],
138
- "gitHead": "59dea26fe8f22c9ded29139d007d026ffc357416"
138
+ "gitHead": "d0b8f81e23ac84c6fcfc2f68b7c19f44f11d28eb"
139
139
  }