Lookbook
Your generations live at/lookbook. Browse, zoom, select, and send designs to production.
Overview
Your generated designs live here. Each card shows:- Thumbnail with zoom on click
- Generation date
- Design prompt
- Status indicator (pending → completed → in production)
Generation Flow
- Chat creates generation → saved to
generationstable - AI returns image URL →
image_urlupdated - User views in gallery → sorted newest first
- User selects designs → multi-select for bulk actions
Database Schema
Multi-Select Actions
Add to Collection
Group selected designs into a named collection
Send to Production
Create production order with selected designs
Delete
Remove selected generations permanently
Zoom Modal
Click any generation to view full-size:Production Orders
From the gallery, you can send designs to production:- Select designs (one or more)
- Click “Send to Production”
- Choose garment (pulls from Shopify or mocks)
- Select sizes and quantities
- Checkout via Stripe
Filtering & Search
- By project: Show only designs from current project
- By date range: Filter by creation date
- By status: pending, completed, in_production
Realtime Updates
New generations appear automatically via Supabase Realtime:Generation Detail Page
/generations/[id] shows full detail:
- Full-size image
- Complete prompt
- Model used (nano-banana / nano-banana-pro)
- Provider (Replicate / fal.ai)
- Reference images used
- Thread context (links to chat)
- Quick actions (production, collection, share)
Export Options
Download PNG
Save high-resolution image to device
Copy Link
Copy shareable URL (public if enabled)
Performance
Gallery uses virtual scrolling for large collections:- Lazy loading: Images load on scroll into view
- Pagination: 50 items per page
- Blur placeholder: Low-res preview while loading