How tyo-whydi/stockflow-app works
StockFlow is a browser-based warehouse inventory app. Users can sign in, then manage product and location data, record stock movements, and review current stock, reports, and activity. The Next.js pages query Supabase directly through a shared browser client; the excerpts show authentication and several inventory operations, while other dashboard modules are represented from the source index and file tree. The README is a generic Next.js starter and documents no additional product capabilities.
Main entry points: supabase.ts Supabase client · login/page.tsx Sign in · dashboard/page.tsx Dashboard overview · app/page.tsx Home overview
Components 15
Access and overview
- Sign in
app/login/page.tsx - Home overview
app/page.tsx - Dashboard overview
app/dashboard/page.tsx - User management
app/dashboard/users/page.tsx - User profile
app/dashboard/profile/page.tsx
Inventory operations
- Categories
app/dashboard/categories/page.tsx - Products
app/dashboard/products/page.tsx - Storage locations
app/dashboard/locations/page.tsx - Stock transactions
app/dashboard/transactions/page.tsx
Stock insights
- Stock by location
app/dashboard/stock/page.tsx - Stock reports
app/dashboard/reports/page.tsx - Activity history
app/dashboard/history/page.tsx
Data services
- Supabase client
lib/supabase.ts - Supabase
Other components
- Warehouse user
Connections 15
- Warehouse user → Sign in: signs in
app/login/page.tsx - Sign in → Supabase client: authenticates with
app/login/page.tsx - Sign in → Dashboard overview: navigates to
app/login/page.tsx - Home overview → Supabase client: queries data
app/page.tsx - Dashboard overview → Supabase client: queries data
app/dashboard/page.tsx - Categories → Supabase client: manages categories
app/dashboard/categories/page.tsx - Products → Supabase client: manages products
app/dashboard/products/page.tsx - Storage locations → Supabase client: manages locations
app/dashboard/locations/page.tsx - Stock transactions → Supabase client: records movements
app/dashboard/transactions/page.tsx - Stock by location → Supabase client: reads stock
app/dashboard/stock/page.tsx - Stock reports → Supabase client: reads stock
app/dashboard/reports/page.tsx - Activity history → Supabase client: reads activity
app/dashboard/history/page.tsx - User management → Supabase client: uses data client
app/dashboard/users/page.tsx - User profile → Supabase client: uses data client
app/dashboard/profile/page.tsx - Supabase client → Supabase: connects to