How celinasotelo/as-tecnologia works
AS Tecnología is an online storefront for vapers, perfumes, and technology, with a wholesale contact path and an authenticated admin area. The main customer workflow is browse or search the catalog, inspect products, add items to a cart, and proceed through checkout to order confirmation. Admin capabilities include product and variant maintenance, image management, order management, and login. The README gives no further architecture detail; several runtime connections are inferred from the tree and are marked unverified.
Main entry points: server.ts Server client · page.tsx Home · product-grid.tsx Product grid · products.ts Product queries
Components 28
Storefront
- Site shell
as-tecnologia/src/app/layout.tsx - Home
as-tecnologia/src/app/page.tsx - Wholesale
as-tecnologia/src/app/mayorista/page.tsx
Catalog
- Catalog pages
as-tecnologia/src/app/productos - Vapers page
as-tecnologia/src/app/vapers/page.tsx - Search page
as-tecnologia/src/app/buscar/page.tsx - Product detail
as-tecnologia/src/components/catalog/product-detail.tsx - Product grid
as-tecnologia/src/components/catalog/product-grid.tsx
Commerce
- Cart
as-tecnologia/src/lib/store/cart.ts - Cart drawer
as-tecnologia/src/components/cart/cart-drawer.tsx - Checkout
as-tecnologia/src/components/checkout/checkout-wizard.tsx - Order confirmation
as-tecnologia/src/components/checkout/order-confirmation.tsx
Administration
- Admin login
as-tecnologia/src/app/login/page.tsx - Auth action
as-tecnologia/src/lib/actions/auth.ts - Admin pages
as-tecnologia/src/app/admin - Product actions
as-tecnologia/src/lib/actions/products.ts - Variant manager
as-tecnologia/src/components/admin/variant-manager.tsx - Image manager
as-tecnologia/src/components/admin/image-manager.tsx - Image actions
as-tecnologia/src/lib/actions/images.ts
Data services
- Product queries
as-tecnologia/src/lib/queries/products.ts - Order actions
as-tecnologia/src/lib/actions/orders.ts - Browser client
as-tecnologia/src/lib/supabase/client.ts - Server client
as-tecnologia/src/lib/supabase/server.ts - Database schema types
as-tecnologia/src/lib/supabase/database.types.ts
Other components
- Shopper
- Supabase
- Image storage
Connections 33
- Shopper → Site shell: visits
- Site shell → Cart drawer: renders
as-tecnologia/src/app/layout.tsx - Site shell → Home: hosts
- Shopper → Home: browses
- Home → Product queries: loads products
as-tecnologia/src/app/page.tsx - Home → Product grid: renders
as-tecnologia/src/app/page.tsx - Shopper → Search page: searches
- Search page → Product queries: searches products
as-tecnologia/src/app/buscar/page.tsx - Search page → Product grid: renders results
as-tecnologia/src/app/buscar/page.tsx - Catalog pages → Product queries: loads products
as-tecnologia/src/app/productos/page.tsx - Catalog pages → Product grid: renders
as-tecnologia/src/app/productos/page.tsx - Shopper → Vapers page: browses
- Product grid → Product detail: opens product
- Product detail → Cart: adds items
- Cart drawer → Cart: uses state
- Shopper → Checkout: checks out
- Checkout → Order actions: submits order
- Checkout → Order confirmation: shows result
- Order actions → Server client: persists order
- Admin login → Auth action: submits credentials
as-tecnologia/src/app/login/page.tsx - Admin pages → Product actions: manages products
- Admin pages → Order actions: manages orders
- Variant manager → Product actions: updates variants
as-tecnologia/src/components/admin/variant-manager.tsx - Image manager → Browser client: creates client
as-tecnologia/src/components/admin/image-manager.tsx - Image manager → Image storage: uploads images
as-tecnologia/src/components/admin/image-manager.tsx - Image manager → Image actions: saves image URL
as-tecnologia/src/components/admin/image-manager.tsx - Image actions → Server client: updates records
- Product queries → Server client: queries catalog
- Browser client → Database schema types: types client
as-tecnologia/src/lib/supabase/client.ts - Server client → Database schema types: types client
as-tecnologia/src/lib/supabase/server.ts - Server client → Supabase: connects
- Browser client → Supabase: connects
- Wholesale → WhatsApp: links contact
as-tecnologia/src/app/mayorista/page.tsx