@bloom-housing/ui-components 2.0.0-alpha.21 → 2.0.0-alpha.25

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
@@ -3,6 +3,89 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-alpha.25](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.24...@bloom-housing/ui-components@2.0.0-alpha.25) (2021-11-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * reverts preferences to re-add as breaking/major bump ([4f7d893](https://github.com/bloom-housing/bloom/commit/4f7d89327361b3b28b368c23cfd24e6e8123a0a8))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.0.0-alpha.24](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.23...@bloom-housing/ui-components@2.0.0-alpha.24) (2021-10-30)
18
+
19
+ **Note:** Version bump only for package @bloom-housing/ui-components
20
+
21
+
22
+
23
+
24
+
25
+ # [2.0.0-alpha.23](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.22...@bloom-housing/ui-components@2.0.0-alpha.23) (2021-10-30)
26
+
27
+
28
+ * Preferences cleanup (#1947) ([7329a58](https://github.com/bloom-housing/bloom/commit/7329a58cc9242faf647459e46de1e3cff3fe9c9d)), closes [#1947](https://github.com/bloom-housing/bloom/issues/1947)
29
+
30
+
31
+ ### BREAKING CHANGES
32
+
33
+ * Preferences are now M-N relation with a listing and have an intermediate table with ordinal number
34
+
35
+ * refactor(backend): preferences deduplication
36
+
37
+ So far each listing referenced it's own unique Preferences. This change introduces Many to Many
38
+ relationship between Preference and Listing entity and forces sharing Preferences between listings.
39
+
40
+ * feat(backend): extend preferences migration with moving existing relations to a new intermediate tab
41
+
42
+ * feat(backend): add Preference - Jurisdiction ManyToMany relation
43
+
44
+ * feat: adapt frontend to backend changes
45
+
46
+ * fix(backend): typeORM preferences select statement
47
+
48
+ * fix(backend): connect preferences with jurisdictions in seeds, fix pref filter validator
49
+
50
+ * fix(backend): fix missing import in preferences-filter-params.ts
51
+
52
+ * refactor: rebase issue
53
+
54
+ * feat: uptake jurisdictional preferences
55
+
56
+ * fix: fixup tests
57
+
58
+ * fix: application preferences ignore page, always separate
59
+
60
+ * Remove page from src/migration/1633359409242-add-listing-preferences-intermediate-relation.ts
61
+
62
+ * fix: preference fetching and ordering/pages
63
+
64
+ * Fix code style issues with Prettier
65
+
66
+ * fix(backend): query User__leasingAgentInListings__jurisdiction_User__leasingAgentIn specified more
67
+
68
+ * fix: perferences cypress tests
69
+
70
+ Co-authored-by: Emily Jablonski <emily.jablonski@exygy.com>
71
+ Co-authored-by: Sean Albert <smabert@gmail.com>
72
+ Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
73
+
74
+
75
+
76
+
77
+
78
+ # [2.0.0-alpha.22](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.21...@bloom-housing/ui-components@2.0.0-alpha.22) (2021-10-29)
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * adding unit tests to the unit type ([#2091](https://github.com/bloom-housing/bloom/issues/2091)) ([1f8d709](https://github.com/bloom-housing/bloom/commit/1f8d7094e508337131d3033476cd70c2befaecd0))
84
+
85
+
86
+
87
+
88
+
6
89
  # [2.0.0-alpha.21](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@2.0.0-alpha.20...@bloom-housing/ui-components@2.0.0-alpha.21) (2021-10-29)
7
90
 
8
91
  **Note:** Version bump only for package @bloom-housing/ui-components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.25",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/bloom/tree/master/shared/ui-components",
@@ -69,7 +69,7 @@
69
69
  "webpack": "^4.44.2"
70
70
  },
71
71
  "dependencies": {
72
- "@bloom-housing/backend-core": "^2.0.0-pre-tailwind.12",
72
+ "@bloom-housing/backend-core": "^2.0.0-pre-tailwind.15",
73
73
  "@mapbox/mapbox-sdk": "^0.13.0",
74
74
  "@types/body-scroll-lock": "^2.6.1",
75
75
  "@types/jwt-decode": "^2.2.1",
@@ -100,5 +100,5 @@
100
100
  "tailwindcss": "2.2.10",
101
101
  "typesafe-actions": "^5.1.0"
102
102
  },
103
- "gitHead": "33c95bac7ca1bf350c1be7f42430444338a50718"
103
+ "gitHead": "0501de071983ab485b06e78a9ff223d6ab1d6134"
104
104
  }
@@ -21,7 +21,7 @@ export const getUniqueUnitTypes = (units: Unit[]): GetUnitTypeNamesReturn[] => {
21
21
 
22
22
  if (!id || !name) return acc
23
23
 
24
- const unitTypeExists = acc.find((item) => item.id === id)
24
+ const unitTypeExists = acc.some((item) => item.id === id)
25
25
 
26
26
  if (!unitTypeExists) {
27
27
  acc.push({