@rh-support/cases 2.6.6 → 2.6.7
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-table/CaseListTable.d.ts.map +1 -1
- package/lib/esm/components/case-list/case-list-table/CaseListTable.js +2 -2
- 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 +7 -4
- package/lib/esm/css/caseList.css +0 -4
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseListTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CaseListTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAuB3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAQxD,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAE,iBAAiB,EAAyB,MAAM,0BAA0B,CAAC;AAEpF,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA4BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAsBD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseListTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CaseListTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAuB3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAQxD,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,EAAE,iBAAiB,EAAyB,MAAM,0BAA0B,CAAC;AAEpF,OAAO,EAEH,eAAe,EACf,SAAS,EAIZ,MAAM,0BAA0B,CAAC;AA4BlC,UAAU,MAAM;IACZ,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC3C,UAAU,EAAE,UAAU,EAAE,CAAC;IACzB,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAsBD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,qBAykB1C"}
|
|
@@ -3,7 +3,7 @@ import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
|
|
|
3
3
|
import { Table, TableVariant, Tbody, Td, Th, Thead, Tr, Visibility } from '@patternfly/react-table';
|
|
4
4
|
import { TableComponent, TablePagination } from '@rh-support/components';
|
|
5
5
|
import { GlobalMetadataDispatchContext, updateUserPreferences, useGlobalStateContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
6
|
-
import { formatDate, scrollIntoView, toNewCaseTypeSwitcher } from '@rh-support/utils';
|
|
6
|
+
import { dtmTrackEventCaseStepEncountered, formatDate, scrollIntoView, toNewCaseTypeSwitcher } from '@rh-support/utils';
|
|
7
7
|
import find from 'lodash/find';
|
|
8
8
|
import flatMap from 'lodash/flatMap';
|
|
9
9
|
import includes from 'lodash/includes';
|
|
@@ -378,7 +378,7 @@ export function CaseListTable(props) {
|
|
|
378
378
|
} }),
|
|
379
379
|
React.createElement(Th, { dataLabel: "Case ID", id: row.case_number, scope: "row" },
|
|
380
380
|
React.createElement("div", { className: "case-number-section" },
|
|
381
|
-
React.createElement(Link, { to: `/case/${row.case_number}
|
|
381
|
+
React.createElement(Link, { to: `/case/${row.case_number}`, onClick: () => dtmTrackEventCaseStepEncountered('review', row.case_number, row.case_product, row.case_version) },
|
|
382
382
|
React.createElement("span", { className: "case-number" }, row.case_number)),
|
|
383
383
|
row.case_customer_escalation ? (React.createElement("div", { className: "escalation-label" },
|
|
384
384
|
React.createElement(Trans, null, "Escalated"))) : (''))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseCaseBtn.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CloseCaseBtn.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloseCaseBtn.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-list-table/CloseCaseBtn.tsx"],"names":[],"mappings":"AAIA,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,qBA0F5F"}
|
|
@@ -11,7 +11,6 @@ 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 { dtmTrackEventCaseStepEncountered } from '@rh-support/utils';
|
|
15
14
|
import React, { useState } from 'react';
|
|
16
15
|
import { Trans, useTranslation } from 'react-i18next';
|
|
17
16
|
const MAX_ALLOWED_CASES = 5;
|
|
@@ -44,8 +43,6 @@ export default function CloseCaseBtn({ selectedCases, caseList, onCasesCloseSucc
|
|
|
44
43
|
setIsModalOpen(false);
|
|
45
44
|
const toastId = ToastNotification.addSuccessMessage(t(`Closing selected cases`));
|
|
46
45
|
selectedCases.forEach((caseNumber, i) => {
|
|
47
|
-
const product = caseList[i].case_product[0];
|
|
48
|
-
const version = caseList[i].case_version;
|
|
49
46
|
const p = request(caseNumber, { status: 'Closed' });
|
|
50
47
|
promiseArr.push(p);
|
|
51
48
|
p.then((res) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -57,8 +54,14 @@ export default function CloseCaseBtn({ selectedCases, caseList, onCasesCloseSucc
|
|
|
57
54
|
});
|
|
58
55
|
ToastNotification.clearToast(toastId);
|
|
59
56
|
ToastNotification.addSuccessMessage(t('Case {{caseNumber}} successfully closed', { caseNumber }));
|
|
57
|
+
// We have decided to not call this event here for now. This could be added back.
|
|
60
58
|
// Only call dtm track event only when the case has been closed successfully.
|
|
61
|
-
dtmTrackEventCaseStepEncountered(
|
|
59
|
+
// dtmTrackEventCaseStepEncountered(
|
|
60
|
+
// 'close',
|
|
61
|
+
// caseNumber,
|
|
62
|
+
// caseList[i].case_product[0],
|
|
63
|
+
// caseList[i].case_version
|
|
64
|
+
// );
|
|
62
65
|
}), (err) => {
|
|
63
66
|
ToastNotification.clearToast(toastId);
|
|
64
67
|
ToastNotification.addDangerMessage(t('Could not close case {{caseNumber}}', { caseNumber }));
|
package/lib/esm/css/caseList.css
CHANGED
|
@@ -530,8 +530,6 @@
|
|
|
530
530
|
th#summary.pf-v5-c-table__th {
|
|
531
531
|
min-width: 270px !important;
|
|
532
532
|
max-width: none;
|
|
533
|
-
display: flex !important;
|
|
534
|
-
justify-content: center !important;
|
|
535
533
|
}
|
|
536
534
|
|
|
537
535
|
.case-list-table tbody > tr > :nth-child(3) {
|
|
@@ -581,8 +579,6 @@
|
|
|
581
579
|
th#summary.pf-v5-c-table__th {
|
|
582
580
|
min-width: 500px !important;
|
|
583
581
|
max-width: none;
|
|
584
|
-
display: flex !important;
|
|
585
|
-
justify-content: center !important;
|
|
586
582
|
}
|
|
587
583
|
|
|
588
584
|
.case-list-table tbody > tr > :nth-child(3) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@patternfly/patternfly": "5.4.2",
|
|
44
44
|
"@patternfly/react-core": "5.4.2",
|
|
45
45
|
"@patternfly/react-table": "5.4.2",
|
|
46
|
-
"@rh-support/components": "2.5.
|
|
47
|
-
"@rh-support/react-context": "2.5.
|
|
46
|
+
"@rh-support/components": "2.5.25",
|
|
47
|
+
"@rh-support/react-context": "2.5.27",
|
|
48
48
|
"@rh-support/types": "2.0.5",
|
|
49
|
-
"@rh-support/user-permissions": "2.5.
|
|
50
|
-
"@rh-support/utils": "2.5.
|
|
49
|
+
"@rh-support/user-permissions": "2.5.17",
|
|
50
|
+
"@rh-support/utils": "2.5.16",
|
|
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": "1784fd712681254600c3586c364804051ddfd8a7"
|
|
100
100
|
}
|