@rh-support/cases 2.1.58 → 2.1.61
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/CaseList.d.ts.map +1 -1
- package/lib/esm/components/case-list/CaseList.js +1 -0
- 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 +11 -7
- package/lib/esm/components/case-list/case-list-table/DownloadCSVFileModal.js +1 -1
- package/lib/esm/css/caseList.css +2 -2
- package/lib/esm/enums/case.js +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AA4BlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAe,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAmC3F,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,YAAY,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAM5F,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AA4BlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAe,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAmC3F,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,YAAY,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAM5F,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,qBA6frC"}
|
|
@@ -281,6 +281,7 @@ export function CaseList(props) {
|
|
|
281
281
|
}
|
|
282
282
|
// set filter state based on url or default saved search
|
|
283
283
|
const { initFilterState, defaultSearchName } = useFilterStateInit.set(decodeURIComponent(queryFromUrl), pageSizeFromUrl, currentPageFromUrl, searchType);
|
|
284
|
+
// to set default saved search name
|
|
284
285
|
setDefaultSavedSearchName(defaultSearchName);
|
|
285
286
|
// set default params when they are empty
|
|
286
287
|
if (!queryFromUrl) {
|
|
@@ -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;
|
|
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;AAwB3E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAOxD,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,qBA0jB1C"}
|
|
@@ -2,7 +2,7 @@ import { Bullseye, Button, EmptyState, EmptyStateBody, EmptyStateFooter, EmptySt
|
|
|
2
2
|
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 { TableColumnSelector, TableComponent, TablePagination } from '@rh-support/components';
|
|
5
|
-
import { GlobalMetadataDispatchContext, updateUserPreferences, useGlobalStateContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
5
|
+
import { GlobalMetadataDispatchContext, GlobalMetadataStateContext, updateUserPreferences, useGlobalStateContext, UserPreferencesKeys, } from '@rh-support/react-context';
|
|
6
6
|
import { formatDate, scrollIntoView, toNewCaseTypeSwitcher } from '@rh-support/utils';
|
|
7
7
|
import find from 'lodash/find';
|
|
8
8
|
import flatMap from 'lodash/flatMap';
|
|
@@ -18,6 +18,7 @@ import { clearFilters, resetFilterToDefaultState, updatePagination, updateSort,
|
|
|
18
18
|
import CloseCaseBtn from './CloseCaseBtn';
|
|
19
19
|
import { ExportCaseListCSV } from './ExportCaseListCSV';
|
|
20
20
|
import SeverityLabel from './SeverityLabel';
|
|
21
|
+
// initially selected columns
|
|
21
22
|
const initialSelectedColumns = [
|
|
22
23
|
CaseListColumnIds.caseId,
|
|
23
24
|
CaseListColumnIds.summary,
|
|
@@ -47,13 +48,16 @@ export function CaseListTable(props) {
|
|
|
47
48
|
const [activeSortIndex, setActiveSortIndex] = useState();
|
|
48
49
|
const [activeSortDirection, setActiveSortDirection] = useState();
|
|
49
50
|
const [sortedCaseListData, setSortedCaseListData] = useState(caseListData);
|
|
50
|
-
const { globalMetadataState: { navBarRef, hydraUserPreferences
|
|
51
|
+
const { globalMetadataState: { navBarRef, hydraUserPreferences }, } = useGlobalStateContext();
|
|
51
52
|
const dispatch = useContext(CaseListFilterDispatchContext);
|
|
52
53
|
const dispatchToGlobalMetadataReducer = useContext(GlobalMetadataDispatchContext);
|
|
53
|
-
const { filterInfo
|
|
54
|
+
const { filterInfo } = useContext(CaseListFilterStateContext);
|
|
54
55
|
const currentFilterLength = flatMap(filterInfo).length;
|
|
55
56
|
const showingFilter = currentFilterLength > 0;
|
|
57
|
+
const filterState = useContext(CaseListFilterStateContext);
|
|
58
|
+
const { filterQueryInfo } = filterState;
|
|
56
59
|
const hasSearchQuery = !((filterQueryInfo === null || filterQueryInfo === void 0 ? void 0 : filterQueryInfo.queryString) === '');
|
|
60
|
+
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
57
61
|
const isInternal = loggedInUserRights.data.isInternal();
|
|
58
62
|
const tableToolbarRef = useRef(null);
|
|
59
63
|
const columns = [
|
|
@@ -64,7 +68,7 @@ export function CaseListTable(props) {
|
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
id: CaseListColumnIds.summary,
|
|
67
|
-
title: t('
|
|
71
|
+
title: t('Problem description'),
|
|
68
72
|
sortable: true,
|
|
69
73
|
},
|
|
70
74
|
{
|
|
@@ -370,7 +374,7 @@ export function CaseListTable(props) {
|
|
|
370
374
|
React.createElement("span", { className: "case-number" }, row.case_number)),
|
|
371
375
|
row.case_customer_escalation ? (React.createElement("div", { className: "escalation-label" },
|
|
372
376
|
React.createElement(Trans, null, "Escalated"))) : (''))),
|
|
373
|
-
React.createElement(Td, { dataLabel: "
|
|
377
|
+
React.createElement(Td, { dataLabel: "Problem description" }, row.case_summary),
|
|
374
378
|
React.createElement(Td, { className: !isColumnVisible('contactName') ? Visibility.hidden : '', dataLabel: "Owner" }, row.case_contactName),
|
|
375
379
|
React.createElement(Td, { className: !isColumnVisible('lastModifiedDate') ? Visibility.hidden : '', dataLabel: "Modified by" },
|
|
376
380
|
React.createElement("span", { className: "modified-name" }, row.case_lastModifiedByName),
|
|
@@ -389,6 +393,6 @@ export function CaseListTable(props) {
|
|
|
389
393
|
React.createElement(Td, { className: !isColumnVisible('type') ? Visibility.hidden : '', "data-label": "Support type" }, row.case_type),
|
|
390
394
|
React.createElement(Td, { className: !isColumnVisible('closedDate') ? Visibility.hidden : '', "data-label": "Closed date" }, row.case_closedDate ? formatDate(row.case_closedDate) : ''),
|
|
391
395
|
React.createElement(Td, { className: !isColumnVisible('folderName') ? Visibility.hidden : '', "data-label": "Group" }, row.case_folderName ? row.case_folderName : ''))))))),
|
|
392
|
-
React.createElement("footer", { className: "toolbar-pagination", "data-tracking-id": "case-list-table-pagination" },
|
|
393
|
-
React.createElement(TablePagination, { perPage: (_e = props === null || props === void 0 ? void 0 : props.paginationInfo) === null || _e === void 0 ? void 0 : _e.pageSize, currentPage: (_f = props === null || props === void 0 ? void 0 : props.paginationInfo) === null || _f === void 0 ? void 0 : _f.currentPage, onPerPageSelect: onPerPageSelect, onSetPage: onBottomPaginationSetPage, variant: PaginationVariant.bottom, itemCount: getItemCount() })))));
|
|
396
|
+
caseListData.length > 9 && (React.createElement("footer", { className: "toolbar-pagination", "data-tracking-id": "case-list-table-pagination" },
|
|
397
|
+
React.createElement(TablePagination, { perPage: (_e = props === null || props === void 0 ? void 0 : props.paginationInfo) === null || _e === void 0 ? void 0 : _e.pageSize, currentPage: (_f = props === null || props === void 0 ? void 0 : props.paginationInfo) === null || _f === void 0 ? void 0 : _f.currentPage, onPerPageSelect: onPerPageSelect, onSetPage: onBottomPaginationSetPage, variant: PaginationVariant.bottom, itemCount: getItemCount() }))))));
|
|
394
398
|
}
|
|
@@ -269,7 +269,7 @@ export default function DownloadCSVFileModal(props) {
|
|
|
269
269
|
React.createElement(Checkbox, { className: "nested", label: t('Case ID'), defaultChecked: true, isDisabled: true, id: "controlled-check-2", name: "check2" }),
|
|
270
270
|
generateCheckboxes(csvHeadersOne)),
|
|
271
271
|
React.createElement(GridItem, { span: 6 },
|
|
272
|
-
React.createElement(Checkbox, { className: "nested", label: t('
|
|
272
|
+
React.createElement(Checkbox, { className: "nested", label: t('Problem description'), defaultChecked: true, isDisabled: true, id: "controlled-check-3", name: "check3" }),
|
|
273
273
|
generateCheckboxes(csvHeadersTwo))))));
|
|
274
274
|
};
|
|
275
275
|
const downloadCSVModalDescription = (numberOfCases) => {
|
package/lib/esm/css/caseList.css
CHANGED
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
border-right: var(--pf-v5-c-table--border-width--base) solid var(--pf-v5-c-table--BorderColor);
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
/*
|
|
505
|
+
/* Problem description Header */
|
|
506
506
|
th#summary.pf-v5-c-table__th,
|
|
507
507
|
.case-list-table tbody > tr > :nth-child(3) {
|
|
508
508
|
min-width: 270px !important;
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
@media (min-width: 1800px) {
|
|
548
|
-
/*
|
|
548
|
+
/* Problem description */
|
|
549
549
|
th#summary.pf-v5-c-table__th,
|
|
550
550
|
.case-list-table tbody > tr > :nth-child(3) {
|
|
551
551
|
min-width: 500px !important;
|
package/lib/esm/enums/case.js
CHANGED
|
@@ -61,7 +61,7 @@ export const caseListSortColumnIdsToSFDCMap = {
|
|
|
61
61
|
};
|
|
62
62
|
export const caseTableColumSortNamesMap = {
|
|
63
63
|
[CaseListColumnIds.caseId]: 'Case ID',
|
|
64
|
-
[CaseListColumnIds.summary]: '
|
|
64
|
+
[CaseListColumnIds.summary]: 'Problem description',
|
|
65
65
|
[CaseListColumnIds.severity]: 'Severity',
|
|
66
66
|
[CaseListColumnIds.owner]: 'Owner',
|
|
67
67
|
[CaseListColumnIds.created]: 'Created date',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.61",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@patternfly/patternfly": "5.1.0",
|
|
44
44
|
"@patternfly/react-core": "5.1.1",
|
|
45
45
|
"@patternfly/react-table": "5.1.1",
|
|
46
|
-
"@rh-support/components": "2.1.
|
|
47
|
-
"@rh-support/react-context": "2.1.
|
|
46
|
+
"@rh-support/components": "2.1.47",
|
|
47
|
+
"@rh-support/react-context": "2.1.52",
|
|
48
48
|
"@rh-support/types": "2.0.3",
|
|
49
|
-
"@rh-support/user-permissions": "2.1.
|
|
50
|
-
"@rh-support/utils": "2.1.
|
|
49
|
+
"@rh-support/user-permissions": "2.1.34",
|
|
50
|
+
"@rh-support/utils": "2.1.24",
|
|
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": "b3b0fd899e604b6693213eefc4f1d3ca54655040"
|
|
100
100
|
}
|