AOSSIE-Org / AOSSIE-Org/DebateAI

[Feature] : Debate Replay & Performance Analytics

Đang mở
#191 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
84
Fork
198
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
30

Mô tả

## Problem
After completing a debate, users currently have no way to review how they performed. They cannot replay the debate, analyze which arguments were strong or weak, or track their improvement over time. This makes debates feel like one-time interactions instead of a learning experience.

---

## Proposed Solution
Add a **Debate Replay & Performance Analytics** feature that allows users to revisit past debates and get simple, useful feedback on their performance.

---

## Core Features (MVP)

### 1. Debate Replay
Users should be able to open a past debate and:
- View the full transcript with timestamps
- See which speaker is talking (user or opponent)
- Jump to any part of the debate using timestamps

### 2. Performance Metrics
Show basic statistics for each phase (Opening, Cross-Exam, Closing):
- Word count
- Score (from existing AI judge or scoring logic)

Overall metrics:
- Total words spoken
- Best performing phase

### 3. Replay Page
A new route:
/debates/:debateId/replay
This page should show:
- Transcript on one side
- Performance metrics on the other

---

## Backend Changes
- Add a new collection: `debate_replays`
- Store:
- debateId
- transcript with timestamps
- per-phase stats
- overall stats

### New API Endpoints
GET /api/debates/:debateId/replay
GET /api/users/replay-history

---

## Frontend Changes
Create:
- `DebateReplay.tsx`
- `ReplayPlayer.tsx`
- `PerformanceMetrics.tsx`

Update:
- Add a **Replay** button on saved debates or profile page

---

## Why This Feature Is Important
- Users can learn from their previous debates
- Encourages repeated usage and improvement
- Makes DebateAI feel more like a serious skill-building platform

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.