Commit 5b13fc6
MT-4114 multi cart (#69)
* Add CartSelection and SettingsCart modal.
* Add checking for displaying my Cart button
* update style of carts list
* Update styles in CartItemList and CartModal components
* Merge branch 'master' of https://github.com/elasticpath/epcc-react-pwa-reference-storefront into MT-4114-create-new-cart
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
* Update moltin/sdk version. Add createCart and getCarts requests
* Add Id of the selected cart to local storage. Update CartSelection component.
* Create carts list component
* Fix errors when cart is empty
* Update cart modal for empty cart list
* Update CartSelection and SettingsCart components
* Added multi-card product button
* Add cart list selection. Update styles
* Add background for selected cart
* Add confirmation delete carts
* update style of confirmation modal
* Fixed mobile styles for product page
* Added create cart translation
* implement bulk delete
* Fix cart delete function
* update bulk delete function
* Associate guest cart to the customer
* Fixed create cart issue
* Fix styles and typos
* Multi cart UI fixes
* Add cart name form for creating cart in login flow
* Update "Next" button in addCartName modal
* update carts list
* update responsive style, add loader
* update cart list
* update cart list
* fix creating a new cart
* add notification after the product was added to cart, add placeholder
* Fix the problem MT-5082. My cart list is showing 0 when remove the item by updating the state of the multiCart in CartListItem
* revert pull from npm
* working on ticket MT-973. Follow the V2 design. Add Message to show the number of deleted carts
* Issue MT-973
* Small fixes
* MT-973 - user can delete cart/carts as per UX V3 - after deleted message is provided - can not delete the last one cart (as Kevin mentioned to disabled the trash button)
* Add close BTN for delete message after user delete carts. reduce timer to 4000MS
* login prompt on checkout for guest shopper
* debug the issue with tab(MT-5173) - change title of cart setting
* Update cart settings - add update setting to cartitemlist and edit scss
* working on ticket MT-4940 edit cart name and description : add app-state function for editCart and add editCartInfo to services
* update @moltin/sdk version
* update edit cart function
* update the name input for the cart
* remove console.log
* Back button
* MT-4940 update cart name and description + show message update cart + MT-5172 show message after create cart
* Minor changes as per Shaun comments
* set selected cart when adding product to new cart
* disable button for update form when name field is empty
* Add name length check + error if exceed more than 250 characters
* remove client-side check for name length
* MT-5252 desktop and mobile - fix the ling name problem + fix the error in app-state
* MT-5161 - Add update cart to useEffect to refresh the number of items of the cart
* change item to product in cartlist as per Kevin and Bonnie
* remove extra {}
* remove product
* Add product and products condition
* Add product and products condition
* add new condition to products
* update value of onCartCreate props
* MT-5161, Add empty array to useEffect to run just once
* add default cart for new registered shopper
* fix warnings
* update multi cart data in bulk order
* MT-5171 , user logged in, by click on cart button will see the latest used cart
* Fix warning
* add condition for setting icon
* assigned created cart to selected cart
* show cart list when no selected cart
* revert changes
* Change the my cart list view as per design , MT-5251
* Pagination for multiCarts - MT-1024
* Error handeling for name length - MT-5253
* fix the size and overflow of the add to cart button
* error handling for cart description + fix caret color (Hover + active)
* test deploy
* update errors states
* Done in responsive
* Add services for remove all items from list + add empty cart + confirmation UI + change the scroll bar in add to cart btn
* update moltin version
* Add handleRemoveAllItems to make the cart empty + Payment function in services : added strict types
* add loader & modal change state in catch error
* change the confirmation message
* MT-5430, Create cart interstitial refactor
* MT-5350 - redirect user from registration to home when login
* Show Create Cart (Force user to create cart) after they logged in if they have some items in the cart, MT-5417
* fix the 'Edge case is when Shopper choose to logout and then log in, the Cart interstitial will show but the session item is no longer there for new cart'
* update moltin version
* create default cart after user is logging in - check the default cart after login
* associate guest cart with a user after registration
* Create cart after registration
* clean the code
* Remove leftover console.log
* keep the cart after checkout and empty cart
* create orders lit component + style with grid box , add spinning to checkout btn
* add ordershistory component + styling
* add sortedOrders
* fix the issue with car creation after registration
* remove unassigned variable
* remove unassigned variable
* revert re-order changes
* fix small issue in createcart after login
* update SDk version
* Fixed issue with types
* Fix merge conflict - use src/LoginDialog/LoginDialog.tsx as a login form
* Add FaildLogin to useEffect array
Co-authored-by: Petro Dubno <petro.dubno@gmail.com>
Co-authored-by: Rostyk <rkanafotskyy@gmail.com>
Co-authored-by: Yasaman Loghmani <yasaman.loghmani@elasticpath.com>1 parent c31d33b commit 5b13fc6
File tree
53 files changed
+53686
-299
lines changed- src
- LoginDialog
- images/icons
- locales
- theme
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+53686
-299
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | 23 | | |
16 | 24 | | |
| |||
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
46 | | - | |
47 | 57 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
52 | 92 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
74 | 99 | | |
75 | 100 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 101 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | | - | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | | - | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | | - | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
0 commit comments