docs: 로또 페이지 3탭 구조 + 브리핑 API 반영

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-15 08:36:08 +09:00
parent 064c983ca1
commit 188a714372

View File

@@ -222,7 +222,32 @@ handleGenerate()
## Lotto 고도화 (`/lotto`) ## Lotto 고도화 (`/lotto`)
`src/pages/lotto/Functions.jsx`에 4개 신규 섹션 추가: `src/pages/lotto/Functions.jsx`는 3탭 구조 (`브리핑 / 분석·통계 / 구매·성과`)로 리팩토링되었습니다.
| 탭 | 파일 | 설명 |
|----|------|------|
| 이번 주 브리핑 | `tabs/BriefingTab.jsx` | AI 큐레이터 브리핑 표시 (`components/briefing/` 하위 컴포넌트) |
| 분석·통계 | `tabs/AnalysisTab.jsx` | 시뮬레이션 추천·통계·ReportPanel·수동 추천 |
| 구매·성과 | `tabs/PurchaseTab.jsx` | 구매 내역 CRUD + 성과 통계 |
### 브리핑 전용 컴포넌트 (`components/briefing/`)
| 컴포넌트 | 설명 |
|----------|------|
| `BriefingTab.jsx` | 탭 루트, 브리핑 로드 + 트리거 |
| `BriefingHeader.jsx` | 회차·생성일시 헤더 |
| `BriefingSummary.jsx` | 내러티브 요약 표시 |
| `PickSetCard.jsx` | 번호 세트 1장 카드 |
| `BriefingEmpty.jsx` | 브리핑 없을 때 빈 상태 |
| `CuratorUsageFooter.jsx` | 토큰·비용 집계 푸터 |
### 신규 api.js 헬퍼
- `getLatestBriefing()``GET /api/lotto/briefing/latest`
- `getCuratorUsage(days)``GET /api/lotto/curator/usage?days=N`
- `triggerLottoCurate()``POST /api/agent-office/command` (lotto_agent curate 명령)
### 기존 섹션 (AnalysisTab 내)
| 섹션 | API | 설명 | | 섹션 | API | 설명 |
|------|-----|------| |------|-----|------|