AOSSIE-Org / AOSSIE-Org/DebateAI

[Feature] : Debate Replay & Performance Analytics

Aperta
#191 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
84
Fork
198
Merge medio
2g 19h
PR unite (30g)
30

Descrizione

## 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.