AOSSIE-Org / AOSSIE-Org/DebateAI

[Feature] : Debate Replay & Performance Analytics

Offen
#191 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
84
Forks
198
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
30

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.