How davirsreis/marmoraria-lapidarte-next works
Lapidarte is a customer-facing stone catalog and quotation site with a protected product-management area. Customers browse product pages and can submit project details for a quote; administrators manage catalog records and refresh the JSON catalog used by the public site. The graph also captures Firebase-backed storage, browser caching, and authentication. Several routes and UI components are represented from the tree and SOURCE INDEX; their internal behavior was not sampled, so uncertain connections are omitted or marked unverified.
Main entry points: ColecaoProduto.ts Product collection · gerenciamento.tsx Admin page · functions.tsx Catalog and messaging helpers · Header.tsx Site navigation
Components 28
Public experience
- Home page
src/pages/index.tsx - Home sections
src/components/homePage - Catalog pages
src/pages - Product listing
src/pages/produtos.tsx - Product display
src/components/produtos/RolagemProdutos.tsx - Catalog context
src/components/context/ProdutoContext.jsx
Quote requests
- Quote page
src/pages/solicitar-orcamento.tsx - Quote fields
src/components/orcamento/EntradaForm.tsx
Product management
- Admin page
src/pages/gerenciamento.tsx - Product operations
src/hooks/useProdutos.ts - Product form
src/components/gerenciamento/Formulario.tsx - Product table
src/components/gerenciamento/Tabela.tsx - Authentication
src/firebase/autentication.js - Route protection
src/components/ProtectedRouteGuard.tsx
Catalog and services
- Product model
src/core/Produto.ts - Repository contract
src/core/ProdutoRepositorio.ts - Product collection
src/firebase/db/ColecaoProduto.ts - Firebase services
src/firebase/config.ts - Catalog API
src/pages/api/consultarProdutos.ts - File download API
src/pages/api/baixar-arquivo/[nomeArquivo].ts
Shared application
- Application shell
src/pages/_app.tsx - Site navigation
src/components/Header.tsx - Catalog and messaging helpers
src/Auxiliares/functions.tsx - Featured products
src/Auxiliares/Valores.tsx - Responsive sizing
src/hooks/useWindowSize.ts
Other components
- Customer
- Firebase Storage
Connections 34
- Customer → Home page: opens
- Home page → Home sections: renders
src/pages/index.tsx - Customer → Product listing: browses
- Product listing → Product display: renders
src/pages/produtos.tsx - Product listing → Catalog context: reads catalog
src/pages/produtos.tsx - Catalog context → Catalog and messaging helpers: fetches catalog
src/components/context/ProdutoContext.jsx - Catalog and messaging helpers → Catalog API: requests JSON
src/Auxiliares/functions.tsx - Catalog API → Product collection: reads catalog
src/pages/api/consultarProdutos.ts - Customer → Quote page: requests quote
- Quote page → Quote fields: renders
src/pages/solicitar-orcamento.tsx - Quote page → Catalog and messaging helpers: uses helpers
src/pages/solicitar-orcamento.tsx - Catalog and messaging helpers → WhatsApp: opens message
src/Auxiliares/functions.tsx - Customer → Admin page: manages catalog
- Application shell → Route protection: uses guard
src/pages/_app.tsx - Admin page → Product operations: loads operations
src/pages/gerenciamento.tsx - Admin page → Product form: renders
src/pages/gerenciamento.tsx - Admin page → Product table: renders
src/pages/gerenciamento.tsx - Product operations → Repository contract: uses contract
src/hooks/useProdutos.ts - Product operations → Product collection: creates repository
src/hooks/useProdutos.ts - Product form → Product model: uses model
src/components/gerenciamento/Formulario.tsx - Product table → Product model: uses model
src/components/gerenciamento/Tabela.tsx - Product collection → Repository contract: implements
src/firebase/db/ColecaoProduto.ts - Product collection → Product model: converts records
src/firebase/db/ColecaoProduto.ts - Product collection → Firebase services: reads and writes
src/firebase/db/ColecaoProduto.ts - Product collection → Firebase Storage: uploads catalog JSON
src/firebase/db/ColecaoProduto.ts - Product collection → Customer: caches in browser
src/firebase/db/ColecaoProduto.ts - Admin page → Product collection: refreshes JSON
src/pages/gerenciamento.tsx - Product form → Firebase services: uses Firebase
src/components/gerenciamento/Formulario.tsx - Site navigation → Catalog and messaging helpers: opens contact message
src/components/Header.tsx - Site navigation → Authentication: logs out
src/components/Header.tsx - Site navigation → Responsive sizing: tracks size
src/components/Header.tsx - Site navigation → Catalog pages: links categories
src/components/Header.tsx - Home sections → Featured products: uses featured items
src/components/homePage/SectionProdutos.tsx - File download API → Firebase services: uses Firebase
src/pages/api/baixar-arquivo/[nomeArquivo].ts