How mariammakhlof/shop-space works
ShopSpace is a browser-based demo storefront. Visitors enter the routed app, load a product catalog, search or filter it, choose a grid or list view, and add products to a locally saved cart; the sidebar also loads categories and controls the theme. Redux holds cart, view, and theme state, while browser storage persists cart and theme choices. The README documents read-only DummyJSON data and static hosting. Some component details are unsampled, so the graph shows only evidenced calls and documented behavior.
Main entry points: cartSlice.js Cart State · store.js Redux Store · App.js Routed App · SideBar.js Store Sidebar
Components 13
App and Navigation
- Routed App
src/App.js - Page Layout
src/components/Layout.js - Store Sidebar
src/components/SideBar.js
Product Catalog
- Catalog and Filters
src/components/PhotoStore.js - DummyJSON Products
- DummyJSON Categories
Cart
- Cart Page
src/components/PhotoStore.js
State and Persistence
- Redux Store
src/components/redux/store.js - Cart State
src/components/redux/cartSlice.js - View State
src/components/redux/productSlice.js - Theme State
src/components/redux/themeSlice.js - Browser Storage
Other components
- Store Visitor
Connections 19
- Store Visitor → Routed App: opens store
README.md - Routed App → Page Layout: routes through
src/App.js - Routed App → Catalog and Filters: routes to
src/App.js - Routed App → Cart Page: routes to
src/App.js - Page Layout → Store Sidebar: renders
src/components/Layout.js - Catalog and Filters → DummyJSON Products: fetches products
src/components/PhotoStore.js - Store Sidebar → DummyJSON Categories: fetches categories
src/components/SideBar.js - Catalog and Filters → Cart State: dispatches cart actions
src/components/PhotoStore.js - Cart Page → Cart State: dispatches cart actions
src/components/PhotoStore.js - Catalog and Filters → View State: sets view
src/components/PhotoStore.js - Store Sidebar → Cart State: reads cart count
src/components/SideBar.js - Store Sidebar → Theme State: toggles theme
src/components/SideBar.js - Page Layout → Theme State: reads theme
src/components/Layout.js - Redux Store → Cart State: registers reducer
src/components/redux/store.js - Redux Store → View State: registers reducer
src/components/redux/store.js - Redux Store → Theme State: registers reducer
src/components/redux/store.js - Cart State → Browser Storage: loads cart
src/components/redux/cartSlice.js - Theme State → Browser Storage: loads theme
src/components/redux/themeSlice.js - Redux Store → Browser Storage: persists changes
src/components/redux/store.js