Commit Graph

22 Commits

Author SHA1 Message Date
henry 6c92a6d95a UI: make JobHistory Details an anchor to avoid flaky click in Playwright 2026-05-16 15:03:47 +02:00
henry 1ae60635d3 UI: job badges, skeletons, cancel support + API route to cancel jobs\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 14:56:22 +02:00
henry 424a2fc6d5 UI: add job details page and auto-refresh in JobHistory\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 14:52:51 +02:00
henry 2585734f6a UI: add JobHistory component and render on stock detail page\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 14:48:58 +02:00
henry ceb664f56c Fix TS errors: relax bullmq import typing, adjust job loader, and cast chart mock as any 2026-05-16 14:39:00 +02:00
henry 3234a09096 Add job status endpoint, persist lastJobId; replace in-process queue with BullMQ-based queue and worker; link job status in UI 2026-05-16 14:28:34 +02:00
henry d9f9150d68 Add job queue for background analyze, enqueue from API, update MostActiveStocks form POST, add Playwright E2E for Save button 2026-05-16 14:22:13 +02:00
henry eee375ff56 MostActiveStocks: send background flag when triggering analyze\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 14:19:45 +02:00
henry 538b4b62d2 MostActiveStocks: add Save button to upsert ticker and trigger background trading graph; show saving/saved state
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-16 14:16:37 +02:00
henry 3a681fa309 Make Trader parsing of executionPlan more robust (extract maxLossPercent/method fallbacks); ensure TradingViewChart test mock includes timeScale 2026-05-16 14:02:29 +02:00
henry 6ef87ba79f Relax TradingViewChart candlestick series test to accept any series identifier; keep color assertions 2026-05-16 13:56:11 +02:00
henry 5bb41a50dc Fix TradingViewChart test mocks (timeScale) and add UI test for executionPlan rendering in StockDetail
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-16 13:55:06 +02:00
henry b6510de7cb fix: add empty state for no data available 2026-05-16 12:50:34 +02:00
henry 6ff945160d feat: add MostActiveStocks table component with auto-refresh 2026-05-16 12:45:16 +02:00
henry 15e49cb0f9 feat(tests): update Alpaca API tests to include range parameters and improve stock database cleanup
Run Tests / test (push) Failing after 8s
- Modified Alpaca Historical Bars tests to include range parameters in API requests.
- Updated test descriptions for clarity.
- Added cleanup step to delete test ticker after verification in stock database tests.
- Adjusted Vitest configuration to exclude test files from coverage.
2026-05-14 16:46:28 +02:00
henry cc22174b78 Add tests for Alpaca Historical Bars API
- Implemented tests for fetching historical bars for AAPL with different timeframes (1D, 5Min, 1H).
- Verified response structure and data integrity for each timeframe.
- Ensured that the API returns valid data and appropriate status for the requests.
2026-05-14 12:50:14 +02:00
henry 2e22fd5635 feat: add stock detail page with chart, position, and orders
- Add /api/alpaca/orders endpoint for order history
- Add TradingView chart component for candlestick visualization
- Add /analyze/:ticker route with position and orders display
- Make ticker cells in analyze page clickable for navigation
2026-05-14 11:00:35 +02:00
henry 3340fd11ca feat: add stock database with prisma for portfolio persistence
- Initialize Prisma with SQLite and Stock model
- Create database service layer with singleton client
- Add API routes for stock CRUD operations
- Integrate database with analyze page to persist ticker entries
- Add Playwright tests for stock database functionality
2026-05-14 10:23:56 +02:00
henry 0fdd8432a0 fix: add text color to StockViewer input for visibility 2026-05-14 08:17:05 +02:00
henry 503a1c8bde feat: add analyze page with dataflow visualization 2026-05-14 08:12:12 +02:00
henry 4206b93614 Add Playwright configuration and initial tests for landing page
Copilot Setup Steps / copilot-setup-steps (push) Failing after 17s
- Created playwright.config.ts for test configuration
- Added .last-run.json to store test run status
- Implemented landing.test.ts with tests for navbar visibility and navigation
- Removed unused server proxy configuration from vite.config.ts
2026-05-12 22:10:51 +02:00
henry 8429db504a feat: add stock indicators route and Alpaca account info
- New /stocks route with StockViewer component
- New /api/indicators endpoint with SMA, EMA, RSI, MACD
- New /api/alpaca/account endpoint
- AlpacaAccountInfo component on home page
- Indicator calculation utilities
- Tests for utilities and components
- Vite proxy config for /api
2026-05-12 21:07:18 +02:00