How munquantsociety/backtest_visualiser_fe works
MQS Frontend is a React application with two distinct user workflows: explore simulated strategy backtests at /, and inspect real-money MQS Master portfolios and system health under /live. The router maps these routes to pages; backtest creation is initiated in the run form, while analysis, comparison, and live monitoring are separate product stages. Shared authentication, API/query infrastructure, and performance visualizations support both products. Feature-to-page links not shown in sampled source are marked unverified; the README documents major capabilities and shared chart use.
Main entry points: index.tsx Route dispatch · dashboard-page.tsx Backtest dashboard · live-overview-page.tsx Live overview · portfolio-detail-page.tsx Portfolio detail
Components 21
App and auth
- Route dispatch
src/app/router/index.tsx - Sign-in session
src/lib/auth-session.ts - Auth pages
src/pages/LoginPage/index.tsx
Backtest product
- Backtest dashboard
src/pages/dashboard-page.tsx - Run configuration
src/features/backtests/run-backtest-form.tsx - Backtest API
src/features/backtests/backtests-api.ts - Run library
src/pages/library-page.tsx - Run report
src/pages/backtest-detail-page.tsx - Run comparison
src/pages/compare-page.tsx - Strategy editor
src/features/strategies/components/strategy-editor.tsx
MQS Master
- Live overview
src/pages/live-overview-page.tsx - Portfolio views
src/features/portfolios - Portfolio detail
src/pages/portfolio-detail-page.tsx - Health and logs
src/features/system
Shared capabilities
- Market news
src/features/market - Performance charts
src/features/performance
Runtime platform
- HTTP client
src/lib/api-client.ts - Query cache
src/lib/query-client.ts
Other components
- User
- MQS API
- OIDC provider
Connections 23
- User → Route dispatch: navigates
src/app/router/index.tsx - Route dispatch → Backtest dashboard: routes to
src/app/router/index.tsx - Route dispatch → Run library: routes to
src/app/router/index.tsx - Route dispatch → Run report: routes to
src/app/router/index.tsx - Route dispatch → Run comparison: routes to
src/app/router/index.tsx - Route dispatch → Live overview: routes to
src/app/router/index.tsx - Route dispatch → Portfolio detail: routes to
src/app/router/index.tsx - Backtest dashboard → Run configuration: starts runs
- Run configuration → Backtest API: validates tickers
src/features/backtests/run-backtest-form.tsx - Backtest API → MQS API: requests data
README.md - Backtest dashboard → Market news: uses capability
src/pages/dashboard-page.tsx - Backtest dashboard → Strategy editor: uses capability
src/pages/dashboard-page.tsx - Run report → Performance charts: renders analysis
README.md - Run comparison → Performance charts: compares metrics
README.md - Live overview → Portfolio views: shows portfolios
README.md - Portfolio detail → Portfolio views: shows details
README.md - Portfolio detail → Performance charts: renders charts
README.md - Live overview → Health and logs: shows health
README.md - User → Auth pages: signs in
README.md - Auth pages → Sign-in session: completes sign-in
src/pages/LoginPage/index.tsx - Sign-in session → OIDC provider: uses OIDC
src/lib/auth-session.ts - HTTP client → MQS API: sends requests
README.md - Query cache → HTTP client: handles failures
src/lib/query-client.ts