How antonny890/libreria-universal works
Librería Universal is a Spanish-language bookstore storefront with an administrative catalog view. The user workflow runs from browsing and filtering books, through book details and a cart, to sign-in and checkout; readers can also review their profile and orders. Administrators manage inventory and categories. Shared library state coordinates these views, backed by sample catalog data and browser-local user state. The graph reflects documented imports and the sampled state behavior; unsampled checkout and catalog internals are not inferred.
Main entry points: App.tsx App Shell · LibraryContext.tsx Library State · BookCover.tsx Book Cover · CatalogSection.tsx Catalog
Components 23
Storefront
- App Shell
src/App.tsx - Hero
src/components/HeroSection.tsx - Featured Books
src/components/FeaturedShowcase.tsx - Catalog
src/components/CatalogSection.tsx - Catalog Filters
src/components/SidebarFilters.tsx - Book Card
src/components/BookCard.tsx - Book Cover
src/components/BookCover.tsx - Book Details
src/components/BookDetailModal.tsx - Navigation
src/components/Navbar.tsx - FAQ
src/components/FAQModal.tsx - Terms
src/components/TermsModal.tsx - Footer
src/components/Footer.tsx
Reader and Orders
- Cart Drawer
src/components/CartDrawer.tsx - Checkout
src/components/CheckoutModal.tsx - Sign-in
src/components/AuthModal.tsx - Reader Profile
src/components/UserProfileModal.tsx
Catalog Administration
- Admin Dashboard
src/components/AdminDashboard.tsx - Book Editor
src/components/BookFormModal.tsx
Shared State and Data
- Library State
src/context/LibraryContext.tsx - Sample Catalog
src/data/mockData.ts - Notifications
src/components/ToastContainer.tsx
Other components
- Reader
- Browser Storage
Connections 43
- Reader → App Shell: uses
- App Shell → Library State: provides state
src/App.tsx - App Shell → Navigation: renders
src/App.tsx - App Shell → Hero: renders
src/App.tsx - App Shell → Featured Books: renders
src/App.tsx - App Shell → Catalog: renders
src/App.tsx - App Shell → Admin Dashboard: renders
src/App.tsx - App Shell → Cart Drawer: renders
src/App.tsx - App Shell → Checkout: renders
src/App.tsx - App Shell → Book Details: renders
src/App.tsx - App Shell → Book Editor: renders
src/App.tsx - App Shell → Reader Profile: renders
src/App.tsx - App Shell → Sign-in: renders
src/App.tsx - App Shell → FAQ: renders
src/App.tsx - App Shell → Terms: renders
src/App.tsx - App Shell → Notifications: renders
src/App.tsx - App Shell → Footer: renders
src/App.tsx - Hero → Library State: reads state
src/components/HeroSection.tsx - Hero → Sample Catalog: uses image data
src/components/HeroSection.tsx - Featured Books → Library State: reads state
src/components/FeaturedShowcase.tsx - Featured Books → Book Cover: renders
src/components/FeaturedShowcase.tsx - Catalog → Library State: reads state
src/components/CatalogSection.tsx - Catalog → Catalog Filters: renders
src/components/CatalogSection.tsx - Catalog → Book Card: renders
src/components/CatalogSection.tsx - Catalog Filters → Library State: reads state
src/components/SidebarFilters.tsx - Book Card → Library State: reads state
src/components/BookCard.tsx - Book Card → Book Cover: renders
src/components/BookCard.tsx - Book Details → Library State: reads state
src/components/BookDetailModal.tsx - Cart Drawer → Library State: reads state
src/components/CartDrawer.tsx - Cart Drawer → Book Cover: renders
src/components/CartDrawer.tsx - Checkout → Library State: reads state
src/components/CheckoutModal.tsx - Sign-in → Library State: signs in
src/components/AuthModal.tsx - Reader Profile → Library State: reads state
src/components/UserProfileModal.tsx - Admin Dashboard → Library State: manages catalog
src/components/AdminDashboard.tsx - Admin Dashboard → Book Cover: renders
src/components/AdminDashboard.tsx - Book Editor → Library State: updates catalog
src/components/BookFormModal.tsx - Book Editor → Book Cover: previews
src/components/BookFormModal.tsx - Library State → Sample Catalog: initializes from
src/context/LibraryContext.tsx - Library State → Browser Storage: reads and writes
src/context/LibraryContext.tsx - FAQ → Library State: reads state
src/components/FAQModal.tsx - Terms → Library State: reads state
src/components/TermsModal.tsx - Notifications → Library State: reads state
src/components/ToastContainer.tsx - Footer → Library State: reads state
src/components/Footer.tsx