Commit 5f696be
ALFMOB-83: Wishlist Functionality(Continued) (#13)
* Add Database for wishlist IDs, and flows to get and set them III
* Address code review: fix error handling, dispatcher injection, DB consolidation, and tests
Agent-Logs-Url: https://github.com/Mindera/Alfie-Android/sessions/0a13adaa-7523-4bed-8732-c54534ff2cb4
Co-authored-by: amccall-mindera <241989343+amccall-mindera@users.noreply.github.com>
* Fix detekt
* Update ProductCard component
* Fix Medium product card size for Carousel
* [ALFMOB-83] Implement Add to Wishlist remaining functionality
- Navigate from wishlist card tap to PDP
- Navigate from wishlist 'Add to Bag' CTA to PDP
- Disable PDP 'Add to Bag' button until a size is selected
- Pre-wire onClick on WishlistProductUi via factory
- Remove size & color from ProductCardType.Vertical (wishlist cards show none)
- Update WishlistUIFactory, WishlistViewModel, WishlistScreen
- Update tests and mock data
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* [ALFMOB-83] Fix detekt violations
- Remove trailing commas (TrailingCommaOnCallSite / TrailingCommaOnDeclarationSite)
- Remove blank line before closing brace (NoBlankLineBeforeRbrace)
- Update detekt baseline for pre-existing suppressions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add unit tests
* Make detekt happy
* Fix tests, again
* Fix baseline
* Fix reviews
* Fix unit tests
* Add error handling and fix race condition for rapid favorite click
* Fix detekt
* Address comment
* Address comments
---------
Co-authored-by: artyom.romanov <artyom.romanov@mindera.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: amccall-mindera <241989343+amccall-mindera@users.noreply.github.com>
Co-authored-by: (Admin) Nhat Hoang <admin.nhat.hoang@FKWFHCF94F-PT003126.local>
Co-authored-by: Nhat Hoang <nhat.hoang@mindera.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent aa70fb6 commit 5f696be
56 files changed
Lines changed: 808 additions & 1015 deletions
File tree
- config/detekt
- core/ui/src/main/java/au/com/alfie/ecomm/core/ui/media/image
- data
- database/src/main/java/au/com/alfie/ecomm/data/database
- di
- wishlist
- model
- src/main/java/au/com/alfie/ecomm/data/wishlist
- debug/operational/src/main/java/au/com/alfie/ecomm/debug/operational/view/catalog/screen
- designsystem/src/main
- java/au/com/alfie/ecomm/designsystem/component
- button
- gallery
- productcard
- size
- productcarousel
- res/values
- domain
- repository/src/main/java/au/com/alfie/ecomm/repository
- result
- wishlist
- src
- main/java/au/com/alfie/ecomm/domain/usecase/wishlist
- test/java/au/com/alfie/ecomm/domain/usecase/wishlist
- feature
- bag/src
- main/java/au/com/alfie/ecomm/feature/bag
- test/java/au/com/alfie/ecomm/feature/bag
- pdp/src
- main/java/au/com/alfie/ecomm/feature/pdp
- model
- test/java/au/com/alfie/ecomm/feature/pdp
- plp/src
- main/java/au/com/alfie/ecomm/feature/plp
- factory
- model
- test/java/au/com/alfie/ecomm/feature/plp
- factory
- search/src
- main/java/au/com/alfie/ecomm/feature/search
- factory
- model
- test/java/au/com/alfie/ecomm/feature/search
- wishlist/src
- main/java/au/com/alfie/ecomm/feature/wishlist
- models
- test/java/au/com/alfie/ecomm/feature/bag
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 14 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
5 | | - | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
24 | 18 | | |
25 | | - | |
26 | | - | |
27 | 19 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
33 | 23 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
40 | 27 | | |
Lines changed: 11 additions & 133 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | | - | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | | - | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
| |||
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
52 | | - | |
| 46 | + | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
| |||
66 | 60 | | |
67 | 61 | | |
68 | 62 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 63 | + | |
101 | 64 | | |
102 | 65 | | |
103 | | - | |
| 66 | + | |
104 | 67 | | |
105 | 68 | | |
106 | 69 | | |
| |||
130 | 93 | | |
131 | 94 | | |
132 | 95 | | |
133 | | - | |
| 96 | + | |
134 | 97 | | |
135 | 98 | | |
136 | 99 | | |
| |||
143 | 106 | | |
144 | 107 | | |
145 | 108 | | |
146 | | - | |
| 109 | + | |
147 | 110 | | |
148 | 111 | | |
149 | 112 | | |
| |||
157 | 120 | | |
158 | 121 | | |
159 | 122 | | |
160 | | - | |
| 123 | + | |
161 | 124 | | |
162 | 125 | | |
163 | 126 | | |
| |||
173 | 136 | | |
174 | 137 | | |
175 | 138 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 139 | + | |
| 140 | + | |
263 | 141 | | |
264 | 142 | | |
265 | 143 | | |
| |||
269 | 147 | | |
270 | 148 | | |
271 | 149 | | |
272 | | - | |
| 150 | + | |
273 | 151 | | |
274 | 152 | | |
275 | 153 | | |
| |||
282 | 160 | | |
283 | 161 | | |
284 | 162 | | |
285 | | - | |
| 163 | + | |
286 | 164 | | |
287 | 165 | | |
288 | 166 | | |
| |||
295 | 173 | | |
296 | 174 | | |
297 | 175 | | |
298 | | - | |
| 176 | + | |
299 | 177 | | |
300 | 178 | | |
301 | 179 | | |
| |||
0 commit comments