How abdelrahmanmohmmed/complaints works
Feedback Management System provides role-based feedback management, channel integrations, dashboards and reports, with multilingual AI classification and prioritization. The main backend workflow is channel ingestion into feedback records, followed by scheduled preprocessing and AI analysis; users access management and analytics through the web application. The README documents the product capabilities and roles, while sampled backend sources show scheduling, ingestion and analysis. Several UI pages and backend routers are unsampled, so their detailed API interactions are not asserted.
Main entry points: main.py FastAPI application · combined_service.py Scheduled analysis job · routes.ts Role-based routes · feedback_ingestion.py Channel ingestion
Components 25
Web application
- Role-based routes
frontend/src/app/routes.ts - Feedback views
frontend/src/app/pages/FeedbackList.tsx - Dashboards
frontend/src/app/pages/Dashboard.tsx - Reports
frontend/src/app/pages/Reports.tsx - Integration settings
frontend/src/app/pages/IntegrationSettings.tsx - Auth context
frontend/src/app/contexts/AuthContext.tsx - Auth service
frontend/src/services/authService.ts - API client
frontend/src/services/api.ts
Backend API
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Feedback routes
backend/app/routers/feedback.py - Integration routes
backend/app/routers/integration.py - Company and user routes
backend/app/routers
Feedback processing
- Channel ingestion
backend/app/services/feedback_ingestion.py - Email fetching
backend/app/services/get_email_messages.py - Twitter collection
backend/app/services/scrap_twitter.py - Scheduled analysis job
backend/app/services/combined_service.py - Text preprocessing
backend/app/preprocessing/router.py
Identity and data
- PostgreSQL data
backend/app/database.py - Domain records
backend/app/models.py
AI analysis
- Arabic predictor
backend/app/ai/arabic_predictor.py - English predictor
backend/app/ai/english_predictor.py - Priority scoring
backend/app/ai/priority.py
Other components
- Product user
- Feedback platforms
Connections 29
- Product user → Role-based routes: uses
frontend/src/app/routes.ts - Role-based routes → Feedback views: routes to
frontend/src/app/routes.ts - Role-based routes → Dashboards: routes to
frontend/src/app/routes.ts - Role-based routes → Reports: routes to
frontend/src/app/routes.ts - Role-based routes → Integration settings: routes to
frontend/src/app/routes.ts - Product user → Auth context: authenticates
- Auth context → Auth service: calls
frontend/src/app/contexts/AuthContext.tsx - Auth service → API client: requests
frontend/src/services/authService.ts - FastAPI application → Authentication routes: registers
backend/app/main.py - FastAPI application → Feedback routes: registers
backend/app/main.py - FastAPI application → Integration routes: registers
backend/app/main.py - FastAPI application → Company and user routes: registers
backend/app/main.py - FastAPI application → Channel ingestion: schedules
backend/app/main.py - FastAPI application → Scheduled analysis job: schedules
backend/app/main.py - Integration routes → Channel ingestion: invokes
backend/app/routers/integration.py - Integration routes → Twitter collection: invokes
backend/app/routers/integration.py - Channel ingestion → Feedback platforms: fetches feedback
backend/app/services/feedback_ingestion.py - Channel ingestion → Email fetching: uses
backend/app/services/feedback_ingestion.py - Channel ingestion → Domain records: deduplicates records
backend/app/services/feedback_ingestion.py - Scheduled analysis job → PostgreSQL data: queries and updates
backend/app/services/combined_service.py - Scheduled analysis job → Domain records: processes records
backend/app/services/combined_service.py - Scheduled analysis job → Text preprocessing: preprocesses text
backend/app/services/combined_service.py - Scheduled analysis job → Arabic predictor: predicts Arabic
backend/app/services/combined_service.py - Scheduled analysis job → English predictor: predicts English
backend/app/services/combined_service.py - Arabic predictor → Priority scoring: uses scoring
backend/app/ai/arabic_predictor.py - English predictor → Priority scoring: uses scoring
backend/app/ai/english_predictor.py - FastAPI application → PostgreSQL data: creates schema
backend/app/main.py - Authentication routes → PostgreSQL data: queries users
backend/app/routers/auth.py - Authentication routes → Domain records: reads and updates
backend/app/routers/auth.py