# Dual UX Specification: Modern App + E-commerce Flows **Document Purpose**: Comprehensive UX specification supporting both modern app-style instant purchase and traditional e-commerce cart workflows. **Last Updated**: 2025-08-04 **Status**: Implementation Ready --- ## Overview The Project Mycelium supports **two distinct user experience patterns** to accommodate different user preferences and use cases: 1. **Modern App Flow** (OpenRouter-style): Instant purchase with wallet top-up 2. **Traditional E-commerce Flow**: Cart-based shopping with checkout --- ## UX Flow Comparison ### **Flow 1: Modern App Style (OpenRouter-inspired)** ```mermaid graph TD A[Browse Marketplace] --> B[Register/Login] B --> C[View Service] C --> D[Buy Now Button] D --> E{TFC Balance Check} E -->|Sufficient| F[Instant Deploy] E -->|Insufficient| G[Auto Top-up Modal] G --> H[Stripe Payment] H --> I[TFC Added] I --> F F --> J[Deployment Status] J --> K[Service Active] ``` **Key Features:** - **Instant Purchase**: Single-click buying - **Auto Top-up**: Seamless balance management - **Wallet-centric**: Balance always visible - **Minimal Friction**: No cart, no checkout process ### **Flow 2: Traditional E-commerce Style** ```mermaid graph TD A[Browse Marketplace] --> B[View Service] B --> C[Add to Cart] C --> D[Continue Shopping] D --> E[Review Cart] E --> F[Checkout] F --> G{Payment Method} G -->|TFC Balance| H[Pay with TFC] G -->|Credit Card| I[Stripe Checkout] I --> J[TFC Purchase] J --> H H --> K[Batch Deployment] K --> L[Order Confirmation] ``` **Key Features:** - **Bulk Shopping**: Multiple items in cart - **Price Comparison**: Review before purchase - **Batch Deployment**: Deploy multiple services together - **Familiar UX**: Traditional e-commerce experience --- ## Detailed UX Specifications ### **Modern App Flow Implementation** #### **1. Wallet-First Interface** ```html
``` #### **2. Buy Now Button (Primary Action)** ```html{{this.cpu}}CPU • {{this.memory}}GB RAM • {{this.storage}}GB