@bloom-housing/ui-components 4.1.2 → 4.1.3-alpha.2

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +360 -2
  2. package/package.json +3 -3
  3. package/scripts/duplicate-translations.ts +50 -0
  4. package/scripts/missing-translations.ts +52 -0
  5. package/scripts/reformat-strings.ts +68 -0
  6. package/scripts/unused-foreign-keys.ts +50 -0
  7. package/src/blocks/ImageCard.scss +3 -31
  8. package/src/blocks/ImageCard.tsx +41 -16
  9. package/src/forms/DOBField.tsx +3 -3
  10. package/src/forms/DateField.tsx +3 -3
  11. package/src/forms/HouseholdSizeField.tsx +1 -1
  12. package/src/forms/TimeField.tsx +1 -1
  13. package/src/global/text.scss +30 -0
  14. package/src/headers/Heading.tsx +17 -6
  15. package/src/helpers/useMutate.ts +11 -1
  16. package/src/locales/es.json +629 -900
  17. package/src/locales/general.json +913 -1759
  18. package/src/locales/tl.json +1 -3
  19. package/src/locales/vi.json +631 -901
  20. package/src/locales/zh.json +631 -901
  21. package/src/navigation/FooterNav.scss +1 -2
  22. package/src/navigation/FooterNav.tsx +2 -3
  23. package/src/notifications/ApplicationStatus.tsx +22 -15
  24. package/src/page_components/forgot-password/FormForgotPassword.tsx +3 -9
  25. package/src/page_components/listing/ListingCard.scss +9 -11
  26. package/src/page_components/listing/ListingCard.tsx +131 -47
  27. package/src/page_components/sign-in/FormSignIn.tsx +4 -9
  28. package/src/page_components/sign-in/FormSignInAddPhone.tsx +3 -3
  29. package/src/page_components/sign-in/FormSignInErrorBox.tsx +21 -9
  30. package/src/page_components/sign-in/FormSignInMFACode.tsx +8 -3
  31. package/src/page_components/sign-in/FormSignInMFAType.tsx +7 -3
  32. package/src/locales/general_OLD.json +0 -868
  33. package/src/locales/missing-translations.ts +0 -72
package/CHANGELOG.md CHANGED
@@ -3,9 +3,35 @@
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
- ## [4.1.2](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.1.1...@bloom-housing/ui-components@4.1.2) (2022-03-29)
6
+ ## [4.1.3-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.3-alpha.1...@bloom-housing/ui-components@4.1.3-alpha.2) (2022-04-04)
7
7
 
8
8
 
9
+ ### Features
10
+
11
+ * listing card title redesign, multiple tags possible ([#2531](https://github.com/bloom-housing/bloom/issues/2531)) ([2b795cb](https://github.com/bloom-housing/bloom/commit/2b795cb6c47c084937e996332d1583e9e5bcbc54))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.1.3-alpha.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.3-alpha.0...@bloom-housing/ui-components@4.1.3-alpha.1) (2022-04-04)
18
+
19
+ **Note:** Version bump only for package @bloom-housing/ui-components
20
+
21
+
22
+
23
+
24
+
25
+ ## [4.1.3-alpha.0](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.2-alpha.3...@bloom-housing/ui-components@4.1.3-alpha.0) (2022-03-30)
26
+
27
+ **Note:** Version bump only for package @bloom-housing/ui-components
28
+
29
+
30
+
31
+
32
+
33
+ ## [4.1.2](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.1.1...@bloom-housing/ui-components@4.1.2) (2022-03-29)
34
+
9
35
  ### Features
10
36
 
11
37
  * add four new icons to the set ([#2562](https://github.com/seanmalbert/bloom/issues/2562)) ([8e961be](https://github.com/seanmalbert/bloom/commit/8e961be90a5ac88e36d6ce54982004456f64c617))
@@ -13,18 +39,350 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
13
39
 
14
40
 
15
41
 
42
+ ## [4.1.2-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.2-alpha.2...@bloom-housing/ui-components@4.1.2-alpha.3) (2022-03-29)
43
+
44
+ **Note:** Version bump only for package @bloom-housing/ui-components
45
+
46
+
47
+
48
+
49
+
50
+ ## [4.1.2-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.2-alpha.1...@bloom-housing/ui-components@4.1.2-alpha.2) (2022-03-29)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * removed unused partner footer links ([#2590](https://github.com/bloom-housing/bloom/issues/2590)) ([318d42e](https://github.com/bloom-housing/bloom/commit/318d42e01f5374c7cd2d3e7b35a4bb44e3659c94))
56
+
57
+
58
+
59
+
60
+
61
+ ## [4.1.2-alpha.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.2-alpha.0...@bloom-housing/ui-components@4.1.2-alpha.1) (2022-03-28)
62
+
63
+
64
+ ### Features
65
+
66
+ * adds partners re-request confirmation ([#2574](https://github.com/bloom-housing/bloom/issues/2574)) ([235af78](https://github.com/bloom-housing/bloom/commit/235af781914e5c36104bb3862dd55152a16e6750)), closes [#2577](https://github.com/bloom-housing/bloom/issues/2577)
67
+
68
+
69
+
70
+
71
+
72
+ ## [4.1.2-alpha.0](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.5...@bloom-housing/ui-components@4.1.2-alpha.0) (2022-03-28)
73
+
74
+
75
+ * 2022 03 28 sync master (#2593) ([580283d](https://github.com/bloom-housing/bloom/commit/580283da22246b7d39978e7dfa08016b2c0c3757)), closes [#2593](https://github.com/bloom-housing/bloom/issues/2593) [#2037](https://github.com/bloom-housing/bloom/issues/2037) [#2095](https://github.com/bloom-housing/bloom/issues/2095) [#2162](https://github.com/bloom-housing/bloom/issues/2162) [#2293](https://github.com/bloom-housing/bloom/issues/2293) [#2295](https://github.com/bloom-housing/bloom/issues/2295) [#2296](https://github.com/bloom-housing/bloom/issues/2296) [#2294](https://github.com/bloom-housing/bloom/issues/2294) [#2277](https://github.com/bloom-housing/bloom/issues/2277) [#2299](https://github.com/bloom-housing/bloom/issues/2299) [#2292](https://github.com/bloom-housing/bloom/issues/2292) [#2308](https://github.com/bloom-housing/bloom/issues/2308) [#2239](https://github.com/bloom-housing/bloom/issues/2239) [#2311](https://github.com/bloom-housing/bloom/issues/2311) [#2230](https://github.com/bloom-housing/bloom/issues/2230) [#2302](https://github.com/bloom-housing/bloom/issues/2302) [#2288](https://github.com/bloom-housing/bloom/issues/2288) [#2317](https://github.com/bloom-housing/bloom/issues/2317) [#2386](https://github.com/bloom-housing/bloom/issues/2386) [#2215](https://github.com/bloom-housing/bloom/issues/2215) [#2303](https://github.com/bloom-housing/bloom/issues/2303) [#2410](https://github.com/bloom-housing/bloom/issues/2410) [#2430](https://github.com/bloom-housing/bloom/issues/2430) [#2439](https://github.com/bloom-housing/bloom/issues/2439) [#2196](https://github.com/bloom-housing/bloom/issues/2196) [#2238](https://github.com/bloom-housing/bloom/issues/2238) [#2226](https://github.com/bloom-housing/bloom/issues/2226) [#2230](https://github.com/bloom-housing/bloom/issues/2230) [#2243](https://github.com/bloom-housing/bloom/issues/2243) [#2195](https://github.com/bloom-housing/bloom/issues/2195) [#2215](https://github.com/bloom-housing/bloom/issues/2215) [#2266](https://github.com/bloom-housing/bloom/issues/2266) [#2188](https://github.com/bloom-housing/bloom/issues/2188) [#2270](https://github.com/bloom-housing/bloom/issues/2270) [#2188](https://github.com/bloom-housing/bloom/issues/2188) [#2213](https://github.com/bloom-housing/bloom/issues/2213) [#2234](https://github.com/bloom-housing/bloom/issues/2234) [#1901](https://github.com/bloom-housing/bloom/issues/1901) [#2260](https://github.com/bloom-housing/bloom/issues/2260) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#2280](https://github.com/bloom-housing/bloom/issues/2280) [#2253](https://github.com/bloom-housing/bloom/issues/2253) [#2276](https://github.com/bloom-housing/bloom/issues/2276) [#2282](https://github.com/bloom-housing/bloom/issues/2282) [#2262](https://github.com/bloom-housing/bloom/issues/2262) [#2278](https://github.com/bloom-housing/bloom/issues/2278) [#2293](https://github.com/bloom-housing/bloom/issues/2293) [#2295](https://github.com/bloom-housing/bloom/issues/2295) [#2296](https://github.com/bloom-housing/bloom/issues/2296) [#2294](https://github.com/bloom-housing/bloom/issues/2294) [#2277](https://github.com/bloom-housing/bloom/issues/2277) [#2290](https://github.com/bloom-housing/bloom/issues/2290) [#2299](https://github.com/bloom-housing/bloom/issues/2299) [#2292](https://github.com/bloom-housing/bloom/issues/2292) [#2303](https://github.com/bloom-housing/bloom/issues/2303) [#2305](https://github.com/bloom-housing/bloom/issues/2305) [#2306](https://github.com/bloom-housing/bloom/issues/2306) [#2308](https://github.com/bloom-housing/bloom/issues/2308) [#2190](https://github.com/bloom-housing/bloom/issues/2190) [#2239](https://github.com/bloom-housing/bloom/issues/2239) [#2311](https://github.com/bloom-housing/bloom/issues/2311) [#2302](https://github.com/bloom-housing/bloom/issues/2302) [#2301](https://github.com/bloom-housing/bloom/issues/2301) [#1927](https://github.com/bloom-housing/bloom/issues/1927) [#2313](https://github.com/bloom-housing/bloom/issues/2313) [#2289](https://github.com/bloom-housing/bloom/issues/2289) [#2279](https://github.com/bloom-housing/bloom/issues/2279) [#2288](https://github.com/bloom-housing/bloom/issues/2288) [#2317](https://github.com/bloom-housing/bloom/issues/2317) [#2319](https://github.com/bloom-housing/bloom/issues/2319) [#2108](https://github.com/bloom-housing/bloom/issues/2108) [#2326](https://github.com/bloom-housing/bloom/issues/2326) [#2349](https://github.com/bloom-housing/bloom/issues/2349) [#2350](https://github.com/bloom-housing/bloom/issues/2350) [#2351](https://github.com/bloom-housing/bloom/issues/2351) [#2348](https://github.com/bloom-housing/bloom/issues/2348) [#2352](https://github.com/bloom-housing/bloom/issues/2352) [#2316](https://github.com/bloom-housing/bloom/issues/2316) [#2356](https://github.com/bloom-housing/bloom/issues/2356) [#2353](https://github.com/bloom-housing/bloom/issues/2353) [#2338](https://github.com/bloom-housing/bloom/issues/2338) [#2377](https://github.com/bloom-housing/bloom/issues/2377) [#2320](https://github.com/bloom-housing/bloom/issues/2320) [#2386](https://github.com/bloom-housing/bloom/issues/2386) [#2362](https://github.com/bloom-housing/bloom/issues/2362) [#2395](https://github.com/bloom-housing/bloom/issues/2395) [#2410](https://github.com/bloom-housing/bloom/issues/2410) [#2407](https://github.com/bloom-housing/bloom/issues/2407) [#2430](https://github.com/bloom-housing/bloom/issues/2430) [#2418](https://github.com/bloom-housing/bloom/issues/2418) [#2434](https://github.com/bloom-housing/bloom/issues/2434) [#2374](https://github.com/bloom-housing/bloom/issues/2374) [#2435](https://github.com/bloom-housing/bloom/issues/2435) [#2420](https://github.com/bloom-housing/bloom/issues/2420) [#2412](https://github.com/bloom-housing/bloom/issues/2412) [#2434](https://github.com/bloom-housing/bloom/issues/2434) [#2458](https://github.com/bloom-housing/bloom/issues/2458) [#2460](https://github.com/bloom-housing/bloom/issues/2460) [#2465](https://github.com/bloom-housing/bloom/issues/2465) [#2436](https://github.com/bloom-housing/bloom/issues/2436) [#2484](https://github.com/bloom-housing/bloom/issues/2484) [#2482](https://github.com/bloom-housing/bloom/issues/2482) [#2483](https://github.com/bloom-housing/bloom/issues/2483) [#2488](https://github.com/bloom-housing/bloom/issues/2488) [#2485](https://github.com/bloom-housing/bloom/issues/2485) [#2519](https://github.com/bloom-housing/bloom/issues/2519) [#2506](https://github.com/bloom-housing/bloom/issues/2506) [#2534](https://github.com/bloom-housing/bloom/issues/2534) [#2544](https://github.com/bloom-housing/bloom/issues/2544) [#2550](https://github.com/bloom-housing/bloom/issues/2550) [#2288](https://github.com/bloom-housing/bloom/issues/2288) [#2317](https://github.com/bloom-housing/bloom/issues/2317) [#2319](https://github.com/bloom-housing/bloom/issues/2319) [#2108](https://github.com/bloom-housing/bloom/issues/2108) [#2326](https://github.com/bloom-housing/bloom/issues/2326) [#2349](https://github.com/bloom-housing/bloom/issues/2349) [#2350](https://github.com/bloom-housing/bloom/issues/2350) [#2351](https://github.com/bloom-housing/bloom/issues/2351) [#2348](https://github.com/bloom-housing/bloom/issues/2348) [#2352](https://github.com/bloom-housing/bloom/issues/2352) [#2316](https://github.com/bloom-housing/bloom/issues/2316) [#2356](https://github.com/bloom-housing/bloom/issues/2356) [#2353](https://github.com/bloom-housing/bloom/issues/2353) [#2338](https://github.com/bloom-housing/bloom/issues/2338) [#2377](https://github.com/bloom-housing/bloom/issues/2377) [#2320](https://github.com/bloom-housing/bloom/issues/2320) [#2386](https://github.com/bloom-housing/bloom/issues/2386) [#2362](https://github.com/bloom-housing/bloom/issues/2362) [#2395](https://github.com/bloom-housing/bloom/issues/2395) [#2410](https://github.com/bloom-housing/bloom/issues/2410) [#2407](https://github.com/bloom-housing/bloom/issues/2407) [#2430](https://github.com/bloom-housing/bloom/issues/2430) [#2418](https://github.com/bloom-housing/bloom/issues/2418) [#2434](https://github.com/bloom-housing/bloom/issues/2434) [#2374](https://github.com/bloom-housing/bloom/issues/2374) [#2435](https://github.com/bloom-housing/bloom/issues/2435) [#2420](https://github.com/bloom-housing/bloom/issues/2420) [#2412](https://github.com/bloom-housing/bloom/issues/2412) [#2438](https://github.com/bloom-housing/bloom/issues/2438) [#2429](https://github.com/bloom-housing/bloom/issues/2429) [#2452](https://github.com/bloom-housing/bloom/issues/2452) [#2458](https://github.com/bloom-housing/bloom/issues/2458) [#2423](https://github.com/bloom-housing/bloom/issues/2423) [#2432](https://github.com/bloom-housing/bloom/issues/2432) [#2437](https://github.com/bloom-housing/bloom/issues/2437) [#2440](https://github.com/bloom-housing/bloom/issues/2440) [#2441](https://github.com/bloom-housing/bloom/issues/2441) [#2460](https://github.com/bloom-housing/bloom/issues/2460) [#2459](https://github.com/bloom-housing/bloom/issues/2459) [#2464](https://github.com/bloom-housing/bloom/issues/2464) [#2465](https://github.com/bloom-housing/bloom/issues/2465) [#2466](https://github.com/bloom-housing/bloom/issues/2466) [#2436](https://github.com/bloom-housing/bloom/issues/2436) [#2451](https://github.com/bloom-housing/bloom/issues/2451) [#2415](https://github.com/bloom-housing/bloom/issues/2415) [#2354](https://github.com/bloom-housing/bloom/issues/2354) [#2455](https://github.com/bloom-housing/bloom/issues/2455) [#2484](https://github.com/bloom-housing/bloom/issues/2484) [#2482](https://github.com/bloom-housing/bloom/issues/2482) [#2483](https://github.com/bloom-housing/bloom/issues/2483) [#2476](https://github.com/bloom-housing/bloom/issues/2476) [#2485](https://github.com/bloom-housing/bloom/issues/2485) [#2470](https://github.com/bloom-housing/bloom/issues/2470) [#2488](https://github.com/bloom-housing/bloom/issues/2488) [#2487](https://github.com/bloom-housing/bloom/issues/2487) [#2496](https://github.com/bloom-housing/bloom/issues/2496) [#2498](https://github.com/bloom-housing/bloom/issues/2498) [#2499](https://github.com/bloom-housing/bloom/issues/2499) [#2291](https://github.com/bloom-housing/bloom/issues/2291) [#2461](https://github.com/bloom-housing/bloom/issues/2461) [#2485](https://github.com/bloom-housing/bloom/issues/2485) [#2494](https://github.com/bloom-housing/bloom/issues/2494) [#2503](https://github.com/bloom-housing/bloom/issues/2503) [#2495](https://github.com/bloom-housing/bloom/issues/2495) [#2477](https://github.com/bloom-housing/bloom/issues/2477) [#2505](https://github.com/bloom-housing/bloom/issues/2505) [#2372](https://github.com/bloom-housing/bloom/issues/2372) [#2489](https://github.com/bloom-housing/bloom/issues/2489) [#2497](https://github.com/bloom-housing/bloom/issues/2497) [#2506](https://github.com/bloom-housing/bloom/issues/2506) [#2486](https://github.com/bloom-housing/bloom/issues/2486)
76
+
77
+
78
+ ### BREAKING CHANGES
79
+
80
+ * preferences model and relationships changed
81
+
82
+ * feat: feat(backend): extend UserUpdateDto to support email change
83
+
84
+ picked from dev 3e1fdbd0ea91d4773973d5c485a5ba61303db90a
85
+
86
+ * fix: 2056/user account edit fix
87
+
88
+ picked from dev a15618c0cb548ff5b2ae913b802c9e08bb673f30
89
+
90
+ * refactor: 2085/adds top level catchAll exception filter
91
+
92
+ picked from dev aeaa63d1af1fa3d11671e169cb3bd23d356fface
93
+
94
+ * feat: feat: Change unit number field type to text
95
+
96
+ picked from dev f54be7c7ba6aac8e00fee610dc86584b60cc212d
97
+
98
+ * feat(backend): improve application flagged set saving efficiency
99
+
100
+ * fix: fix: updates address order
101
+
102
+ picked from dev 252e014dcbd2e4c305384ed552135f5a8e4e4767
103
+
104
+ * fix: sets programs to optoinal and updates versions
105
+
106
+ * chore: chore(deps): bump electron from 13.1.7 to 13.3.0
107
+
108
+ * chore: chore(deps): bump axios from 0.21.1 to 0.21.2
109
+
110
+ * fix: adds programs service
111
+
112
+ * fix: fix lisitng e2e tests
113
+
114
+ * fix: fix member tests
115
+
116
+ * fix: adds jurisdictionId to useSWR path
117
+
118
+ * fix: recalculate units available on listing update
119
+
120
+ picked form dev f1a3dbce6478b16542ed61ab20de5dfb9b797262
121
+
122
+ * feat: feat(backend): make use of new application confirmation codes
123
+
124
+ picked from dev 3c45c2904818200eed4568931d4cc352fd2f449e
125
+
126
+ * revert: revert "chore(deps): bump axios from 0.21.1 to 0.21.2
127
+
128
+ picked from dev 2b83bc0393afc42eed542e326d5ef75502ce119c
129
+
130
+ * fix: app submission w/ no due date
131
+
132
+ picked from dev 4af1f5a8448f16d347b4a65ecb85fda4d6ed71fc
133
+
134
+ * feat: adds new preferences, reserved community type
135
+
136
+ * feat: adds bottom border to preferences
137
+
138
+ * feat: updates preference string
139
+
140
+ * fix: preference cleanup for avance
141
+
142
+ * refactor: remove applicationAddress
143
+
144
+ picked from dev bf10632a62bf2f14922948c046ea3352ed010f4f
145
+
146
+ * feat: refactor and add public site application flow cypress tests
147
+
148
+ picked from dev 9ec0e8d05f9570773110754e7fdaf49254d1eab8
149
+
150
+ * feat: better seed data for ami-charts
151
+
152
+ picked from dev d8b1d4d185731a589c563a32bd592d01537785f3
153
+
154
+ * feat: adds listing management cypress tests to partner portal
155
+
156
+ * fix: listings management keep empty strings, remove empty objects
157
+
158
+ picked from dev c4b1e833ec128f457015ac7ffa421ee6047083d9
159
+
160
+ * feat: one month rent
161
+
162
+ picked from dev 883b0d53030e1c4d54f2f75bd5e188bb1d255f64
163
+
164
+ * test: view.spec.ts test
165
+
166
+ picked from dev 324446c90138d8fac50aba445f515009b5a58bfb
167
+
168
+ * refactor: removes jsonpath
169
+
170
+ picked from dev deb39acc005607ce3076942b1f49590d08afc10c
171
+
172
+ * feat: adds jurisdictions to pref seeds
173
+
174
+ picked from dev 9e47cec3b1acfe769207ccbb33c07019cd742e33
175
+
176
+ * feat: new demographics sub-race questions
177
+
178
+ picked from dev 9ab892694c1ad2fa8890b411b3b32af68ade1fc3
179
+
180
+ * feat: updates email confirmation for lottery
181
+
182
+ picked from dev 1a5e824c96d8e23674c32ea92688b9f7255528d3
183
+
184
+ * fix: add ariaHidden to Icon component
185
+
186
+ picked from dev c7bb86aec6fd5ad386c7ca50087d0113b14503be
187
+
188
+ * fix: add ariaLabel prop to Button component
189
+
190
+ picked from dev 509ddc898ba44c05e26f8ed8c777f1ba456eeee5
191
+
192
+ * fix: change the yes/no radio text to be more descriptive
193
+
194
+ picked from dev 0c46054574535523d6f217bb0677bbe732b8945f
195
+
196
+ * fix: remove alameda reference in demographics
197
+
198
+ picked from dev 7d5991cbf6dbe0b61f2b14d265e87ce3687f743d
199
+
200
+ * chore: release version
201
+
202
+ picked from dev fe82f25dc349877d974ae62d228fea0354978fb7
203
+
204
+ * feat: ami chart jurisdictionalized
205
+
206
+ picked from dev 0a5cbc88a9d9e3c2ff716fe0f44ca6c48f5dcc50
207
+
208
+ * refactor: make backend a peer dependency in ui-components
209
+
210
+ picked from dev 952aaa14a77e0960312ff0eeee51399d1d6af9f3
211
+
212
+ * feat: add a phone number column to the user_accounts table
213
+
214
+ picked from dev 2647df9ab9888a525cc8a164d091dda6482c502a
215
+
216
+ * chore: removes application program partners
217
+
218
+ * chore: removes application program display
219
+
220
+ * Revert "chore: removes application program display"
221
+
222
+ This reverts commit 14825b4a6c9cd1a7235e32074e32af18a71b5c26.
223
+
224
+ * Revert "chore: removes application program partners"
225
+
226
+ This reverts commit d7aa38c777972a2e21d9f816441caa27f98d3f86.
227
+
228
+ * chore: yarn.lock and backend-swagger
229
+
230
+ * fix: removes Duplicate identifier fieldGroupObjectToArray
231
+
232
+ * feat: skip preferences if not on listing
233
+
234
+ * chore(release): version
235
+
236
+ * fix: cannot save custom mailing, dropoff, or pickup address
237
+
238
+ * chore(release): version
239
+
240
+ * chore: converge on one axios version, remove peer dependency
241
+
242
+ * chore(release): version
243
+
244
+ * feat: simplify Waitlist component and use more flexible schema
245
+
246
+ * chore(release): version
247
+
248
+ * fix: lottery results uploads now save
249
+
250
+ * chore(release): version
251
+
252
+ * feat: add SRO unit type
253
+
254
+ * chore(release): version
255
+
256
+ * fix: paper application submission
257
+
258
+ * chore(release): version
259
+
260
+ * fix: choose-language context
261
+
262
+ * chore(release): version
263
+
264
+ * fix: applications/view hide prefs
265
+
266
+ * chore(release): version
267
+
268
+ * feat: overrides fallback to english, tagalog support
269
+
270
+ * chore(release): version
271
+
272
+ * fix: account translations
273
+
274
+ * chore(release): version
275
+
276
+ * fix: units with invalid ami chart
277
+
278
+ * chore(release): version
279
+
280
+ * fix: remove description for the partners programs
281
+
282
+ * fix: fix modal styles on mobile
283
+
284
+ * fix: visual improvement to programs form display
285
+
286
+ * fix: submission tests not running
287
+ * sign-in pages have been updated
288
+ * moved some helpers from ui-components to shared-helpers
289
+ * remove applicationDueTime field and consolidated into applicationDueDate
290
+
291
+ * chore(release): version
292
+
293
+ - @bloom-housing/backend-core@3.0.2-alpha.13
294
+ - @bloom-housing/shared-helpers@4.0.1-alpha.21
295
+ - @bloom-housing/partners@4.0.1-alpha.23
296
+ - @bloom-housing/public@4.0.1-alpha.22
297
+ - @bloom-housing/ui-components@4.0.1-alpha.21
298
+ * moved some helpers from ui-components to shared-helpers
299
+ * remove applicationDueTime field and consolidated into applicationDueDate
300
+
301
+ * chore(release): version
302
+
303
+ - @bloom-housing/backend-core@3.0.2-alpha.13
304
+ - @bloom-housing/shared-helpers@4.0.1-alpha.21
305
+ - @bloom-housing/partners@4.0.1-alpha.23
306
+ - @bloom-housing/public@4.0.1-alpha.22
307
+ - @bloom-housing/ui-components@4.0.1-alpha.21
308
+ * consolidated all event section components in one new component, uptake will require removing the deprecated components and uptaking EventSection
309
+
310
+ * chore(release): version
311
+
312
+ - @bloom-housing/backend-core@3.0.2-alpha.38
313
+ - @bloom-housing/shared-helpers@4.0.1-alpha.63
314
+ - @bloom-housing/partners@4.0.1-alpha.67
315
+ - @bloom-housing/public@4.0.1-alpha.66
316
+ - @bloom-housing/ui-components@4.0.1-alpha.62
317
+
318
+
319
+
320
+
16
321
 
17
322
  ## [4.1.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.1.0...@bloom-housing/ui-components@4.1.1) (2022-03-28)
18
323
 
324
+ ### Features
325
+
326
+ * veteran preference option translation strings ([6b25906](https://github.com/bloom-housing/bloom/commit/6b25906a9cc71532c67da3c546ba06f896bb3232))
327
+
328
+
329
+
330
+
331
+
332
+ ## [4.1.1-alpha.5](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.4...@bloom-housing/ui-components@4.1.1-alpha.5) (2022-03-28)
333
+
334
+
335
+ ### Features
336
+
337
+ ## [4.1.1-alpha.4](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.3...@bloom-housing/ui-components@4.1.1-alpha.4) (2022-03-25)
338
+
339
+ **Note:** Version bump only for package @bloom-housing/ui-components
340
+
341
+
342
+
343
+
344
+
345
+ ## [4.1.1-alpha.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.2...@bloom-housing/ui-components@4.1.1-alpha.3) (2022-03-22)
346
+
19
347
 
20
348
  ### Features
21
349
 
22
- * veteran preference option translation strings ([af83604](https://github.com/seanmalbert/bloom/commit/af836049cd4b794ef169f395bb6227e0fbbc7e46))
350
+ * allow application status bar to have custom icon color ([#2572](https://github.com/bloom-housing/bloom/issues/2572)) ([2d7c0c5](https://github.com/bloom-housing/bloom/commit/2d7c0c508b938bc58bb0efe1f5e407e7124738f4))
351
+
352
+
353
+
354
+
355
+
356
+ ## [4.1.1-alpha.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.1...@bloom-housing/ui-components@4.1.1-alpha.2) (2022-03-16)
357
+
358
+
359
+ ### Bug Fixes
360
+
361
+ * remove space between minutes and AM/PM for ApplicationStatus ([#2566](https://github.com/bloom-housing/bloom/issues/2566)) ([5440b38](https://github.com/bloom-housing/bloom/commit/5440b38f3048d17e6e76b41f0aa81f5176368af2))
362
+
23
363
 
24
364
 
25
365
 
26
366
 
367
+ ## [4.1.1-alpha.1](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.1.1-alpha.0...@bloom-housing/ui-components@4.1.1-alpha.1) (2022-03-10)
27
368
 
369
+ **Note:** Version bump only for package @bloom-housing/ui-components
370
+
371
+
372
+
373
+
374
+
375
+ ## [4.1.1-alpha.0](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.79...@bloom-housing/ui-components@4.1.1-alpha.0) (2022-03-02)
376
+
377
+ **Note:** Version bump only for package @bloom-housing/ui-components
378
+
379
+
380
+
381
+
382
+
383
+ ## [4.0.1](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.1-alpha.79...@bloom-housing/ui-components@4.0.1) (2022-03-02)
384
+
385
+ **Note:** Version bump only for package @bloom-housing/ui-components
28
386
  # [4.1.0](https://github.com/seanmalbert/bloom/compare/@bloom-housing/ui-components@4.0.3...@bloom-housing/ui-components@4.1.0) (2022-03-02)
29
387
 
30
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "4.1.2",
3
+ "version": "4.1.3-alpha.2",
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": "^4.1.2",
72
+ "@bloom-housing/backend-core": "^4.1.3-alpha.0",
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": "dd4d923cd106f5abd79e4152b2df001ef33d2607"
103
+ "gitHead": "716a84e8f320ec7b1b3a2f91c688d47246c8c7ab"
104
104
  }
@@ -0,0 +1,50 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ // Prints duplicate translation strings for cleanup
3
+ // example: `ts-node duplicate-translations > duplicated-keys.json`
4
+ const englishTranslations = require("../src/locales/general.json")
5
+ const spanishTranslations = require("../src/locales/es.json")
6
+ const chineseTranslations = require("../src/locales/zh.json")
7
+ const vietnameseTranslations = require("../src/locales/vi.json")
8
+ const tagalogTranslations = require("../src/locales/tl.json")
9
+
10
+ function main() {
11
+ type TranslationsType = {
12
+ [key: string]: string
13
+ }
14
+
15
+ const allTranslations = [
16
+ { translationKeys: englishTranslations, language: "English" },
17
+ { translationKeys: spanishTranslations, language: "Spanish" },
18
+ { translationKeys: chineseTranslations, language: "Chinese" },
19
+ { translationKeys: vietnameseTranslations, language: "Vietnamese" },
20
+ { translationKeys: tagalogTranslations, language: "Tagalog" },
21
+ ]
22
+
23
+ const getDuplicateStrings = (translations: TranslationsType) => {
24
+ const translationValues = Object.values(translations)
25
+ translationValues.forEach(() => {
26
+ translationValues.filter((value, index) => translationValues.indexOf(value) !== index)
27
+ })
28
+
29
+ const duplicates: string[] = translationValues.reduce(
30
+ (acc: string[], val, index, translationValues) => {
31
+ if (translationValues.indexOf(val) !== index && acc.indexOf(val) < 0) acc.push(val)
32
+ return acc
33
+ },
34
+ []
35
+ )
36
+
37
+ return duplicates
38
+ }
39
+
40
+ allTranslations.forEach((foreignKeys) => {
41
+ console.log("--------------------")
42
+ console.log(`Duplicate Public Site ${foreignKeys.language} Translations:`)
43
+ const duplicatePublicSiteTranslations = getDuplicateStrings(foreignKeys.translationKeys)
44
+ duplicatePublicSiteTranslations.forEach((duplicateValue) => console.log(duplicateValue))
45
+ })
46
+ }
47
+
48
+ void main()
49
+
50
+ export {}
@@ -0,0 +1,52 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ // Prints out keys/strings that exist in the english file but not in a foreign language translation file
3
+ // example: `ts-node missing-translations > missing-foreign-keys.json`
4
+ const englishTranslations = require("../src/locales/general.json")
5
+ const spanishTranslations = require("../src/locales/es.json")
6
+ const chineseTranslations = require("../src/locales/zh.json")
7
+ const vietnameseTranslations = require("../src/locales/vi.json")
8
+ const tagalogTranslations = require("../src/locales/tl.json")
9
+
10
+ function main() {
11
+ type TranslationsType = {
12
+ [key: string]: string
13
+ }
14
+
15
+ const allTranslations = [
16
+ { translationKeys: spanishTranslations, language: "Spanish" },
17
+ { translationKeys: chineseTranslations, language: "Chinese" },
18
+ { translationKeys: vietnameseTranslations, language: "Vietnamese" },
19
+ { translationKeys: tagalogTranslations, language: "Tagalog" },
20
+ ]
21
+
22
+ const findMissingStrings = (
23
+ baseTranslations: TranslationsType,
24
+ checkedTranslations: TranslationsType
25
+ ) => {
26
+ const baseKeys = Object.keys(baseTranslations)
27
+ const checkedKeys = Object.keys(checkedTranslations)
28
+ const missingKeys: string[] = []
29
+ baseKeys.forEach((key) => {
30
+ if (checkedKeys.indexOf(key) < 0) {
31
+ missingKeys.push(key)
32
+ }
33
+ })
34
+ return missingKeys
35
+ }
36
+
37
+ allTranslations.forEach((foreignKeys) => {
38
+ console.log("--------------------")
39
+ console.log(`Missing Public Site ${foreignKeys.language} Translations:`)
40
+ const missingPublicSiteTranslations = findMissingStrings(
41
+ englishTranslations,
42
+ foreignKeys.translationKeys
43
+ )
44
+ missingPublicSiteTranslations.forEach((missingKey) =>
45
+ console.log(`${missingKey}, ${JSON.stringify(englishTranslations[missingKey])}`)
46
+ )
47
+ })
48
+ }
49
+
50
+ void main()
51
+
52
+ export {}
@@ -0,0 +1,68 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ // Reformats strings to flatten the object structure
3
+ // example: `ts-node reformat-strings > flattened-keys.json`
4
+
5
+ const englishTranslations = require("../src/locales/general.json")
6
+ const spanishTranslations = require("../src/locales/es.json")
7
+ const chineseTranslations = require("../src/locales/zh.json")
8
+ const vietnameseTranslations = require("../src/locales/vi.json")
9
+ const tagalogTranslations = require("../src/locales/tl.json")
10
+
11
+ function main() {
12
+ type TranslationsType = {
13
+ [key: string]: string | TranslationsType
14
+ }
15
+
16
+ const allTranslations = [
17
+ { translationKeys: englishTranslations, language: "English" },
18
+ { translationKeys: spanishTranslations, language: "Spanish" },
19
+ { translationKeys: chineseTranslations, language: "Chinese" },
20
+ { translationKeys: vietnameseTranslations, language: "Vietnamese" },
21
+ { translationKeys: tagalogTranslations, language: "Tagalog" },
22
+ ]
23
+
24
+ const addEntry = (
25
+ translationKey: string,
26
+ parentKey: string,
27
+ baseTranslations: TranslationsType | string,
28
+ flattenedKeys: { [key: string]: string }[]
29
+ ) => {
30
+ flattenedKeys.push({
31
+ key: parentKey ? `${parentKey}.${translationKey}` : translationKey,
32
+ value: baseTranslations[translationKey],
33
+ })
34
+ }
35
+
36
+ const flattenKeys = (
37
+ baseTranslations: TranslationsType | string,
38
+ flattenedKeys: { [key: string]: string }[],
39
+ parentKey?: string
40
+ ) => {
41
+ Object.keys(baseTranslations).forEach((translationKey) => {
42
+ if (typeof baseTranslations[translationKey] === "string") {
43
+ addEntry(translationKey, parentKey || "", baseTranslations, flattenedKeys)
44
+ }
45
+ if (typeof baseTranslations[translationKey] !== "string") {
46
+ flattenKeys(
47
+ baseTranslations[translationKey],
48
+ flattenedKeys,
49
+ parentKey ? `${parentKey}.${translationKey}` : translationKey
50
+ )
51
+ }
52
+ })
53
+ return flattenedKeys
54
+ }
55
+
56
+ let flattenedKeys: { [key: string]: string }[] = []
57
+
58
+ allTranslations.forEach((foreignKeys) => {
59
+ console.log("--------------------")
60
+ console.log(`Flattened keys for ${foreignKeys.language} translations:`)
61
+ flattenedKeys = flattenKeys(foreignKeys.translationKeys, flattenedKeys, "")
62
+ flattenedKeys.forEach((keys) => console.log(`"${keys.key}": ${JSON.stringify(keys.value)},`))
63
+ })
64
+ }
65
+
66
+ void main()
67
+
68
+ export {}
@@ -0,0 +1,50 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ // Prints keys that are in a foreign language translations file that do not exist in the english file for cleanup
3
+ // example: `ts-node unused-foreign-keys > unused-foreign-keys.json`
4
+ const englishTranslations = require("../src/locales/general.json")
5
+ const spanishTranslations = require("../src/locales/es.json")
6
+ const chineseTranslations = require("../src/locales/zh.json")
7
+ const vietnameseTranslations = require("../src/locales/vi.json")
8
+ const tagalogTranslations = require("../src/locales/tl.json")
9
+
10
+ function main() {
11
+ type TranslationsType = {
12
+ [key: string]: string
13
+ }
14
+
15
+ const allTranslations = [
16
+ { translationKeys: spanishTranslations, language: "Spanish" },
17
+ { translationKeys: chineseTranslations, language: "Chinese" },
18
+ { translationKeys: vietnameseTranslations, language: "Vietnamese" },
19
+ { translationKeys: tagalogTranslations, language: "Tagalog" },
20
+ ]
21
+
22
+ const getUnusedForeignKeys = (
23
+ baseTranslations: TranslationsType,
24
+ checkedTranslations: TranslationsType
25
+ ) => {
26
+ const baseTranslationsKeys = Object.keys(baseTranslations)
27
+ const checkedTranslationsKeys = Object.keys(checkedTranslations)
28
+ const unusedKeys: string[] = []
29
+ checkedTranslationsKeys.forEach((key) => {
30
+ if (!baseTranslationsKeys.find((item) => key === item)) {
31
+ unusedKeys.push(key)
32
+ }
33
+ })
34
+ return unusedKeys
35
+ }
36
+
37
+ allTranslations.forEach((foreignKeys) => {
38
+ console.log("--------------------")
39
+ console.log(`Unused Public Site ${foreignKeys.language} Keys:`)
40
+ const unusedForeignKeys: string[] = getUnusedForeignKeys(
41
+ englishTranslations,
42
+ foreignKeys.translationKeys
43
+ )
44
+ unusedForeignKeys.forEach((unusedKey) => console.log(unusedKey))
45
+ })
46
+ }
47
+
48
+ void main()
49
+
50
+ export {}