- **Context:** Professional sellers need to understand their "Sales Velocity" and "Customer Acquisition Cost" to justify using MarketX over eBay or Etsy. - **Problem:** Sellers currently have zero visibility into their performance metrics beyond a simple list of past orders. - **Acceptance Criteria:** - Create a high-performance `AnalyticsService` that aggregates revenue, top-selling categories, and repeat customer rates. - Use TypeORM's `QueryBuilder` to generate time-series data (Daily/Weekly/Monthly) for revenue charts. - Expose a `/seller/dashboard/stats` endpoint that returns pre-aggregated JSON objects ready for visualization in a frontend Chart.js or D3.js dashboard.
AnalyticsServicethat aggregates revenue, top-selling categories, and repeat customer rates.QueryBuilderto generate time-series data (Daily/Weekly/Monthly) for revenue charts./seller/dashboard/statsendpoint that returns pre-aggregated JSON objects ready for visualization in a frontend Chart.js or D3.js dashboard.