@zeniai/client-epic-state 4.8.32 → 4.8.34

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.
@@ -31,8 +31,8 @@ const filterItemOnRangeCategoryType = (valueForItem, currentFilter) => {
31
31
  const currentValue = valueForItem;
32
32
  const lowerValue = currentFilter.values[0];
33
33
  const higherValue = currentFilter.values[1];
34
- if (currentValue.isAfter(lowerValue) &&
35
- currentValue.isBefore(higherValue)) {
34
+ if (currentValue.isSameOrAfter(lowerValue) &&
35
+ currentValue.isSameOrBefore(higherValue)) {
36
36
  doesItemFallInValueRange = true;
37
37
  }
38
38
  }
@@ -120,7 +120,8 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
120
120
  }
121
121
  return false;
122
122
  }
123
- else if (currentFilter.field === 'status' &&
123
+ else if ((currentFilter.field === 'status' ||
124
+ currentFilter.field === 'assignee') &&
124
125
  Array.isArray(categoryValue)) {
125
126
  return (0, exports.filterItemOnCategoriesWithMultipleValues)(categoryValue, currentFilter);
126
127
  }
@@ -14,7 +14,14 @@ exports.initialState = {
14
14
  },
15
15
  filters: {
16
16
  categoryCombinationOperator: 'AND',
17
- categories: [],
17
+ categories: [
18
+ {
19
+ field: 'status',
20
+ matchingOperator: 'not-equal',
21
+ values: ['resolved'],
22
+ valuesCombinationOperator: 'ANY',
23
+ },
24
+ ],
18
25
  },
19
26
  hasValidState() {
20
27
  return this.fetchState == 'Completed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.32",
3
+ "version": "4.8.34",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",