Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code review - react ecommerce app #1

Open
wants to merge 204 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
2dd15a6
initiated base code
appsplash99 May 6, 2021
39e3179
added: morphine-ui components
appsplash99 May 6, 2021
20d8463
created: base navbar
appsplash99 May 6, 2021
29e995b
added: buttons
appsplash99 May 6, 2021
c28136e
updated: sort and filter section
appsplash99 May 6, 2021
7e465b4
updated: pages
appsplash99 May 6, 2021
bcba481
updated: database
appsplash99 May 6, 2021
aedcd2e
updated: context and reducer
appsplash99 May 6, 2021
a07350d
updated: custom hooks
appsplash99 May 6, 2021
d8a959f
updated: server requests and server Requests
appsplash99 May 6, 2021
3ee8a7c
added: backend api routes
appsplash99 May 20, 2021
8f9c7b4
Update README.md
appsplash99 Jun 10, 2021
9671c18
updated navbar
appsplash99 Jul 10, 2021
2f76b6f
added product detail page
appsplash99 Jul 10, 2021
37a81d9
updated shop component
appsplash99 Jul 10, 2021
db19379
updated api url
appsplash99 Jul 10, 2021
fd14bb9
added form validations
appsplash99 Jul 10, 2021
e6e614d
added formik and yup
appsplash99 Jul 10, 2021
6aef854
removed sort and filter from frontend
appsplash99 Jul 10, 2021
ed395ca
updated api routes
appsplash99 Jul 10, 2021
00e647a
added sort and filter from frontend
appsplash99 Jul 10, 2021
264711d
deleted static components & installed my component lib
appsplash99 Jul 10, 2021
3225277
added local storage utils
appsplash99 Jul 10, 2021
4da208b
added react image magnify
appsplash99 Jul 11, 2021
defbcca
added product detail page
appsplash99 Jul 11, 2021
859fe90
updated cart context
appsplash99 Jul 12, 2021
55ae26f
updated: nav elements with morphine ui components
appsplash99 Jul 12, 2021
e41bfc1
updated sort and filter
appsplash99 Jul 12, 2021
a5c2b0b
added PrivateRoute Component
appsplash99 Jul 12, 2021
bfa017e
updated server requests
appsplash99 Jul 12, 2021
c8e254d
added toast functionality
appsplash99 Jul 12, 2021
a4d7a3f
updated change product qty btn
appsplash99 Jul 12, 2021
f1e3129
added form validations
appsplash99 Jul 12, 2021
b130ace
updated localStorage util
appsplash99 Jul 12, 2021
1831d7a
added login and signup pages
appsplash99 Jul 12, 2021
7c7e326
updated SHoppin page
appsplash99 Jul 12, 2021
d6503a7
updated WIshlist page
appsplash99 Jul 12, 2021
ba99f1f
updated Cart page
appsplash99 Jul 12, 2021
ab99a55
updated cartreducer
appsplash99 Jul 12, 2021
506ae64
updated api routes
appsplash99 Jul 12, 2021
a43414c
updated array functions
appsplash99 Jul 12, 2021
0333a10
updated Home Page and User Profile page
appsplash99 Jul 12, 2021
bcb4814
added Product Detail, Page
appsplash99 Jul 12, 2021
5914c55
updated imports for pages and components
appsplash99 Jul 12, 2021
5c80554
updated App.js
appsplash99 Jul 12, 2021
6ea4907
Merge pull request #2 from appsplash99/dev-auth
appsplash99 Jul 12, 2021
4769681
bug fixes
appsplash99 Jul 12, 2021
daf7eb9
comments
appsplash99 Jul 12, 2021
7414faa
comments
appsplash99 Jul 12, 2021
ee4c053
refactor for netlify
appsplash99 Jul 12, 2021
ce5f4a2
Update README.md
appsplash99 Jul 16, 2021
3e5efea
Update README.md
appsplash99 Jul 16, 2021
226404d
Create redirects
appsplash99 Jul 18, 2021
3f87f15
updated sort and filter
appsplash99 Jul 21, 2021
6dd6fa4
updated userMenu
appsplash99 Jul 21, 2021
19d2227
updated Shop component
appsplash99 Jul 21, 2021
f232a0c
updated reducers
appsplash99 Jul 21, 2021
de71f27
removed local morphine ui styles
appsplash99 Jul 21, 2021
407236a
Merge branch 'dev' of https://github.com/appsplash99/shoppin-square-c…
appsplash99 Jul 21, 2021
528985e
updated with react toastify
appsplash99 Jul 22, 2021
932bef5
updated userMenu
appsplash99 Jul 22, 2021
bc3cddf
updated Shop
appsplash99 Jul 22, 2021
aced22f
updated cart context
appsplash99 Jul 22, 2021
e3e9ea8
added react toastify
appsplash99 Jul 22, 2021
b33a9ea
updated reducers
appsplash99 Jul 22, 2021
413264a
updated local storage functions
appsplash99 Jul 22, 2021
80bb931
updated server requests
appsplash99 Jul 22, 2021
e2a4e16
updated navbar css
appsplash99 Jul 22, 2021
0abff91
updated wishlist
appsplash99 Jul 22, 2021
1edf7d4
Added Home component
appsplash99 Jul 22, 2021
a24b7ca
updated cart component
appsplash99 Jul 22, 2021
ff68e18
updated filter component
appsplash99 Jul 22, 2021
bff3ac8
updated filterContainer
appsplash99 Jul 22, 2021
923cb0a
updated newSort and filter container
appsplash99 Jul 22, 2021
bf294dd
updated sort container
appsplash99 Jul 22, 2021
e326f33
added sort component
appsplash99 Jul 22, 2021
7a26c12
updated App.js
appsplash99 Jul 22, 2021
c6dd863
Merge pull request #4 from appsplash99/dev-pagination
appsplash99 Jul 22, 2021
04cc22c
removed no-unsued-vars
appsplash99 Jul 22, 2021
8de532a
removed custom Toast
appsplash99 Jul 23, 2021
a576c9f
updated serverRequests
appsplash99 Jul 23, 2021
e294734
removed frontend sorting functions
appsplash99 Jul 23, 2021
963887f
seperated actions and reducers
appsplash99 Jul 23, 2021
00844a4
updated cart and wishlist page
appsplash99 Jul 23, 2021
e99b653
added new component
appsplash99 Jul 23, 2021
b2a21c7
updated components' exports
appsplash99 Jul 23, 2021
65f1178
updated morphine ui
appsplash99 Jul 24, 2021
816bf32
updated Shop.css
appsplash99 Jul 24, 2021
70c5e01
updated Sort component
appsplash99 Jul 24, 2021
3464e94
updated SortCOntainer Component
appsplash99 Jul 24, 2021
f96e63b
added Home Page
appsplash99 Jul 24, 2021
da3608c
udated Login Page
appsplash99 Jul 24, 2021
1c26af3
finalised login component
appsplash99 Jul 24, 2021
13491ee
finalised signup page
appsplash99 Jul 24, 2021
f50ee6e
removed hooks
appsplash99 Jul 24, 2021
39eea67
updated context with currentPage
appsplash99 Jul 24, 2021
df26c95
updated serverRequests
appsplash99 Jul 24, 2021
2660000
added paginatedActions
appsplash99 Jul 24, 2021
d8513e7
added currentPage reducer case
appsplash99 Jul 24, 2021
d186767
updated Navbar exports
appsplash99 Jul 24, 2021
326e059
updated wishlist Page
appsplash99 Jul 24, 2021
6b201db
updated wishlist page
appsplash99 Jul 24, 2021
2bbfcba
updated cart page
appsplash99 Jul 24, 2021
5a9632a
updated wishlist and cart handler
appsplash99 Jul 24, 2021
7eb5259
cleaned up unwanted reducers & actions
appsplash99 Jul 24, 2021
57975ee
added navigate to ProductDetail via cart, wishlist
appsplash99 Jul 24, 2021
11bc4a9
updated onclick for SHOP Products
appsplash99 Jul 24, 2021
de48edb
final cartState Reducer
appsplash99 Jul 24, 2021
050944d
added handleFilterONChange util
appsplash99 Jul 24, 2021
9ea378b
updated final cart-context
appsplash99 Jul 24, 2021
6cef5e8
updated EmptyCartOrWishlistComponent
appsplash99 Jul 24, 2021
4de110c
updated FIlter COntainer
appsplash99 Jul 24, 2021
f4cb12d
updated Filter component
appsplash99 Jul 24, 2021
f4e7e4f
updated sort filter components
appsplash99 Jul 24, 2021
a90d8f1
updated nav with latest dispatch
appsplash99 Jul 24, 2021
3a403e5
updated serverRequest import
appsplash99 Jul 24, 2021
1ecbc35
updated Shop.css
appsplash99 Jul 24, 2021
90c30f2
updated Shop component
appsplash99 Jul 24, 2021
d0cac17
updated Home page with latest dispatch
appsplash99 Jul 24, 2021
a42db43
updated Pagination server requests
appsplash99 Jul 24, 2021
7fc9af2
finalized reducer actions
appsplash99 Jul 24, 2021
f2f7b4c
added Api route maker
appsplash99 Jul 24, 2021
2ac4f73
updated Sort container
appsplash99 Jul 24, 2021
268f857
fixed dispatch type string
appsplash99 Jul 24, 2021
b4ac9d4
removed getPaginatedProducts,
appsplash99 Jul 24, 2021
251d329
removed getPaginatedProducts
appsplash99 Jul 24, 2021
79b6aea
Updated context
appsplash99 Jul 24, 2021
cc76a93
updated cartStateReducer
appsplash99 Jul 24, 2021
431343d
updated productApiMaker
appsplash99 Jul 24, 2021
65321e9
removed unused-vars
appsplash99 Jul 24, 2021
2f3a0a5
updated util
appsplash99 Jul 25, 2021
cb335e0
updated Product Detail
appsplash99 Jul 25, 2021
bf98dd2
bug fixes for filter container
appsplash99 Jul 25, 2021
257e41a
updated Home Page
appsplash99 Jul 25, 2021
f2f97af
added Buttons in Product Detail
appsplash99 Jul 25, 2021
0cfdd1f
updated cart page
appsplash99 Jul 25, 2021
7f7111f
added Checkout component export
appsplash99 Jul 25, 2021
3076c5b
added stripe and react-stripe
appsplash99 Jul 25, 2021
99759d1
added StripeForm
appsplash99 Jul 25, 2021
69dab58
added cart Total State, reducer and action
appsplash99 Jul 25, 2021
6a66db9
updated component imports
appsplash99 Jul 25, 2021
04f32dc
updated page exports
appsplash99 Jul 25, 2021
0d8dd4a
added Checkouut Button in Cart
appsplash99 Jul 25, 2021
679f5fa
updated form input styles
appsplash99 Jul 25, 2021
c1ae494
updated root index.css
appsplash99 Jul 25, 2021
5c5ec4d
updated CHeckoutForm
appsplash99 Jul 25, 2021
9f80aec
updated root index.css
appsplash99 Jul 25, 2021
eb5de9c
updated serverRequests
appsplash99 Jul 25, 2021
d42a1e3
removed un-necessary code
appsplash99 Jul 25, 2021
4ee9a5d
abstracted app routes
appsplash99 Jul 25, 2021
27ec727
finalized App.js
appsplash99 Jul 25, 2021
8c2cb25
updated with updated morphine-ui
appsplash99 Jul 25, 2021
05d89e0
updated to latest morphine-ui v0.3.0
appsplash99 Jul 25, 2021
0763b8f
bug fixes for form input
appsplash99 Jul 25, 2021
49c4251
updated filter container
appsplash99 Jul 25, 2021
1a0b8cc
updated userMenu to calculate total items of cart
appsplash99 Jul 25, 2021
f1f4399
updated Shop component with newest ProductCard
appsplash99 Jul 25, 2021
fde7cc6
finalized form
appsplash99 Jul 25, 2021
6fa1bda
added outOfStock btn to product Detail
appsplash99 Jul 25, 2021
8823ed0
updated readme with features
appsplash99 Jul 26, 2021
5e7f8c5
Update README.md
appsplash99 Jul 26, 2021
264a06d
Rename redirects to _redirects
appsplash99 Jul 27, 2021
96768ba
updated all-products dispatch
appsplash99 Jul 27, 2021
3a86532
added icon to Sort button
appsplash99 Jul 27, 2021
f9f281c
bugfixes for filter reducer cases
appsplash99 Jul 27, 2021
f244e16
updated actions with CLEAR FILTER
appsplash99 Jul 27, 2021
06faebd
updated sortContainer witth clear Sort button
appsplash99 Jul 27, 2021
2125f13
updated filter container
appsplash99 Jul 27, 2021
1b0355d
updated home page
appsplash99 Jul 27, 2021
5ff47b0
added clear filters action
appsplash99 Jul 27, 2021
7b9845c
added No Results found component
appsplash99 Jul 27, 2021
86243e9
Merge branch 'dev' of https://github.com/appsplash99/shoppin-square-c…
appsplash99 Jul 27, 2021
85f1974
updated Shop component
appsplash99 Jul 27, 2021
fca60e0
updated sortContainer component
appsplash99 Jul 27, 2021
7375673
bug fixes for clear all filters
appsplash99 Jul 27, 2021
bda9e35
removed info toasts
appsplash99 Jul 27, 2021
8b8d295
Added Display Products per Page Component
appsplash99 Jul 28, 2021
840b4b9
added DisplayProductsPerPage component
appsplash99 Jul 28, 2021
6174725
updated context with productsPerPage value
appsplash99 Jul 28, 2021
b7a9c78
added action Set ProductsPerPage
appsplash99 Jul 28, 2021
5684b99
updated apiUrlMaker with productsPerPage
appsplash99 Jul 28, 2021
1223ed6
updated with SET ProductsPerPage reducer case
appsplash99 Jul 28, 2021
8a973e8
updated Shop with DisplayProductsPerPage component
appsplash99 Jul 28, 2021
c41d71e
updated DisplayProductsPerPage component
appsplash99 Jul 28, 2021
babb0d3
finalized cartStateReducer
appsplash99 Jul 28, 2021
06dca2c
updated Logout Button UI in userMenu
appsplash99 Jul 28, 2021
3c4c943
added pre-filled details in LoginPage
appsplash99 Jul 28, 2021
889a83b
removed no-unsued-vars
appsplash99 Jul 28, 2021
11fd09b
updated readme
appsplash99 Jul 28, 2021
5c017a5
updated ui for userMenu Buttons
appsplash99 Jul 28, 2021
b18968a
addded emptyUserCart server Request
appsplash99 Jul 28, 2021
cf5168a
updated Stripe form with previlled user details
appsplash99 Jul 28, 2021
50f5ea9
updated Read me
appsplash99 Jul 28, 2021
f68ed28
updated wiwhlist product card
appsplash99 Jul 28, 2021
6f3115c
fixed product Detail icons
appsplash99 Jul 28, 2021
1da3728
updated cart card
appsplash99 Jul 28, 2021
3eb1bc2
updated wishlist card
appsplash99 Jul 28, 2021
95a572b
updated changeProdectQty btn
appsplash99 Jul 28, 2021
9ec72cf
updated Add to cart btn
appsplash99 Jul 28, 2021
1f8b1f5
updated cart card
appsplash99 Jul 28, 2021
a16a923
updated toast for logged out user
appsplash99 Jul 28, 2021
37e773f
updated cart context
appsplash99 Jul 28, 2021
8900fc1
updated - api request calls only wheen avail token
appsplash99 Jul 28, 2021
06414cd
updated logoutUser with toast and navigate
appsplash99 Jul 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated imports for pages and components
  • Loading branch information
appsplash99 committed Jul 12, 2021
commit 5914c552f7594f303543ec9be259b3ab7cf9b2e9
18 changes: 10 additions & 8 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import {
ResponsiveNavbar
} from "./ResponsiveNavbar/ResponsiveNavbar";
import {
LoaderDonutSpinner
} from "./morphine-ui/Loader/LoaderDonutSpinner";
import { ResponsiveNavbar } from './ResponsiveNavbar/ResponsiveNavbar';
import { PrivateRoute } from './PrivateRoute';
import { Toast } from './Toast/Toast';
import { ChangeProductQtyBtn } from './Buttons';
import { NewSortAndFilter } from './NewSortAndFilter/NewSortAndFilter';

export {
ResponsiveNavbar,
LoaderDonutSpinner
};
PrivateRoute,
Toast,
ChangeProductQtyBtn,
NewSortAndFilter,
};
22 changes: 18 additions & 4 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import { Cart } from "./Cart/Cart";
import { Shop } from "./Shop/Shop";
import { Wishlist } from "./Wishlist/Wishlist";
import { Cart } from './Cart/Cart';
import { Shop } from './Shop/Shop';
import { Wishlist } from './Wishlist/Wishlist';
import { Home } from './Home/Home';
import { ProductDetail } from './ProductDetail/ProductDetail';
import { Login } from './Login/Login';
import { Signup } from './SignUp/Signup';
import { UserProfile } from './UserProfile/UserProfile';

export { Cart, Shop, Wishlist };
export {
Cart,
Home,
Shop,
Login,
Signup,
Wishlist,
UserProfile,
ProductDetail,
};