How qajulio/cadastra-qa-challenge works
Cadastra Editorial is an editorial fashion storefront: visitors browse curated home sections, filter and paginate collections, and view product details; the header also exposes cart interactions. Product pages read through a domain service and in-memory mock repository. Newsletter signup and subscriber administration use browser-local storage, as does cart state. The README documents the route and data-layer capabilities; unsampled integrations and component wiring are not inferred beyond indexed references.
Main entry points: app/page.tsx Editorial home · layout.tsx Application layout · collections/page.tsx Collections page · products.service.ts Product domain service
Components 27
Storefront routes
- Editorial home
src/app/page.tsx - Collections page
src/app/collections/page.tsx - Product detail route
src/app/products/[slug]/page.tsx
Product catalog
- Home sections
src/features/products/components/ProductSection.tsx - Editorial features
src/features/products/components/FeaturedCollections.tsx - Collection filters
src/features/products/components/CollectionFilters.tsx - Product grid
src/features/products/components/ProductGrid.tsx - Product card
src/features/products/components/ProductCard.tsx - Product detail
src/features/products/components/ProductDetail.tsx - Product domain service
src/services/products.service.ts - Product repository
src/repositories/products.repository.ts - Catalog mock data
src/features/products/data/products.mock.ts
Customer engagement
- Newsletter signup
src/components/layout/Newsletter.tsx - Subscriber state
src/features/subscribers/useSubscribers.ts - Subscriber storage
src/features/subscribers/storage.ts - Subscriber admin
src/features/subscribers/components/SubscribersAdmin.tsx - Subscriber page
src/app/subscribers/page.tsx
Shopping cart
- Cart state
src/features/cart/CartProvider.tsx - Cart storage
src/features/cart/storage.ts - Cart button
src/features/cart/components/CartButton.tsx - Add to cart
src/features/cart/components/AddToCartButton.tsx - Cart drawer
src/features/cart/components/CartDrawer.tsx
Shared interface
- Application layout
src/app/layout.tsx - Site header
src/components/layout/Header.tsx - Site footer
src/components/layout/Footer.tsx - Header search
src/components/layout/HeaderSearch.tsx
Other components
- Visitor
Connections 30
- Visitor → Editorial home: opens
src/app/page.tsx - Visitor → Collections page: browses
src/app/collections/page.tsx - Visitor → Product detail route: views
- Visitor → Newsletter signup: subscribes
- Editorial home → Product domain service: requests data
src/app/page.tsx - Editorial home → Editorial features: renders
src/app/page.tsx - Editorial home → Home sections: renders
src/app/page.tsx - Editorial home → Newsletter signup: renders
src/app/page.tsx - Collections page → Product domain service: requests data
src/app/collections/page.tsx - Collections page → Collection filters: renders
src/app/collections/page.tsx - Collections page → Product grid: renders
src/app/collections/page.tsx - Product detail route → Product domain service: requests data
src/app/products/[slug]/page.tsx - Product detail route → Product detail: renders
src/app/products/[slug]/page.tsx - Home sections → Product grid: renders
src/features/products/components/ProductSection.tsx - Product grid → Product card: renders
src/features/products/components/ProductGrid.tsx - Product detail → Add to cart: renders
src/features/products/components/ProductDetail.tsx - Product domain service → Product repository: delegates to
src/services/products.service.ts - Product repository → Catalog mock data: reads
src/repositories/products.repository.ts - Newsletter signup → Subscriber state: uses state
src/components/layout/Newsletter.tsx - Subscriber state → Subscriber storage: loads and saves
src/features/subscribers/useSubscribers.ts - Subscriber page → Subscriber admin: renders
src/app/subscribers/page.tsx - Subscriber admin → Subscriber state: uses state
src/features/subscribers/components/SubscribersAdmin.tsx - Application layout → Site header: renders
src/app/layout.tsx - Application layout → Site footer: renders
src/app/layout.tsx - Application layout → Cart state: provides cart
src/app/layout.tsx - Application layout → Cart drawer: renders
src/app/layout.tsx - Site header → Header search: renders
src/components/layout/Header.tsx - Site header → Cart button: renders
src/components/layout/Header.tsx - Cart state → Cart storage: loads and saves
src/features/cart/CartProvider.tsx - Cart drawer → Cart state: uses state
src/features/cart/components/CartDrawer.tsx