feat: 미구현 API 4개 대시보드 프론트 연결 (Playbook, Scorecard, Scenarios, Context) #198

Closed
opened 2026-02-22 13:42:51 +09:00 by agentson · 0 comments
Collaborator

개요

백엔드 app.py에 구현된 4개 API가 index.html과 연결되지 않은 상태. 섹션 추가 방식(탭 전환 없이 기존 패널 아래에 순서대로)으로 프론트 연결.

연결 대상 API

API 엔드포인트
Playbook GET /api/playbook/{date}?market=
Scorecard GET /api/scorecard/{date}?market=
Active Scenarios GET /api/scenarios/active?market=&date_str=
Context Layer GET /api/context/{layer}?timeframe=&limit=

수정 파일

  • src/dashboard/static/index.html — CSS + HTML + JS 추가

완료 기준

  • 각 패널 마켓/레이어 셀렉트 변경 시 데이터 로드
  • 데이터 없는 경우 안내 메시지 표시
  • XSS 방지 (textContent 사용)
  • pytest tests/test_dashboard.py -v 통과
## 개요 백엔드 `app.py`에 구현된 4개 API가 `index.html`과 연결되지 않은 상태. 섹션 추가 방식(탭 전환 없이 기존 패널 아래에 순서대로)으로 프론트 연결. ## 연결 대상 API | API | 엔드포인트 | |-----|------------| | Playbook | GET /api/playbook/{date}?market= | | Scorecard | GET /api/scorecard/{date}?market= | | Active Scenarios | GET /api/scenarios/active?market=&date_str= | | Context Layer | GET /api/context/{layer}?timeframe=&limit= | ## 수정 파일 - `src/dashboard/static/index.html` — CSS + HTML + JS 추가 ## 완료 기준 - 각 패널 마켓/레이어 셀렉트 변경 시 데이터 로드 - 데이터 없는 경우 안내 메시지 표시 - XSS 방지 (textContent 사용) - `pytest tests/test_dashboard.py -v` 통과
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#198