feat: improve dashboard UI with P&L chart and decisions log (#159) #160

Merged
jihoson merged 1 commits from feature/issue-159-dashboard-ui-improvement into main 2026-02-20 02:20:12 +09:00
Collaborator

요약

  • /api/pnl/history 엔드포인트 추가 (일별 P&L 집계, days/market 필터)
  • index.html 풀 SPA로 재작성:
    • 4개 요약 카드 (오늘 거래수, P&L, 승률, 누적 거래)
    • Chart.js 4.4.0 (CDN) 바 차트로 P&L 추이 시각화 (7/30/90일 선택)
    • 결정 로그 테이블 — 시장 탭 필터, BUY/SELL/HOLD 배지, 신뢰도 진행 바
    • 30초 자동 새로고침
  • test_dashboard.py에 테스트 2개 추가

플랜 대비 구현 일치 여부

  • /api/pnl/history 엔드포인트 (days, market 파라미터) — 플랜과 동일
  • index.html 재작성 — 플랜 UI 구성과 동일
  • 테스트 2개 추가 — 플랜과 동일
  • CDN Chart.js 4.4.0 사용 — 플랜과 동일
  • 색상 팔레트 유지 — 플랜과 동일

테스트 결과

16 passed in 0.58s
648 passed total, coverage 77%

Closes #159

## 요약 - `/api/pnl/history` 엔드포인트 추가 (일별 P&L 집계, days/market 필터) - `index.html` 풀 SPA로 재작성: - 4개 요약 카드 (오늘 거래수, P&L, 승률, 누적 거래) - Chart.js 4.4.0 (CDN) 바 차트로 P&L 추이 시각화 (7/30/90일 선택) - 결정 로그 테이블 — 시장 탭 필터, BUY/SELL/HOLD 배지, 신뢰도 진행 바 - 30초 자동 새로고침 - `test_dashboard.py`에 테스트 2개 추가 ## 플랜 대비 구현 일치 여부 - [x] /api/pnl/history 엔드포인트 (days, market 파라미터) — 플랜과 동일 - [x] index.html 재작성 — 플랜 UI 구성과 동일 - [x] 테스트 2개 추가 — 플랜과 동일 - [x] CDN Chart.js 4.4.0 사용 — 플랜과 동일 - [x] 색상 팔레트 유지 — 플랜과 동일 ## 테스트 결과 ``` 16 passed in 0.58s 648 passed total, coverage 77% ``` Closes #159
agentson added 1 commit 2026-02-20 02:15:49 +09:00
feat: improve dashboard UI with P&L chart and decisions log (#159)
Some checks failed
CI / test (pull_request) Has been cancelled
fbcd016e1a
- Add /api/pnl/history endpoint to app.py for daily P&L history charting
- Rewrite index.html as full SPA with Chart.js bar chart, summary cards,
  and decisions log table with market filter tabs and 30s auto-refresh
- Add test_pnl_history_all_markets and test_pnl_history_market_filter tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jihoson merged commit b50977aa76 into main 2026-02-20 02:20:12 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#160