How grigor159/gnss works
This repository implements a product-catalog and inquiry/order application alongside a Laravel staff dashboard for managing customers and sales opportunities. A shopper-facing React client requests localized navigation/catalog data from the API; staff use dashboard controllers to manage catalog records and opportunity stages, notes, attachments, and tasks. Laravel’s route provider loads separate API, web, and dashboard route files. The graph emphasizes these product flows and their domain models; several controllers and services are unsampled, so uncertain links are omitted or marked unverified.
Main entry points: OpportunityController.php Opportunity workflow · Opportunity.php Opportunity model · SubcategoryController.php Subcategory API · Product.php Product model
Components 21
Shopper client
- Header navigation
client/src/components/header/components/routes/Routes.jsx - Home state
client/src/store/slices/homeSlice.js
Catalog and API
- Route provider
api/app/Providers/RouteServiceProvider.php - Subcategory API
api/app/Http/Controllers/Api/SubcategoryController.php - Catalog endpoints
api/app/Http/Controllers/Api - Inquiry endpoint
api/app/Http/Controllers/Api/InquiryController.php - Order endpoint
api/app/Http/Controllers/Api/OrderController.php
Sales dashboard
- Dashboard controllers
api/app/Http/Controllers/Dashboard - Opportunity workflow
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity operations
api/app/Services/OpportunityService.php - Notes operations
api/app/Services/OpportunityNotesService.php - Opportunity filters
api/app/Services/FilterService.php
Domain models
- Category model
api/app/Models/Category.php - Subcategory model
api/app/Models/Subcategory.php - Product model
api/app/Models/Product.php - Customer model
api/app/Models/Customer.php - Opportunity model
api/app/Models/Opportunity.php - Opportunity statuses
api/app/Models/OpportunityStatuses.php - Order model
api/app/Models/Order.php - User and roles
api/app/Models/User.php
Other components
- Shopper
Connections 27
- Shopper → Header navigation: uses navigation
- Header navigation → Home state: dispatches routes
client/src/components/header/components/routes/Routes.jsx - Shopper → Subcategory API: requests catalog
- Route provider → Subcategory API: loads API routes
- Route provider → Catalog endpoints: loads API routes
api/app/Providers/RouteServiceProvider.php - Route provider → Inquiry endpoint: loads API routes
- Route provider → Order endpoint: loads API routes
- Subcategory API → Category model: queries categories
api/app/Http/Controllers/Api/SubcategoryController.php - Subcategory API → Subcategory model: queries subcategories
api/app/Http/Controllers/Api/SubcategoryController.php - Subcategory API → Product model: queries products
api/app/Http/Controllers/Api/SubcategoryController.php - Dashboard controllers → Opportunity workflow: includes workflow
- Opportunity workflow → Opportunity operations: delegates operations
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Notes operations: deletes notes
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Opportunity filters: filters listings
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Opportunity model: queries opportunities
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Customer model: loads customers
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Product model: loads products
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity workflow → Opportunity statuses: loads statuses
api/app/Http/Controllers/Dashboard/OpportunityController.php - Opportunity model → Customer model: belongs to
api/app/Models/Opportunity.php - Opportunity model → Product model: belongs to
api/app/Models/Opportunity.php - Opportunity model → Opportunity statuses: belongs to
api/app/Models/Opportunity.php - Category model → Subcategory model: has subcategories
api/app/Models/Category.php - Category model → Product model: associates products
api/app/Models/Category.php - Product model → Opportunity model: has opportunities
api/app/Models/Product.php - Customer model → Opportunity model: has opportunities
api/app/Models/Customer.php - Customer model → Order model: has orders
api/app/Models/Customer.php - User and roles → Opportunity model: has opportunities
api/app/Models/User.php