How likithraj9956dynamic/freshgaurd-ai works
FreshGuard AI is a retail-operations intelligence UI for monitoring store health and moving from detected issues to investigation, decisions, and actions. Its main workflow starts at the dashboard, opens store or investigation detail, and offers decision simulation and action review; separate workspaces cover network health, store-manager directives, and barcode verification. Demo data is supplied through a shared hook, while product lookup calls Open Food Facts. Source excerpts and the index establish the main routes and several component calls; unsampled page internals are not inferred.
Main entry points: App.tsx Application routes · InvestigationRoom.tsx Investigation room · useDemos.ts Demo data hook · Dashboard.tsx Operations dashboard
Components 22
Application shell
- Application routes
src/App.tsx - App shell
src/components/AppShell.tsx - Loading and empty states
src/components/state.tsx - Status badges
src/components/badges.tsx
Operations intelligence
- Operations dashboard
src/pages/Dashboard.tsx - Store overview
src/pages/StoreOverview.tsx - Store network
src/pages/Network.tsx - Store directives
src/pages/StoreManager.tsx
Issue response
- Investigation room
src/pages/InvestigationRoom.tsx - Investigation evidence
src/pages/InvestigationRoomEvidence.tsx - Issue challenge
src/pages/InvestigationRoomChallenge.tsx - Investigation graph
src/pages/InvestigationRoomGraph.tsx - Decision centre
src/pages/DecisionCentre.tsx - Action centre
src/pages/ActionCenter.tsx - What-if simulator
src/components/WhatIfSimulator.tsx
Data and integrations
- Product lookup
src/pages/ProductLookup.tsx - Demo data hook
src/hooks/useDemos.ts - Open Food Facts client
src/services/openfoodfacts.ts - Domain types
src/types/issue.ts - Product API types
src/types/openfoodfacts.ts
Other components
- Retail operator
- Open Food Facts API
Connections 29
- Retail operator → Application routes: opens
src/App.tsx - Application routes → App shell: wraps routes
src/App.tsx - Application routes → Operations dashboard: routes to
src/App.tsx - Application routes → Store overview: routes to
src/App.tsx - Application routes → Investigation room: routes to
src/App.tsx - Application routes → Decision centre: routes to
src/App.tsx - Application routes → Store network: routes to
src/App.tsx - Application routes → Action centre: routes to
src/App.tsx - Application routes → Store directives: routes to
src/App.tsx - Application routes → Product lookup: routes to
src/App.tsx - App shell → Application routes: hosts routes
src/components/AppShell.tsx - Operations dashboard → Demo data hook: reads demo data
src/pages/Dashboard.tsx - Store overview → Demo data hook: reads demo data
src/pages/StoreOverview.tsx - Store network → Demo data hook: reads demo data
src/pages/Network.tsx - Store directives → Demo data hook: reads demo data
src/pages/StoreManager.tsx - Investigation room → Demo data hook: reads demo data
src/pages/InvestigationRoom.tsx - Decision centre → Demo data hook: reads demo data
src/pages/DecisionCentre.tsx - Action centre → Demo data hook: reads demo data
src/pages/ActionCenter.tsx - Operations dashboard → Status badges: renders status
src/pages/Dashboard.tsx - Operations dashboard → Loading and empty states: renders empty state
src/pages/Dashboard.tsx - Store overview → Loading and empty states: renders loading state
src/pages/StoreOverview.tsx - Investigation room → Investigation evidence: renders
src/pages/InvestigationRoom.tsx - Investigation room → Issue challenge: renders
src/pages/InvestigationRoom.tsx - Investigation room → Investigation graph: renders
src/pages/InvestigationRoom.tsx - Decision centre → What-if simulator: renders
src/pages/DecisionCentre.tsx - Product lookup → Open Food Facts client: fetches product
src/pages/ProductLookup.tsx - Open Food Facts client → Open Food Facts API: requests product
src/services/openfoodfacts.ts - Open Food Facts client → Product API types: uses response types
src/services/openfoodfacts.ts - Investigation room → Domain types: uses domain types
src/pages/InvestigationRoom.tsx