How angelouausan90-prog/backup-1 works
AICE Franchisee Hub is a role-based franchise operations application. Users enter through the React app and navigate to public, admin, agent, franchisee, or delivery workspaces; those screens use a shared API client to reach the server. Major domain capabilities include franchise applications and handover, orders and delivery tracking, inventory and warehouse operations, promotions, reporting, notifications, QR ordering, and chatbot FAQs. The source index and excerpts establish key modules, but most server behavior and several page implementations were not sampled, so uncertain runtime links are omitted or marked unverified.
Main entry points: App.tsx App Router · SharedUI.tsx Shared UI · AdminCorePages.tsx Admin Console · AgentPages.tsx Agent Workspace
Components 21
Application
- App Router
src/App.tsx - Public Landing
src/pages/public/PublicLandingPage.tsx - Shared UI
src/components/SharedUI.tsx
Franchise Operations
- Admin Console
src/pages/admin/AdminCorePages.tsx - Admin Operations
src/pages/admin/AdminOperationsPages.tsx - Agent Workspace
src/pages/agent/AgentPages.tsx - Franchisee Workspace
src/pages/franchisee/FranchiseePages.tsx - Delivery Workspace
src/pages/delivery/DeliveryPages.tsx - Application Handover
src/components/FranchiseePaperFormModal.tsx - Signature Capture
src/components/SignaturePadCanvas.tsx
Customer Engagement
- Notifications
src/components/NotificationsView.tsx - Chatbot FAQs
src/pages/admin/ChatbotFaqsView.tsx - Public Chatbot
src/components/PublicChatbotWidget.tsx - QR Ordering
src/components/FranchiseeQrSection.tsx - Store Map
src/components/StoreMapView.tsx
Runtime Services
- Domain Rules
src/utils/domainRules.ts - API Client
src/services/api.ts - HTTP Server
server.ts - Database Access
server/db.ts - SQLite Data
server/data
Other components
- Role Users
Connections 23
- Role Users → App Router: use
src/App.tsx - App Router → Admin Console: routes to
src/App.tsx - App Router → Admin Operations: routes to
src/App.tsx - App Router → Chatbot FAQs: routes to
src/App.tsx - App Router → Store Map: renders
src/App.tsx - App Router → Public Landing: routes to
src/App.tsx - App Router → Agent Workspace: routes to
src/App.tsx - App Router → Franchisee Workspace: routes to
src/App.tsx - App Router → Delivery Workspace: routes to
src/App.tsx - Agent Workspace → Application Handover: renders
src/pages/agent/AgentPages.tsx - Franchisee Workspace → Application Handover: renders
src/pages/franchisee/FranchiseePages.tsx - Application Handover → Signature Capture: uses
src/components/FranchiseePaperFormModal.tsx - Public Landing → Public Chatbot: renders
src/pages/public/PublicLandingPage.tsx - Admin Console → QR Ordering: uses
src/pages/admin/AdminCorePages.tsx - App Router → Notifications: renders
src/App.tsx - API Client → HTTP Server: requests
- HTTP Server → Database Access: delegates
server.ts - Database Access → SQLite Data: reads/writes
- HTTP Server → Domain Rules: uses rules
server.ts - Admin Console → Shared UI: uses
src/pages/admin/AdminCorePages.tsx - Admin Operations → Shared UI: uses
src/pages/admin/AdminOperationsPages.tsx - Agent Workspace → Shared UI: uses
src/pages/agent/AgentPages.tsx - Delivery Workspace → Shared UI: uses
src/pages/delivery/DeliveryPages.tsx