Commit Graph

5 Commits

Author SHA1 Message Date
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
42d18759b5 feat: Implement BLOCKER-001 proactive refresh + E2E video tests (frontend)
BLOCKER-001: Token Refresh Improvements (FASE 4 frontend)
- Proactive refresh scheduler: refresh 5min before token expiry
- Multi-tab synchronization with BroadcastChannel API
- Automatic scheduling on X-Token-Expires-At header reception
- Background token refresh to prevent user interruption

E2E Tests: Video Upload Module (frontend - 62 tests)
- Suite 1: Form tests (27 tests) - 3-step wizard validation
- Suite 2: Service tests (20 tests) - Multipart upload logic
- Suite 3: Integration tests (15 tests) - Complete flow validation

Test infrastructure:
- vitest.config.ts (NEW) - Vitest configuration with jsdom
- src/__tests__/setup.ts (NEW) - Global test setup and mocks
- Updated payments-stripe-elements.test.tsx to use Vitest (vi.mock)

Changes:
- apiClient.ts: Proactive refresh scheduler + BroadcastChannel sync
- payments-stripe-elements.test.tsx: Migrated from Jest to Vitest

Tests created:
- video-upload-form.test.tsx (27 tests) - Component validation
- video-upload-service.test.ts (20 tests) - Service logic validation
- video-upload-integration.test.tsx (15 tests) - Integration flow

Additional documentation:
- Module README.md files for assistant, auth, education, investment, payments, portfolio, trading
- Investment module: Analysis, contracts, gaps, delivery documentation
- Payments module: Stripe integration, wallet specification

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 01:44:40 -06:00
Adrian Flores Cortes
f7a5ddcca8 [OQI-006] feat: Add 3 ML utility panel components
- ModelSelector: Model selection with dropdown/tabs/cards variants
- EnsemblePanel: Ensemble voting configuration with weight sliders
- ICTAnalysisPanel: ICT analysis parameters with collapsible sections

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 11:03:20 -06:00
Adrian Flores Cortes
e9aa29fccd [OQI-006] feat: Add ML confidence and performance tracking components
- ConfidenceMeter: Advanced confidence visualization with model agreement
- SignalPerformanceTracker: Signal history with filters and statistics
- ModelAccuracyDashboard: Individual model metrics and comparison
- BacktestResultsVisualization: Backtest results with trades and monthly returns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:17:16 -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