How mohamedkhalifa19/nassar-fragrances works
Nassar Ruddy Perfumes is an Arabic-first perfume marketplace with public product discovery and a management dashboard. The customer path is browsing or searching the catalog, refining results, and viewing product or offer details; cart state is represented in the app store. Administrators sign in and manage perfume, offer, and news content. The graph preserves these documented capabilities, but several implementations are unsampled, so their links are shown as unverified rather than asserted as source-confirmed calls.
Main entry points: prisma.ts PostgreSQL database · index.ts Cached content access · product.actions.ts Product actions · page.tsx Perfume catalog
Components 26
Public storefront
- Store pages
app/(public)/page.tsx - Perfume catalog
app/(public)/perfumes/page.tsx - Catalog search
app/components/PerfumesClient.tsx - Catalog filters
app/components/FilterationSidebar.tsx - Perfume listing
app/(dashboard)/components/Perfumes.tsx - Offer pages
app/(public)/offers/page.tsx - Offer details
app/(public)/offers/[id]/page.tsx - News pages
app/(public)/news/page.tsx - Cart state
app/store/features/cart/cart.ts
Admin management
- Admin sign-in
app/(auth)/auth/login/page.tsx - Perfume management
app/(dashboard)/dashboard/perfumes/page.tsx - Offer management
app/(dashboard)/dashboard/offers/page.tsx - News management
app/(dashboard)/dashboard/news/page.tsx - Perfume table
app/(dashboard)/components/PerfumesTable.tsx - Offer table
app/(dashboard)/components/OffersTable.tsx - News table
app/(dashboard)/components/NewsTable.tsx
Content services
- Admin actions
app/actions/admin.actions.ts - Product actions
app/actions/product.actions.ts - Offer actions
app/actions/offer.actions.ts - News actions
app/actions/news.actions.ts - Cached content access
app/data/index.ts
Shared platform
- PostgreSQL database
app/libs/prisma.ts - Image cleanup
app/utils/delete-image.ts - Domain types
app/libs/types.ts
Other components
- Customer
- Administrator
Connections 33
- Customer → Store pages: browses
- Customer → Perfume catalog: searches
- Perfume catalog → Catalog search: renders
app/(public)/perfumes/page.tsx - Perfume catalog → PostgreSQL database: queries
app/(public)/perfumes/page.tsx - Catalog search → Catalog filters: opens filters
app/components/PerfumesClient.tsx - Catalog search → Perfume listing: renders results
app/components/PerfumesClient.tsx - Customer → Offer pages: views offers
- Offer pages → PostgreSQL database: queries
app/(public)/offers/page.tsx - Customer → Offer details: opens offer
- Offer details → PostgreSQL database: queries
app/(public)/offers/[id]/page.tsx - Customer → News pages: reads news
- Customer → Cart state: updates cart
- Administrator → Admin sign-in: signs in
- Admin sign-in → Admin actions: calls login
app/(auth)/auth/login/page.tsx - Administrator → Perfume management: manages catalog
- Perfume management → PostgreSQL database: loads records
app/(dashboard)/dashboard/perfumes/page.tsx - Perfume management → Perfume table: renders
app/(dashboard)/dashboard/perfumes/page.tsx - Administrator → Offer management: manages offers
- Offer management → PostgreSQL database: loads records
app/(dashboard)/dashboard/offers/page.tsx - Offer management → Offer table: renders
app/(dashboard)/dashboard/offers/page.tsx - Administrator → News management: manages news
- News management → PostgreSQL database: loads records
app/(dashboard)/dashboard/news/page.tsx - News management → News table: renders
app/(dashboard)/dashboard/news/page.tsx - Offer table → Cached content access: edits offers
- Perfume table → Product actions: edits products
- News table → News actions: edits news
- Cached content access → Product actions: fetches products
app/data/index.ts - Cached content access → Offer actions: fetches offers
app/data/index.ts - Cached content access → News actions: fetches news
app/data/index.ts - Product actions → PostgreSQL database: uses Prisma
app/actions/product.actions.ts - Offer actions → PostgreSQL database: uses Prisma
app/actions/offer.actions.ts - Product actions → Image cleanup: cleans images
app/actions/product.actions.ts - Offer actions → Image cleanup: cleans images
app/actions/offer.actions.ts