How rakesh-0804/loop works
Project Loop is a feedback-management and customer-insight application. Its visible workflow lets users submit or import feedback, review individual items, and view analytics; URL review analysis can optionally import extracted reviews into the inbox. Reporting, themes, and workspace-member management are additional product areas. The excerpts establish several API-to-authentication, AI, and database relationships, but most page-to-API wiring and the purpose or integration of the separate Python backend were not shown.
Main entry points: auth.ts Authentication · db.ts Prisma database · ai.ts AI analysis · page.tsx Feedback inbox
Components 28
User experience
- Dashboard
app/(app)/dashboard/page.tsx - Feedback inbox
app/(app)/inbox/page.tsx - Analysis view
app/(app)/analysis/page.tsx - Reports view
app/(app)/reports/page.tsx - Themes view
app/(app)/themes/page.tsx - Member settings
app/(app)/settings/members/page.tsx - Profile settings
app/(app)/settings/profile/page.tsx
Feedback workflows
- Feedback entry
app/components/FeedbackModal.tsx - CSV import
app/components/CSVUploadModal.tsx - Feedback review
app/components/FeedbackReviewModal.tsx - URL review analyzer
app/components/URLReviewAnalyzerModal.tsx - Feedback API
app/api/feedback/route.ts - Bulk upload API
app/api/feedback/bulk-upload/route.ts - Feedback analysis API
app/api/feedback/analyze/route.ts - Review scrape API
app/api/feedback/scrape-url/route.ts
Insights and reporting
- Analytics API
app/api/analysis/route.ts - Report API
app/api/reports/route.ts - Themes API
app/api/themes/route.ts - AI analysis
lib/ai.ts - Demo feedback
lib/demo-data.ts
Identity and data
- Members API
app/api/members/route.ts - Profile API
app/api/user/profile/route.ts - Signup API
app/api/signup/route.ts - Auth handler
app/api/auth/[...nextauth]/route.ts - Authentication
lib/auth.ts - Prisma database
lib/db.ts
Other components
- Workspace user
- Python backend
backend/app.py
Connections 42
- Workspace user → Dashboard: opens
- Workspace user → Feedback inbox: opens
- Workspace user → Analysis view: opens
- Workspace user → Reports view: opens
- Workspace user → Themes view: opens
- Workspace user → Member settings: opens
- Workspace user → Profile settings: opens
- Feedback inbox → CSV import: renders
app/(app)/inbox/page.tsx - Feedback inbox → Feedback review: renders
app/(app)/inbox/page.tsx - Feedback inbox → URL review analyzer: renders
app/(app)/inbox/page.tsx - Dashboard → URL review analyzer: renders
app/(app)/dashboard/page.tsx - Feedback entry → Feedback review: renders
app/components/FeedbackModal.tsx - URL review analyzer → Review scrape API: requests analysis
app/components/URLReviewAnalyzerModal.tsx - Feedback review → Feedback analysis API: requests analysis
app/components/FeedbackReviewModal.tsx - Feedback review → Feedback API: updates status
app/components/FeedbackReviewModal.tsx - Review scrape API → Authentication: checks session
app/api/feedback/scrape-url/route.ts - Review scrape API → AI analysis: analyzes reviews
app/api/feedback/scrape-url/route.ts - Review scrape API → Prisma database: imports reviews
app/api/feedback/scrape-url/route.ts - Feedback API → Authentication: checks session
app/api/feedback/route.ts - Feedback API → Prisma database: reads and writes
app/api/feedback/route.ts - Feedback API → AI analysis: analyzes feedback
app/api/feedback/route.ts - Bulk upload API → Authentication: checks session
app/api/feedback/bulk-upload/route.ts - Bulk upload API → Prisma database: writes feedback
app/api/feedback/bulk-upload/route.ts - Bulk upload API → AI analysis: analyzes feedback
app/api/feedback/bulk-upload/route.ts - Feedback analysis API → Authentication: checks session
app/api/feedback/analyze/route.ts - Feedback analysis API → Prisma database: reads and writes
app/api/feedback/analyze/route.ts - Feedback analysis API → AI analysis: analyzes feedback
app/api/feedback/analyze/route.ts - Analytics API → Authentication: checks session
app/api/analysis/route.ts - Analytics API → Prisma database: reads feedback
app/api/analysis/route.ts - Analytics API → Demo feedback: uses fallback data
app/api/analysis/route.ts - Report API → Authentication: checks session
app/api/reports/route.ts - Report API → Prisma database: reads and saves
app/api/reports/route.ts - Report API → AI analysis: generates report
app/api/reports/route.ts - Themes API → Authentication: checks session
app/api/themes/route.ts - Themes API → Prisma database: reads and writes
app/api/themes/route.ts - Members API → Authentication: checks session
app/api/members/route.ts - Members API → Prisma database: manages members
app/api/members/route.ts - Profile API → Authentication: checks session
app/api/user/profile/route.ts - Profile API → Prisma database: reads and writes
app/api/user/profile/route.ts - Signup API → Prisma database: creates account
app/api/signup/route.ts - Auth handler → Authentication: registers handlers
app/api/auth/[...nextauth]/route.ts - Authentication → Prisma database: looks up users
lib/auth.ts