How gogoez0007/dmarine_trading_dashboard works
Delta Marine AquaTrack is a shrimp-trading operations dashboard spanning harvest intake, buyer contracts, allocation, unloading reconciliation, review, and reporting, with configurable ML/AI prediction. The frontend’s application shell and API client are visible in excerpts; the README names the product but does not document runtime wiring. Backend handlers, services, repositories, and several views are therefore represented at subsystem level where source coverage is incomplete. Dashed, uncited edges mark likely runtime connections rather than inspected call paths.
Main entry points: App.tsx App shell · service Trading services · main.py Prediction API · ingester.py Excel sync ingester
Components 26
Trading dashboard
- App shell
frontend/src/App.tsx - API client
frontend/src/api/client.ts - Dashboard & KPIs
frontend/src/views/DashboardView.tsx - Harvest allocation
frontend/src/views/AllocationView.tsx - Buyer contracts
frontend/src/views/SPBView.tsx - Unload reconciliation
frontend/src/views/RekonView.tsx - Trading review
frontend/src/views/ReviewView.tsx - Operations reports
frontend/src/views/SPBReportView.tsx - Prediction workbench
frontend/src/views/TestPredictView.tsx - Company & pond masters
frontend/src/views/MasterPerusahaanView.tsx - Pond management
frontend/src/views/TambakView.tsx - Harvest reports
frontend/src/views/PanenReportView.tsx
Trading operations
- HTTP API
cmd/api/main.go - Domain handlers
internal/handler - Trading services
internal/service - Data repositories
internal/repository
Prediction service
- ML client
internal/client/ml_client.go - Prediction API
ml_service/app/main.py - Prediction models
ml_service/app/predictors - AI providers
ml_service/app/ai_providers
Harvest ingestion
- Excel sync ingester
sync_service/ingester.py - Harvest workbook parser
sync_service/parser.py
Other components
- Trading user
- MySQL store
- Synced Excel files
- AI provider APIs
Connections 25
- Trading user → App shell: uses
README.md - App shell → Dashboard & KPIs: renders
frontend/src/App.tsx - App shell → Harvest allocation: renders
frontend/src/App.tsx - App shell → Buyer contracts: renders
frontend/src/App.tsx - App shell → Unload reconciliation: renders
frontend/src/App.tsx - App shell → Trading review: renders
frontend/src/App.tsx - App shell → Prediction workbench: renders
frontend/src/App.tsx - App shell → Pond management: renders
frontend/src/App.tsx - App shell → Harvest reports: renders
frontend/src/App.tsx - App shell → Operations reports: renders
frontend/src/App.tsx - App shell → Company & pond masters: renders
frontend/src/App.tsx - App shell → API client: requests data
frontend/src/App.tsx - API client → HTTP API: calls API
- HTTP API → Domain handlers: routes to
- Domain handlers → Trading services: delegates to
- Trading services → Data repositories: uses
- Data repositories → MySQL store: reads and writes
- Trading services → ML client: requests predictions
- ML client → Prediction API: calls
- Prediction API → Prediction models: uses models
ml_service/app/main.py - Prediction API → AI providers: dispatches
ml_service/app/main.py - AI providers → AI provider APIs: calls optionally
ml_service/app/ai_providers/agent_provider.py - Synced Excel files → Excel sync ingester: supplies files
- Excel sync ingester → Harvest workbook parser: parses workbooks
sync_service/ingester.py - Excel sync ingester → MySQL store: ingests records
sync_service/ingester.py