@projectcaluma/ember-testing 11.0.0-beta.5 → 11.0.0-beta.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ # [@projectcaluma/ember-testing-v11.0.0-beta.8](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.7...@projectcaluma/ember-testing-v11.0.0-beta.8) (2022-05-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * **distribution:** add status for skipped inquiries ([1f93c92](https://github.com/projectcaluma/ember-caluma/commit/1f93c92d76b697954ec54aefa12348c84cd0abf9))
7
+
8
+ # [@projectcaluma/ember-testing-v11.0.0-beta.7](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.6...@projectcaluma/ember-testing-v11.0.0-beta.7) (2022-05-09)
9
+
10
+
11
+ ### Features
12
+
13
+ * **distribution:** allow displaying more information in the answer ([9de7f01](https://github.com/projectcaluma/ember-caluma/commit/9de7f0149406a0a326ba59ca0abe27860a64f2a1))
14
+ * **distribution:** improve edit and answer inquiry UI and UX ([6cd2dee](https://github.com/projectcaluma/ember-caluma/commit/6cd2dee45dde245064a0ac013160093bc783789c))
15
+
16
+ # [@projectcaluma/ember-testing-v11.0.0-beta.6](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.5...@projectcaluma/ember-testing-v11.0.0-beta.6) (2022-04-07)
17
+
18
+
19
+ ### Features
20
+
21
+ * **cf-field:** add optional hints for form fields ([d847fbf](https://github.com/projectcaluma/ember-caluma/commit/d847fbffa376ea60971fb9e91aff8bf54ce77d50))
22
+ * **distribution:** enable completing the distribution ([beabe61](https://github.com/projectcaluma/ember-caluma/commit/beabe61bd34025c4785c1e1ba60c59babb3eb6ab))
23
+
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ * **cf-field:** Question hints requires Caluma >= v7.15.0
28
+
29
+ Add option to create hints for certain question types. These
30
+ are displayed below the input field and can be used to provide
31
+ short, informative messages. Hints are available for all question
32
+ types except for form, static and action button questions.
33
+
1
34
  # [@projectcaluma/ember-testing-v11.0.0-beta.5](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-testing-v11.0.0-beta.4...@projectcaluma/ember-testing-v11.0.0-beta.5) (2022-03-23)
2
35
 
3
36
 
@@ -29,7 +29,7 @@ export default class BaseFilter {
29
29
  return filters.map(({ key, value, options = {} }) => {
30
30
  const fn = this[key];
31
31
 
32
- return typeof fn === "function"
32
+ return typeof fn === "function" && ![null, undefined].includes(value)
33
33
  ? (records) => fn.call(this, records, value, options)
34
34
  : (records) => records;
35
35
  });
@@ -53,7 +53,7 @@ export default class BaseFilter {
53
53
  }
54
54
 
55
55
  filter(records, filters) {
56
- return this._getFilterFns(filters.filter ?? filters).reduce(
56
+ return this._getFilterFns(filters?.filter ?? filters ?? []).reduce(
57
57
  (recs, fn) => fn(recs),
58
58
  this.sort(records, filters?.order)
59
59
  );
@@ -101,6 +101,18 @@ export default class WorkItemMock extends BaseMock {
101
101
  status: "READY",
102
102
  addressedGroups: workItem.addressedGroups,
103
103
  });
104
+ } else if (taskId === "complete-distribution") {
105
+ this.collection
106
+ .where({ caseId, status: "READY", taskId: "inquiry" })
107
+ .update({ status: "SKIPPED" });
108
+
109
+ this.collection
110
+ .where({ caseId, status: "READY" })
111
+ .update({ status: "CANCELED" });
112
+
113
+ this.collection
114
+ .where({ caseId, status: "SUSPENDED" })
115
+ .update({ status: "CANCELED" });
104
116
  }
105
117
 
106
118
  return this.handleSavePayload.fn.call(this, _, {