@rh-support/troubleshoot 2.6.70 → 2.6.71

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.
@@ -45,7 +45,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
45
45
  React.createElement("div", { style: { marginLeft: 'auto' } },
46
46
  React.createElement(Popover, { showClose: false, position: 'left', hasAutoWidth: true, bodyContent: (hide) => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
47
47
  React.createElement(Trans, null, "Learn more about escalation cases."))) },
48
- React.createElement(InfoCircleIcon, { title: t('Learn more about escalation cases popover') }))))),
48
+ React.createElement(InfoCircleIcon, { title: t('Learn more about escalation cases popover'), color: "#5e40be" }))))),
49
49
  React.createElement(CardBody, null,
50
50
  React.createElement(React.Fragment, null,
51
51
  React.createElement("p", null,
@@ -215,7 +215,7 @@ export function CaseDetailsAside(props) {
215
215
  preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'),
216
216
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
217
217
  React.createElement(Trans, null, renderCasePrefPopoverText())), showClose: false },
218
- React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v6-u-ml-sm", style: { color: '#5e40be', width: '1rem', height: '1rem' } }))),
218
+ React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v6-u-ml-sm", color: "#5e40be" }))),
219
219
  React.createElement(Switch, { title: preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'), "data-tracking-id": preferredOrDefaultCaseView()
220
220
  ? 'disable-view-as-customer'
221
221
  : 'enable-view-as-customer', "aria-label": preferredOrDefaultCaseView()
@@ -1 +1 @@
1
- {"version":3,"file":"ESSRemoteSession.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,+EAyH3B,CAAC"}
1
+ {"version":3,"file":"ESSRemoteSession.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,+EA0H3B,CAAC"}
@@ -31,8 +31,8 @@ export const ESSRemoteSession = forwardRef((props, ref) => {
31
31
  React.createElement(CardBody, null,
32
32
  isInternal && (React.createElement(React.Fragment, null,
33
33
  React.createElement("p", null,
34
- React.createElement(LockIcon, null),
35
- " ",
34
+ React.createElement(LockIcon, { style: { marginRight: '8px' } }),
35
+ ' ',
36
36
  React.createElement("strong", null, `${t('Available to customers only')}`)),
37
37
  React.createElement("p", null,
38
38
  React.createElement(Trans, null,
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EAwHjC,CAAC"}
1
+ {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EAyHjC,CAAC"}
@@ -31,8 +31,8 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
31
31
  React.createElement(CardBody, null,
32
32
  isInternal && (React.createElement(React.Fragment, null,
33
33
  React.createElement("p", null,
34
- React.createElement(LockIcon, null),
35
- " ",
34
+ React.createElement(LockIcon, { style: { marginRight: '8px' } }),
35
+ ' ',
36
36
  React.createElement("strong", null, `${t('Available to customers only')}`)),
37
37
  React.createElement("p", null,
38
38
  React.createElement(Trans, null,
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6KlC;kBA7KQ,YAAY;;;AAgLrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,qBA8KlC;kBA9KQ,YAAY;;;AAiLrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -111,7 +111,7 @@ function CaseHostname(props) {
111
111
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
112
112
  React.createElement(Trans, { className: "pf-v6-u-mr-xs" }, "Hostname"),
113
113
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: !isExportingPDF ? (React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
114
- React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-sm F icon-size pf-v6-u-text-color-status-custom cursor-pointer", "aria-label": "Hostname Info" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
114
+ React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-sm F icon-size cursor-pointer", "aria-label": "Hostname Info", color: "#5e40be" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
115
115
  React.createElement(TextInput, { type: "text", id: "case-details-hostname", className: `${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: (e, phone) => onHostnameChange(phone), isDisabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
116
116
  lengthError && (React.createElement("div", { className: "pull-top" },
117
117
  React.createElement("p", { className: "form-instructions form-invalid" },
@@ -279,7 +279,7 @@ ul#case-history-paginated-timeline {
279
279
  }
280
280
 
281
281
  .case-history-timeline-datepicker input[aria-label='Date picker'] {
282
- min-width: 10rem;
282
+ padding-right: 0 !important;
283
283
  }
284
284
 
285
285
  .case-history-timeline-datepicker button {
@@ -243,10 +243,10 @@ export const AskRedHat = ({ onChatWithAIClick }) => {
243
243
  React.createElement("h3", { className: "ask-redhat-card-title" },
244
244
  React.createElement("a", { href: source.link, target: "_blank", rel: "noopener noreferrer", onClick: handleSourceClick(source, index) }, source.title))),
245
245
  React.createElement(CardBody, null,
246
- React.createElement("p", null, (source.snippet || '').slice(0, 100) + '...')))))))),
247
- React.createElement("div", { className: "response-actions-wrapper" },
248
- React.createElement(ResponseActions, { actions: responseActions, submittedFeedbackTypes: aiResponseState.submittedFeedbackTypes })))),
246
+ React.createElement("p", null, (source.snippet || '').slice(0, 100) + '...')))))))))),
249
247
  React.createElement("div", { className: "ask-redhat-footer-wrapper" },
248
+ React.createElement("div", { className: "response-actions-wrapper" },
249
+ React.createElement(ResponseActions, { actions: responseActions, submittedFeedbackTypes: aiResponseState.submittedFeedbackTypes })),
250
250
  React.createElement("div", { className: "ask-redhat-footer" },
251
251
  React.createElement("p", { className: "ask-redhat-footer-text" }, "Want to continue the conversation? Dive deeper with our AI assistant"),
252
252
  React.createElement(Button, { onClick: handleChatWithAIClick, className: 'ask-redhat-chat-button', "data-tracking-id": "ask-redhat-chat-button", icon: React.createElement(StarIcon, null) }, "Chat with AI"))),
@@ -1,5 +1,5 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { Button, ButtonVariant, Label, Progress, ProgressMeasureLocation } from '@patternfly/react-core';
2
+ import { Button, ButtonVariant, Label, Progress, ProgressMeasureLocation, TextInput } from '@patternfly/react-core';
3
3
  import HistoryIcon from '@patternfly/react-icons/dist/js/icons/history-icon';
4
4
  import { CircularProgressbar } from '@rh-support/components';
5
5
  import { humanizeSize, PreviousCaseTypes } from '@rh-support/utils';
@@ -30,10 +30,9 @@ const analysisStepMap = {
30
30
  };
31
31
  export default function FileLister(props) {
32
32
  const { t } = useTranslation();
33
- const onDescriptionChange = (localFile, indexToEdit) => (event) => {
34
- var _a;
33
+ const onDescriptionChange = (localFile, indexToEdit) => (event, value) => {
35
34
  const editedLocalFile = Object.assign({}, localFile);
36
- editedLocalFile.description = isEmpty((_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim()) ? '' : event.target.value;
35
+ editedLocalFile.description = isEmpty(value === null || value === void 0 ? void 0 : value.trim()) ? '' : value;
37
36
  props.onFileEdit &&
38
37
  props.onFileEdit(editedLocalFile, indexToEdit, { description: editedLocalFile.description.trim() });
39
38
  };
@@ -128,7 +127,7 @@ export default function FileLister(props) {
128
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 },
129
128
  React.createElement(Trans, null, "Remove")))))),
130
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) })),
131
- React.createElement("input", { id: `file-${index + 1}-description`, "data-tracking-id": `case-${props.isSessionId ? 'create' : 'details'}-file-${index + 1}-description`, className: "file-description form-control pf-v6-u-my-sm", type: "text", value: localFile.description, onChange: onDescriptionChange(localFile, index), maxLength: 255, placeholder: t(`${shouldHideDescription(localFile, props.isSessionId)
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)
132
131
  ? ''
133
132
  : t('Enter a description')}`), hidden: shouldHideDescription(localFile, props.isSessionId) }),
134
133
  isUploadedAndAnalysisSkipped(localFile) &&
@@ -22,7 +22,8 @@
22
22
  }
23
23
 
24
24
  .ask-redhat-content {
25
- height: 242px;
25
+ min-height: 242px;
26
+ max-height: 242px;
26
27
  color: #000;
27
28
  font-family: 'Red Hat Text';
28
29
  font-size: 16px;
@@ -31,16 +32,16 @@
31
32
  line-height: 24px;
32
33
  overflow: hidden;
33
34
  position: relative;
34
- transition: height 0.8s ease;
35
+ transition: max-height 0.8s ease;
35
36
  }
36
37
 
37
38
  .ask-redhat-content--expanded {
38
- height: calc(100vh - 382px);
39
- transition: height 0.8s ease !important;
39
+ max-height: calc(100vh - 376px) !important;
40
+ transition: max-height 0.8s ease !important;
40
41
  }
41
42
 
42
43
  .ask-redhat-content--expanded-scrollable {
43
- height: calc(100vh - 453px);
44
+ max-height: calc(100vh - 512px);
44
45
  overflow-y: auto;
45
46
  }
46
47
 
@@ -372,6 +373,7 @@ body:has(.pf-chatbot--embedded) .hide-for-askredhat {
372
373
 
373
374
  .response-actions-wrapper {
374
375
  margin-top: 24px;
376
+ margin-bottom: 24px;
375
377
  }
376
378
 
377
379
  .pf-chatbot__header {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.70",
3
+ "version": "2.6.71",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -135,5 +135,5 @@
135
135
  "defaults and supports es6-module",
136
136
  "maintained node versions"
137
137
  ],
138
- "gitHead": "a890f1a167f618823f654d2132ce110f0f7cc6ed"
138
+ "gitHead": "40f7bb68143a6cd096c7b3ee2e524083317d6957"
139
139
  }