How erdilatifi/project-management-app works
Flowfoundry is a Next.js project-management app backed by Supabase. A user signs in, selects or creates a workspace, organizes work into projects, and manages tasks on project boards; workspace members can also chat and receive notifications. Profiles, invitations, and people management support that collaboration flow. The graph includes the documented capability branches, plus the shared Supabase client and validation layer. Some feature implementations were not sampled, so those connections rely on README statements rather than inspected call sites.
Main entry points: client.ts Browser client · server.ts Server client · profile/page.tsx Profile settings · tasks/page.tsx Task board
Components 22
Identity and profiles
- Sign-in pages
app/(pages)/(auth)/login/page.tsx - Auth actions
app/actions/AuthActions.ts - OAuth callback
app/auth/callback/route.ts - Profile settings
app/(pages)/profile/page.tsx - Profile API
app/api/profile/route.ts - Avatar API
app/api/profile/avatar/route.ts
Workspace and work
- Workspace pages
app/workspaces/page.tsx - Workspace state
hooks/useWorkspaces.ts - People management
app/workspaces/[id]/people/page.tsx - Invitation management
app/api/workspaces/invitations/route.ts - Project listing
app/projects/page.tsx - Project state
hooks/useProjects.ts - Task board
app/projects/[id]/tasks/page.tsx - My tasks
app/tasks/page.tsx
Collaboration
- Workspace chat
components/chat/MessagePanel.tsx - Notifications
components/notifications/NotificationBell.tsx - Notification API
app/api/notifications/route.ts
Shared platform
- Browser client
utils/supabase/client.ts - Server client
utils/supabase/server.ts - Request validation
lib/validation/middleware.ts - Supabase data
Other components
- User
Connections 35
- User → Sign-in pages: signs in
README.md - Sign-in pages → Auth actions: submits credentials
- Auth actions → Server client: authenticates
- User → Workspace pages: opens workspaces
README.md - Workspace pages → Workspace state: loads state
app/workspaces/page.tsx - Workspace state → Browser client: queries data
hooks/useWorkspaces.ts - Workspace pages → Project listing: selects projects
- Project listing → Project state: loads projects
app/projects/page.tsx - Project state → Browser client: queries and subscribes
hooks/useProjects.ts - Project listing → Task board: opens board
app/projects/page.tsx - User → Task board: manages tasks
README.md - User → My tasks: tracks assigned tasks
README.md - Task board → Browser client: reads and updates
app/projects/[id]/tasks/page.tsx - User → People management: manages members
README.md - People management → Browser client: loads member data
app/workspaces/[id]/people/page.tsx - User → Invitation management: invites members
README.md - Invitation management → Server client: creates invitations
app/api/workspaces/invitations/route.ts - Invitation management → Request validation: validates requests
app/api/workspaces/invitations/route.ts - User → Profile settings: edits profile
README.md - Profile settings → Browser client: loads and syncs profile
app/(pages)/profile/page.tsx - Profile settings → Profile API: updates profile
- Profile settings → Avatar API: uploads avatar
- User → Workspace chat: chats with members
README.md - Workspace chat → Browser client: delivers messages
- User → Notifications: views alerts
README.md - Notifications → Notification API: loads notifications
- Notification API → Server client: queries data
app/api/notifications/route.ts - Notification API → Request validation: validates requests
app/api/notifications/route.ts - OAuth callback → Server client: exchanges session
app/auth/callback/route.ts - OAuth callback → Supabase data: updates profile
app/auth/callback/route.ts - Workspace state → Supabase data: reads workspace state
- Project state → Supabase data: reads project state
hooks/useProjects.ts - Task board → Supabase data: updates tasks
- Profile API → Server client: uses server client
app/api/profile/route.ts - Avatar API → Server client: uses server client
app/api/profile/avatar/route.ts