Commit Graph

19 Commits

Author SHA1 Message Date
henry 0ee89cf052 feat(settings): add settings route and API updates\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 20:19:35 +02:00
henry 9b63d981b0 fix(settings): store JSON as string in DB and parse on read\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 20:18:32 +02:00
henry dba81832c1 feat(settings): add SettingsService with cache and emitter\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 20:11:02 +02:00
henry 9b8afa2605 feat(settings): add admin settings API routes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-16 20:10:46 +02:00
henry 74ebf0b6e3 Feat(api): support fetching bars from paper or live Alpaca (default paper) via alpacaClient.fetchBars\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 18:08:15 +02:00
henry b2e0568bfd Fix(types): LLM types, execution LLM call safety, analyze defaults; skip tests in tsconfig for dev typecheck\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 17:57:53 +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 669b792045 Jobs API: expose getJob and listRecentJobs; use unified queue module for job status and history; UI can query /api/jobs?ticker=...\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> 2026-05-16 14:47:23 +02:00
henry 9771f48028 Queue: unify exports; support BullMQ when REDIS_URL set, otherwise in-process fallback 2026-05-16 14:43:52 +02:00
henry 9167bd8912 Queue: support REDIS_URL BullMQ mode; fallback to in-process queue for dev/tests 2026-05-16 14:42:33 +02:00
henry 5f5a48067c Remove QueueScheduler usage (avoid SSR runtime error) 2026-05-16 14:41:06 +02:00
henry 1b31a4a131 Typings: annotate job param as any in queue worker 2026-05-16 14:39:33 +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 31503624f6 Fix bullmq import for ESM SSR compatibility (use default import) 2026-05-16 14:36:45 +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 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 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 5a99273c9d feat: add OpenRouter API client with free model support 2026-05-14 07:48:51 +02:00