Skip to content

FRONT Show stats #87

@codastream

Description

@codastream

Description

user story : As a User, I want to read stats and history in /history

Details

Definition of done

  • create global API /game/:username/stats ?
    should return
{
  "username": {
    "brief": {
       "nb_matches_total": 8,
       "nb_victory_total": 5,
       "nb_loss_total": 3,
       "average_score": 3,
       "average_duration_sec": 42,
     },
     "history": [
     {
       "date": "2026-02-01",
       "opponent_username": "tata",
       "winner": "tata",
       "your_score": 2,
       "opponent_score": 5,
       "type": "one-shot",
     }],
  }
}
  • or possibly more specific :

    • API /game/:username/stats/history
    • API /game/:username/stats/percent
  • front

    • table with last matches and score
    • emphasized figures : average points per match, average match duration
    • bar chart for nb matches played over last days
    • pie chart for % victories / defeats

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions