@rh-support/cases 2.1.118 → 2.1.119
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.
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-filters/CreatorSsoNameFilter.js +5 -3
- package/lib/esm/components/case-list/case-list-table/CloseCaseBtn.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/CloseCaseBtn.js +6 -3
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatorSsoNameFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CreatorSsoNameFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreatorSsoNameFilter.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-filters/CreatorSsoNameFilter.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,eAAO,MAAM,WAAW,0BAIvB,CAAC;AAYF,eAAO,MAAM,eAAe;;;;;;;GAA6E,CAAC;AAE1G,eAAO,MAAM,kBAAkB,iEAyC9B,CAAC;AAEF,wBAAgB,oBAAoB,sBA4PnC"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { accounts } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, MenuToggle, Select, SelectGroup, SelectList, SelectOption, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
|
|
11
|
+
import { Button, MenuToggle, Select, SelectGroup, SelectList, SelectOption, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, Truncate, } from '@patternfly/react-core';
|
|
12
12
|
import TimesCircleIcon from '@patternfly/react-icons/dist/js/icons/times-circle-icon';
|
|
13
13
|
import { LoadingIndicator, useFetch, useSelectKeyboardNavigator } from '@rh-support/components';
|
|
14
14
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
@@ -184,14 +184,16 @@ export function CreatorSsoNameFilter() {
|
|
|
184
184
|
React.createElement(Trans, null, "No results found")),
|
|
185
185
|
]
|
|
186
186
|
: []),
|
|
187
|
-
...dropdownHeader.map((contact, index) => (React.createElement(SelectOption, { key: contact.value, isFocused: focusedItemIndex === index, value: contact, hasCheckbox: true, isSelected: selectedExternalContacts.some((c) => c.value === contact.value) },
|
|
187
|
+
...dropdownHeader.map((contact, index) => (React.createElement(SelectOption, { key: contact.value, isFocused: focusedItemIndex === index, value: contact, hasCheckbox: true, isSelected: selectedExternalContacts.some((c) => c.value === contact.value) },
|
|
188
|
+
React.createElement(Truncate, { content: contact.label })))),
|
|
188
189
|
...(!isEmpty(filteredOptions)
|
|
189
190
|
? [
|
|
190
191
|
React.createElement("div", { className: "pf-v5-c-divider", role: "separator", key: "separator" }),
|
|
191
192
|
React.createElement(SelectGroup, { key: "created-or-owned-by-accounts-group" },
|
|
192
193
|
React.createElement("h6", { className: "pf-v5-u-pl-md" },
|
|
193
194
|
React.createElement(Trans, null, "Created or owned by")),
|
|
194
|
-
filteredOptions.map((contact, index) => (React.createElement(SelectOption, { key: contact.value, isFocused: focusedItemIndex === index + dropdownHeader.length, value: contact, hasCheckbox: true, isSelected: selectedExternalContacts.some((c) => c.value === contact.value) },
|
|
195
|
+
filteredOptions.map((contact, index) => (React.createElement(SelectOption, { key: contact.value, isFocused: focusedItemIndex === index + dropdownHeader.length, value: contact, hasCheckbox: true, isSelected: selectedExternalContacts.some((c) => c.value === contact.value) },
|
|
196
|
+
React.createElement(Truncate, { content: contact.label }))))),
|
|
195
197
|
]
|
|
196
198
|
: []),
|
|
197
199
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseCaseBtn.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CloseCaseBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,UAAU,MAAM;IACZ,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAUD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CloseCaseBtn.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CloseCaseBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,UAAU,MAAM;IACZ,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAUD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE,MAAM,qBAsF5F"}
|
|
@@ -11,7 +11,7 @@ import { publicApi } from '@cee-eng/hydrajs';
|
|
|
11
11
|
import { Button } from '@patternfly/react-core';
|
|
12
12
|
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import { CloseCaseModal, useCanCreateCase } from '@rh-support/react-context';
|
|
14
|
-
import {
|
|
14
|
+
import { dtmTrackEventCaseStepEncountered } from '@rh-support/utils';
|
|
15
15
|
import React, { useState } from 'react';
|
|
16
16
|
import { Trans, useTranslation } from 'react-i18next';
|
|
17
17
|
const MAX_ALLOWED_CASES = 5;
|
|
@@ -43,7 +43,9 @@ export default function CloseCaseBtn({ selectedCases, caseList, onCasesCloseSucc
|
|
|
43
43
|
const promiseArr = [];
|
|
44
44
|
setIsModalOpen(false);
|
|
45
45
|
const toastId = ToastNotification.addSuccessMessage(t(`Closing selected cases`));
|
|
46
|
-
selectedCases.forEach((caseNumber) => {
|
|
46
|
+
selectedCases.forEach((caseNumber, i) => {
|
|
47
|
+
const product = caseList[i].case_product[0];
|
|
48
|
+
const version = caseList[i].case_version;
|
|
47
49
|
const p = request(caseNumber, { status: 'Closed' });
|
|
48
50
|
promiseArr.push(p);
|
|
49
51
|
p.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -55,7 +57,8 @@ export default function CloseCaseBtn({ selectedCases, caseList, onCasesCloseSucc
|
|
|
55
57
|
});
|
|
56
58
|
ToastNotification.clearToast(toastId);
|
|
57
59
|
ToastNotification.addSuccessMessage(t('Case {{caseNumber}} successfully closed', { caseNumber }));
|
|
58
|
-
|
|
60
|
+
// Only call dtm track event only when the case has been closed successfully.
|
|
61
|
+
dtmTrackEventCaseStepEncountered('close', caseNumber, product, version);
|
|
59
62
|
}), (err) => {
|
|
60
63
|
ToastNotification.clearToast(toastId);
|
|
61
64
|
ToastNotification.addDangerMessage(t('Could not close case {{caseNumber}}', { caseNumber }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.119",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@patternfly/patternfly": "5.4.0",
|
|
44
44
|
"@patternfly/react-core": "5.4.0",
|
|
45
45
|
"@patternfly/react-table": "5.4.0",
|
|
46
|
-
"@rh-support/components": "2.1.
|
|
47
|
-
"@rh-support/react-context": "2.1.
|
|
46
|
+
"@rh-support/components": "2.1.92",
|
|
47
|
+
"@rh-support/react-context": "2.1.101",
|
|
48
48
|
"@rh-support/types": "2.0.5",
|
|
49
|
-
"@rh-support/user-permissions": "2.1.
|
|
50
|
-
"@rh-support/utils": "2.1.
|
|
49
|
+
"@rh-support/user-permissions": "2.1.57",
|
|
50
|
+
"@rh-support/utils": "2.1.46",
|
|
51
51
|
"localforage": "^1.10.0",
|
|
52
52
|
"lodash": "^4.17.21",
|
|
53
53
|
"pegjs": "^0.10.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"defaults and supports es6-module",
|
|
97
97
|
"maintained node versions"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "8402b82ce0dac6a288aa9361ebb61f4a209f90e0"
|
|
100
100
|
}
|