trading/dashboard
Viktor Barzin 1aeb6e8587
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was canceled
fix(dashboard): Strategy page crashed on undefined fields
User reported UI error. Root cause: API GET /api/meet-kevin/strategy/
performance returns {trade_count, closed_trade_count, total_pnl_usd,
win_rate_pct, wins, losses} but the dashboard's StrategyPerformance
type expected {total_return_pct, sharpe_ratio, max_drawdown_pct,
open_positions, alpha_vs_spy_pct, ...}. So performance.open_positions
was undefined and .toString() crashed the whole page render.

Fix: update StrategyPerformance to match the actual API shape and
rewrite the 6-card headline grid to show the metrics the API
actually computes (trade count, closed count, total P&L, win rate,
wins, losses). Defensive ?? 0 fallbacks everywhere so future
schema drift doesn't crash again.

Long-term: extend the API to compute sharpe/max-dd/alpha vs SPY etc.
once there are real Kevin trades to compute them on (currently 0
trades — all 13 emitted signals fired outside market hours and were
correctly rejected by RiskManager).
2026-05-27 18:00:48 +00:00
..
public feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
src fix(dashboard): Strategy page crashed on undefined fields 2026-05-27 18:00:48 +00:00
.gitignore feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
eslint.config.js feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
index.html feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
package-lock.json feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
package.json feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
tsconfig.app.json revert: keep original dashboard tsconfig (Task 10 didn't need to change it) 2026-05-21 19:57:30 +00:00
tsconfig.json feat: dashboard setup with passkey authentication 2026-02-22 15:54:32 +00:00
tsconfig.node.json revert: keep original dashboard tsconfig (Task 10 didn't need to change it) 2026-05-21 19:57:30 +00:00
vite.config.ts fix: resolve all remaining TODOs, add dev mode auth bypass 2026-02-25 22:02:25 +00:00