How samrojk/feedbacklens works
FeedbackLens is a workspace-based customer-feedback analysis app. Its apparent core workflow is importing CSV feedback, analyzing it with AI, and reviewing results in dashboards, analyses, and issue views. The tree also shows authentication, workspace membership and invitations, notifications, and profile/settings capabilities. Source excerpts confirm the analyze endpoint’s workspace check and analysis call, plus selected persistence and notification operations; several other routes are unsampled, so their connections are left unverified.
Main entry points: server.ts Supabase store · get-workspace.ts Workspace access · route.ts Invitation management · page.tsx Feedback import
Components 26
Feedback analysis
- Feedback import
app/(dashboard)/feedback/page.tsx - CSV upload
app/api/upload/route.ts - CSV parsing
lib/csv/parser.ts - Analyze endpoint
app/api/analyze/route.ts - Feedback analysis
lib/ai/analyze.ts - Analysis records
app/api/analyses/route.ts - Analysis detail API
app/api/analyses/[analysisId]/route.ts
Results and insights
- Workspace overview
app/(dashboard)/overview/page.tsx - Dashboard data
lib/supabase/dashboard-data.ts - Analysis results
app/(dashboard)/analyses/[analysisId]/page.tsx - Issue views
app/(dashboard)/issues/page.tsx
Workspace and access
- Sign in
app/(auth)/login/page.tsx - Sign up
app/(auth)/signup/page.tsx - Authentication API
app/api/auth/login/route.ts - Workspace switching
components/layout/workspace-switcher.tsx - Workspace management
app/api/workspaces/route.ts - Invitation review
app/invitations/page.tsx - Invitation management
app/api/workspace-invitations/route.ts - Member administration
app/api/workspace-management/route.ts - Profile and settings
app/api/settings/route.ts - Notification API
app/api/notifications/route.ts
Data and integrations
- Workspace access
lib/supabase/get-workspace.ts - Notification creation
lib/notifications/create-notification.ts - Supabase store
lib/supabase/server.ts
Other components
- User
- Gemini AI
Connections 29
- User → Feedback import: imports feedback
app/(dashboard)/feedback/page.tsx - Feedback import → CSV upload: uploads CSV
- CSV upload → CSV parsing: parses CSV
- Feedback import → Analyze endpoint: submits feedback
- Analyze endpoint → Workspace access: checks access
app/api/analyze/route.ts - Analyze endpoint → Feedback analysis: analyzes feedback
app/api/analyze/route.ts - Feedback analysis → Gemini AI: uses model
- Analysis records → Supabase store: stores records
- User → Workspace overview: views metrics
app/(dashboard)/overview/page.tsx - Workspace overview → Dashboard data: loads dashboard
app/(dashboard)/overview/page.tsx - Dashboard data → Supabase store: queries data
- User → Analysis results: views results
- User → Issue views: reviews issues
- User → Sign in: signs in
app/(auth)/login/page.tsx - User → Sign up: creates account
- Sign in → Authentication API: submits credentials
- User → Workspace switching: switches workspace
- User → Invitation review: reviews invites
app/invitations/page.tsx - Invitation review → Invitation management: requests invitations
- Invitation management → Workspace access: checks workspace
app/api/workspace-invitations/route.ts - Invitation management → Supabase store: writes invitations
app/api/workspace-invitations/route.ts - Invitation management → Notification creation: creates notice
app/api/workspace-invitations/route.ts - Notification creation → Supabase store: writes notices
- Member administration → Workspace access: checks workspace
app/api/workspace-management/route.ts - Member administration → Supabase store: updates membership
app/api/workspace-management/route.ts - Profile and settings → Workspace access: checks workspace
app/api/settings/route.ts - Profile and settings → Supabase store: updates settings
app/api/settings/route.ts - Notification API → Workspace access: checks workspace
app/api/notifications/route.ts - Notification API → Supabase store: reads and updates
app/api/notifications/route.ts