Commit a898473
authored
ALFMOB-162: Improve Wishlist functionality on PLP & Wishlist (#67)
* ALFMOB-162: Hide size from wishlist item card
* ALFMOB-162: Redirect wishlist Add to Bag to PDP
* ALFMOB-162: Migrate WishlistTests to Swift Testing
* ALFMOB-162: Remove unused bagService from WishlistDependencyContainer
* ALFMOB-162: Do not auto-select size on PDP entry
* ALFMOB-162: Revert WishlistTests to XCTest for project consistency
* ALFMOB-162: Add trackForMemoryLeak helper and apply to WishlistTests
* ALFMOB-162: Remove size field and view from VerticalProductCard
* ALFMOB-162: Disable PDP Add to Bag until size is selected
* ALFMOB-162: Remove wishlist product by id and consolidate removal API
* ALFMOB-162: Fix PDP Add to Bag for single-size and sizeless products
* ALFMOB-162: Base PDP Add to Bag label on overall product stock
* ALFMOB-150: Persist wishlist via UserDefaults-backed store
* ALFMOB-150: Add unit tests for wishlist persistence
* ALFMOB-150: Persist bag via UserDefaults-backed store
* ALFMOB-150: Add unit tests for bag persistence
* ALFMOB-150: Consolidate Bag/Wishlist storage keys into single StorageKey enum
* Revert "ALFMOB-150: Persist Wishlist & Bag"1 parent c4aa148 commit a898473
20 files changed
Lines changed: 408 additions & 68 deletions
File tree
- Alfie
- AlfieKit
- Sources
- Core/Services/Wishlist
- Mocks/Core
- Features
- Services
- Model
- Models/ProductDetails/Protocols
- Services/Wishlist
- UI/ProductCard
- ProductDetails/UI
- ProductListing/UI
- TestUtils/Helpers
- Wishlist
- Models
- UI
- Tests
- CoreTests/ServiceTests
- ProductDetailsTests
- ProductListingTests
- WishlistTests
- Alfie
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Alfie/AlfieKit/Sources/Model/Models/ProductDetails/Protocols/ProductDetailsViewModelProtocol.swift
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | | - | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
| |||
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | | - | |
42 | | - | |
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
| |||
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
54 | | - | |
55 | | - | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
| |||
64 | 56 | | |
65 | 57 | | |
66 | 58 | | |
67 | | - | |
68 | | - | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
418 | 414 | | |
419 | 415 | | |
420 | 416 | | |
421 | | - | |
| 417 | + | |
422 | 418 | | |
423 | 419 | | |
424 | 420 | | |
| |||
487 | 483 | | |
488 | 484 | | |
489 | 485 | | |
490 | | - | |
| 486 | + | |
491 | 487 | | |
492 | | - | |
| 488 | + | |
493 | 489 | | |
494 | 490 | | |
495 | 491 | | |
| |||
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
175 | 193 | | |
176 | | - | |
| 194 | + | |
177 | 195 | | |
178 | 196 | | |
179 | 197 | | |
| |||
296 | 314 | | |
297 | 315 | | |
298 | 316 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 317 | + | |
304 | 318 | | |
305 | 319 | | |
306 | 320 | | |
307 | | - | |
| 321 | + | |
308 | 322 | | |
309 | 323 | | |
310 | 324 | | |
| |||
0 commit comments