Commit Graph

6 Commits

Author SHA1 Message Date
Adrian Flores Cortes
5779c9a5cf feat: Add Trading Agents UI components (GAP-P0-003)
- Add tradingAgents.types.ts with complete type definitions
- Add agents.service.ts for Trading Agents API integration
- Add agentsStore.ts (Zustand) for state management
- Add BotCard.tsx, AgentCard.tsx, AgentsList.tsx components
- Add AgentsPage.tsx for /trading/agents route
- Fix TypeScript errors in AgentsList.tsx:
  - Add handlers for startBot with default config
  - Use correct AgentType for selectBot

Total: 8 new files, ~3,000 LOC

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 16:47:41 -06:00
Adrian Flores Cortes
d3f4aa3385 feat: Add ML prediction overlay components for trading charts
Add complete implementation of ML overlay components:
- MLPredictionOverlay: Renders ML price predictions as line overlay
- SignalMarkers: Displays BUY/SELL signal markers on chart
- ICTConceptsOverlay: Renders Order Blocks, FVG, and Liquidity zones
- useMlOverlayData: Custom hook with TanStack Query for data fetching
- mlOverlay.types.ts: Type definitions for all ML overlay data

Features:
- Uses lightweight-charts API for efficient rendering
- Automatic caching with 60s stale time
- Configurable colors and visibility
- Clean up on component unmount
- Full TypeScript support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 12:28:04 -06:00
Adrian Flores Cortes
d07b888dc9 fix(frontend): resolve all 218 pre-existing TypeScript errors
- Exclude test files from production build (tsconfig.json)
- Fix payment types alignment (BillingInfo, Invoice, CouponInfo, etc.)
- Add backward-compatible aliases to TradingSignal type
- Fix ToolCallCard unknown to ReactNode conversions
- Fix assistant components (MessageList, useChatAssistant timestamp handling)
- Fix SignalExecutionPanel null checks for optional properties
- Fix trading components (QuickOrderPanel, AdvancedOrderEntry, OrderBookPanel)
- Fix NodeJS.Timeout to ReturnType<typeof setTimeout>
- Fix types/index.ts duplicate ApiResponse exports
- Update payment components to use centralized types

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 05:45:12 -06:00
Adrian Flores Cortes
e204853398 fix(coherence): Add all trading enums aligned with DDL (E-COH-002, ST1.4)
- Extended src/types/trading.types.ts with all DDL trading enums
- Added OrderType, OrderSide, OrderStatus enums
- Added PositionStatus enum (open, closed, liquidated)
- Added SignalType enum (entry_long, entry_short, exit_long, exit_short, hold)
- Added ConfidenceLevel enum (low, medium, high, very_high)
- Added Timeframe enum (1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w, 1M)
- Added BotType enum (paper, live, backtest)
- Added BotStatus enum (active, paused, stopped, error)
- Deprecated old Interval type in favor of Timeframe

All types now aligned with trading.* enums from DDL schema and backend types.
Replaces hardcoded string literals with proper enum definitions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 17:07:28 -06:00
Adrian Flores Cortes
c18459558f fix(coherence): Create centralized portfolio types (E-COH-004, ST1.3)
- Created src/types/portfolio.types.ts
- Added all portfolio type definitions aligned with DDL
- Includes WebSocket event types for real-time updates
- Types match backend portfolio.types.ts structure

Part of coherence gap fix E-COH-004 - Frontend portfolio types.
Types align with DDL schema (portfolio.* enums and tables).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 17:02:41 -06:00
5b53c2539a feat: Initial commit - Trading Platform Frontend
React frontend with:
- Authentication UI
- Trading dashboard
- ML signals display
- Portfolio management

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 04:30:39 -06:00