As a user I want to send design prompts and receive AI-generated schematic responses via a backend API. Implement /api/chat POST endpoint using FastAPI: accept user text prompt and conversation history, route to LLM (GPT/Claude) via LiteLLM, apply Langchain prompt orchestration and memory management, return structured response including schematic description/data. Support streaming responses (SSE).
As an admin I want to manage users via backend APIs. Implement /api/admin/users GET (paginated list with filters), /api/admin/users/{id} GET/PUT/DELETE endpoints using FastAPI: role-based access control (admin only), return user records with IST timestamps. Connects to: Users Management page.
Set up global CSS variables, design tokens, typography, color palette (#1A1A2E bg, #16213E surface, #E5E5E5 text, #FF6F61 accent, #6C757D muted), spacing system, and shared component styles for the prime-ai frontend. Apply blueprint animated background (orthographic grid lines, radial coral bloom) as a global page wrapper. Remove scaffold pages not in the defined user flows. Ensure dark mode is default and all existing scaffold pages inherit the new theme.
As an admin I want to retrieve platform usage analytics via a backend API. Implement /api/admin/analytics GET endpoint: aggregated metrics (designs generated, active users, export counts by format), /api/admin/exports GET for file output tracking (user, file type, size, IST timestamp), report export endpoint (PDF/CSV). Connects to: Analytics page.
As a user I want to land on an immersive blueprint-aesthetic homepage. Implement the Landing page based on the existing JSX design (v2): NavBar (frosted glass, coral CTA), Hero (animated SVG blueprint, pulsing 'Start Designing' CTA), BlueprintShowcase (interactive hotspot tooltips), FeatureHighlights (6 cards, coral glow hover), HowItWorks (4-step timeline), CapabilitiesGrid, Testimonials (carousel), Pricing (INR tiers), FAQ (accordion), CallToAction, Footer. Connects to: Signup and Login pages.
As a user I want the backend to generate 2D schematic outputs and basic 3D models from my described idea. Implement /api/design/generate POST endpoint: receive structured design intent, generate 2D schematic data (SVG/JSON), invoke basic 3D model generation (STL/OBJ), store outputs, return file references and design metadata. Connects to: Design Viewer page.
As a user I want to sign in via a visually consistent login page. Implement the Login page (v2 JSX design): centered card on animated blueprint background, email/password fields with coral accent focus states, 'Sign In' coral button, link to Signup, 'Forgot Password' ghost link. Connects from: Landing NavBar. Connects to: Admin Dashboard (admin role) or Chat page (user role).
As a user I want to create a new prime-ai account from an immersive signup page. Implement the Signup page (v2 JSX design): name/email/password fields with coral accent focus states, 'Create Account' coral CTA, link back to Login, locale-aware copy (INR/IST). Connects from: Landing 'Start Designing' CTA. Connects to: Chat page after successful registration.
As an admin I want to see platform usage overview on a dedicated dashboard. Implement the Admin Dashboard page (v2 JSX design): KPI cards (total users, designs generated, active sessions, file exports), usage trend charts, recent activity feed, navigation to Users and Analytics. Blueprint-aesthetic dark surface with coral accent data highlights. Connects from: Login (admin role). Connects to: Users and Analytics pages.
As a user I want to export my generated designs via a backend API supporting STL, OBJ, and PDF formats. Implement /api/export POST endpoint: accept design ID and desired format, convert stored design data to requested format, generate downloadable signed URL, log export event with IST timestamp and user ID. Connects to: Export page frontend.
As a user I want my design outputs and personal data to be encrypted at rest and in transit using AES-256. Implement encryption layer for all stored design files and user data in MySQL. Enforce HTTPS/TLS for all API communication. Add encryption/decryption middleware in FastAPI for sensitive fields. Document encryption key management strategy. Applied after all core API services are functional.
As an admin I want to view platform usage reports and track file outputs from an Analytics page. Implement the Analytics page (v2 JSX design): usage trend charts (designs generated, active users, export counts), file output tracking table (file type, user, timestamp IST, size), analytics report download option, KPI stat cards, filters toolbar. Connects from: Admin Dashboard.
As a user I want to describe my design ideas conversationally and receive AI-generated schematics in real time. Implement the Chat page (v2 JSX design): conversational message bubbles, text input with coral send button, streaming AI response display, conversation history sidebar, blueprint-aesthetic container, iterative refinement prompt support. Connects from: Signup/Login. Connects to: Design Viewer when schematic is generated.
As an admin I want to view, search, and manage all registered users from a dedicated Users page. Implement the Users page (v2 JSX design): paginated data table (name, email, role, join date, status), search and filter controls, Edit User action (inline or modal), deactivation/deletion, coral accent table highlights, blueprint-themed table borders. Connects from: Admin Dashboard. Connects back to: Admin Dashboard.
As a user I want to view generated 2D schematics and 3D models in an interactive viewer. Implement the Design Viewer page (v2 JSX design): 2D schematic canvas with zoom/pan, pencil-sketch draw animation on load, annotation tooltips, 3D model viewport (Three.js), ViewerToolbar tab switcher, PropertiesPanel accordion, IterationHistory strip, ExportBar. Connects from: Chat page. Connects to: Export page.
As a user I want to download my generated designs in multiple formats from a dedicated export page. Implement the Export page (v2 JSX design): format selection panel (STL, OBJ, PDF, Image), download progress indicator, export history list, Bill of Materials preview, coral-accented download buttons, blueprint-bordered file cards. Connects from: Design Viewer. Final step in user flow.

No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No comments yet. Be the first!