@rh-support/troubleshoot 2.5.16 → 2.5.18

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":"NewEssTermsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAwU7C"}
1
+ {"version":3,"file":"NewEssTermsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAwV7C"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Alert, Button, ButtonVariant, Checkbox, Form, FormGroup, Modal, TextArea, TextInput, } from '@patternfly/react-core';
11
+ import { Alert, Button, ButtonVariant, Checkbox, Modal, TextArea, TextInput } from '@patternfly/react-core';
12
12
  import { Select, SelectOption } from '@patternfly/react-core/deprecated';
13
13
  import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
14
14
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
@@ -100,7 +100,7 @@ export function NewEssTermsModal(props) {
100
100
  };
101
101
  // Function to ack remote session terms and post comment
102
102
  const submitRemoteSessionAgreement = (pdfId) => __awaiter(this, void 0, void 0, function* () {
103
- const requestComment = t(`Submitted a remote session request with following details:\n\n**Expectations on time of remote session**\n${sessionExpectations}\n\n**Describe the impact to you or the business**\n${impact}\n\n**Remote session link**\n[${sessionLink}](${sessionLink})\n\nThis action does not initiate a remote session. Please make a case comment if you would like to submit a request.`);
103
+ const requestComment = t(`Submitted a remote session request with following details:\n\n**Expectations of remote session**\n${sessionExpectations}\n\n**Describe the impact to you or the business**\n${impact}\n\n**Remote session link**\n[${sessionLink}](${sessionLink})\n\nThis action does not initiate a remote session. Please make a case comment if you would like to submit a request.`);
104
104
  try {
105
105
  yield updateCaseDetails(caseDispatch, props.caseNumber, {
106
106
  remoteSessionTermsAcked: true,
@@ -164,22 +164,30 @@ export function NewEssTermsModal(props) {
164
164
  // To check and if I agree button is loading
165
165
  const isAgreeLoading = agreeLoading || isPostingComment;
166
166
  const modalActions = [
167
- React.createElement(Button, { key: "submit", "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": "remote-session-agreement-check", isLoading: isAgreeLoading, isDisabled: !isTermsChecked || isAgreeLoading }, t('Submit')),
167
+ React.createElement(Button, { key: "submit", "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": "remote-session-agreement-check", isLoading: isAgreeLoading, isDisabled: (isRemoteSessionForm ? !sessionExpectations.trim() || !impact.trim() : !isTermsChecked) ||
168
+ isAgreeLoading }, t(isRemoteSessionForm ? 'Submit' : 'I agree')),
168
169
  React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel }, "Cancel"),
169
170
  ];
170
- const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm" },
171
+ const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm", className: "form-group" },
171
172
  React.createElement(Alert, { variant: "info", isInline: true, title: React.createElement(React.Fragment, null,
172
173
  "What is a Remote Support Session and how to acknowledge the Remote Access Rider?",
173
174
  ' ',
174
175
  React.createElement("a", { href: "https://access.redhat.com/articles/3566571", target: "_blank", rel: "noopener noreferrer" }, "Read more.")) }),
175
- React.createElement(Form, { className: "pf-v5-u-pt-md" },
176
- React.createElement(FormGroup, { label: "Expectations of remote session", type: "string", isRequired: true },
177
- React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Expectations of remote session" })),
178
- React.createElement(FormGroup, { label: "Describe the impact to you or the business", type: "string", isRequired: true },
179
- React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
180
- React.createElement(FormGroup, { label: "Remote session link (optional)" },
181
- React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
182
- React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you.")))));
176
+ React.createElement("div", null,
177
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
178
+ React.createElement(Trans, null, "Expectations of remote session"),
179
+ React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
180
+ React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Expectations of remote session" })),
181
+ React.createElement("div", null,
182
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
183
+ React.createElement(Trans, null, "Describe the impact to you or the business"),
184
+ React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
185
+ React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
186
+ React.createElement("div", null,
187
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
188
+ React.createElement(Trans, null, "Remote session link (optional)")),
189
+ React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
190
+ React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you."))));
183
191
  const renderRemoteSessionAgreement = (React.createElement("div", { id: "remoteSessionAgreement" },
184
192
  React.createElement("p", { className: "pf-v5-u-mt-xs" },
185
193
  React.createElement(Trans, null,
@@ -207,5 +215,5 @@ export function NewEssTermsModal(props) {
207
215
  const EssRSAModalBody = () => {
208
216
  return isRemoteSessionForm ? renderRemoteSessionForm : renderRemoteSessionAgreement;
209
217
  };
210
- return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": t('Request remote agreement'), title: t('Request remote agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, EssRSAModalBody()));
218
+ return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": t('Remote session agreement'), title: t('Remote session agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, EssRSAModalBody()));
211
219
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreementModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAmUxD"}
1
+ {"version":3,"file":"RemoteSessionAgreementModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAmVxD"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Alert, Button, ButtonVariant, Checkbox, Form, FormGroup, Modal, TextArea, TextInput, } from '@patternfly/react-core';
11
+ import { Alert, Button, ButtonVariant, Checkbox, Modal, TextArea, TextInput } from '@patternfly/react-core';
12
12
  import { Select, SelectOption } from '@patternfly/react-core/deprecated';
13
13
  import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
14
14
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
@@ -101,7 +101,7 @@ export function RemoteSessionAgreementModal(props) {
101
101
  const toggleRemoteSessionForm = () => setIsRemoteSessionForm(true);
102
102
  // Function to ack remote session terms and post comment
103
103
  const submitRemoteSessionAgreement = (pdfId) => __awaiter(this, void 0, void 0, function* () {
104
- const requestComment = t(`#### Remote Access Rider agreement has been accepted.\n\n**Expectations on time of remote session**\n${sessionExpectations}\n\n**Describe the impact to you or the business**\n${impact}\n\n**Remote session link**\n[${sessionLink}](${sessionLink})\n\nThis action does not initiate a remote session. Please make a case comment if you would like to submit a request.`);
104
+ const requestComment = t(`#### Remote Access Rider agreement has been accepted.\n\n**Expectations of remote session**\n${sessionExpectations}\n\n**Describe the impact to you or the business**\n${impact}\n\n**Remote session link**\n[${sessionLink}](${sessionLink})\n\nThis action does not initiate a remote session. Please make a case comment if you would like to submit a request.`);
105
105
  try {
106
106
  yield updateCaseDetails(caseDispatch, props.caseNumber, {
107
107
  remoteSessionTermsAcked: true,
@@ -158,22 +158,30 @@ export function RemoteSessionAgreementModal(props) {
158
158
  const isAgreeLoading = agreeLoading || isPostingComment;
159
159
  // RSA Modal Actions
160
160
  const modalActions = [
161
- React.createElement(Button, { "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": "remote-session-agreement-check", isLoading: isAgreeLoading, isDisabled: !isTermsChecked || isAgreeLoading }, t('Submit')),
161
+ React.createElement(Button, { "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": "remote-session-agreement-check", isLoading: isAgreeLoading, isDisabled: (isRemoteSessionForm ? !sessionExpectations.trim() || !impact.trim() : !isTermsChecked) ||
162
+ isAgreeLoading }, t(isRemoteSessionForm ? 'Submit' : 'I agree')),
162
163
  React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel }, "Cancel"),
163
164
  ];
164
- const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm" },
165
+ const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm", className: "form-group" },
165
166
  React.createElement(Alert, { variant: "info", isInline: true, title: React.createElement(React.Fragment, null,
166
167
  "What is a Remote Support Session and how to acknowledge the Remote Access Rider?",
167
168
  ' ',
168
169
  React.createElement("a", { href: "https://access.redhat.com/articles/3566571", target: "_blank", rel: "noopener noreferrer" }, "Read more.")) }),
169
- React.createElement(Form, { className: "pf-v5-u-pt-md" },
170
- React.createElement(FormGroup, { label: "Expectations of remote session", type: "string", isRequired: true },
171
- React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Expectations of remote session" })),
172
- React.createElement(FormGroup, { label: "Describe the impact to you or the business", type: "string", isRequired: true },
173
- React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
174
- React.createElement(FormGroup, { label: "Remote session link (optional)" },
175
- React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
176
- React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you.")))));
170
+ React.createElement("div", null,
171
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
172
+ React.createElement(Trans, null, "Expectations of remote session"),
173
+ React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
174
+ React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Expectations of remote session" })),
175
+ React.createElement("div", null,
176
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
177
+ React.createElement(Trans, null, "Describe the impact to you or the business"),
178
+ React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
179
+ React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
180
+ React.createElement("div", null,
181
+ React.createElement("label", { className: "pf-v5-u-mt-md" },
182
+ React.createElement(Trans, null, "Remote session link (optional)")),
183
+ React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
184
+ React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you."))));
177
185
  const renderRemoteSessionAgreement = (React.createElement("div", { id: "remoteSessionAgreement" },
178
186
  React.createElement("p", { className: "pf-v5-u-mt-xs" },
179
187
  React.createElement(Trans, null,
@@ -201,5 +209,5 @@ export function RemoteSessionAgreementModal(props) {
201
209
  const RemoteSessionAgreementModalBody = () => {
202
210
  return isRemoteSessionForm ? renderRemoteSessionForm : renderRemoteSessionAgreement;
203
211
  };
204
- return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": t('Request remote agreement'), title: t('Request remote agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, RemoteSessionAgreementModalBody()));
212
+ return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": t('Remote session agreement'), title: t('Remote session agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, RemoteSessionAgreementModalBody()));
205
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.5.16",
3
+ "version": "2.5.18",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -134,5 +134,5 @@
134
134
  "defaults and supports es6-module",
135
135
  "maintained node versions"
136
136
  ],
137
- "gitHead": "546b242324a0f5c12db8e448ed7ce8f374e48105"
137
+ "gitHead": "5e0ddc860b3afccd14a452087802d321b814f269"
138
138
  }