"Your stats" page: playtime and spending by genre

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
css, python, sql

Direzione di ricerca

The issue names tables but no files, so start from the schema: find the migrations/models defining library (price_paid), plays, have and genre, then trace how an existing page is routed and rendered to see where a stats page plugs in. Write the aggregation as a SQL view or single query over those joins, then add the template and the SVG/CSS chart. Done means the page shows totals, per-genre hours, most-played and most recent purchase, with no Python loops over rows.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend enhancement frontend help wanted

Add a page showing each user's stats, calculated in SQL from their real data:

  • Total games owned and total spent (library.price_paid)
  • Hours played per genre (plays joined through have/genre)
  • Most-played game, most recent purchase
  • A simple chart (plain SVG/CSS or a small library)

Put the aggregation in a database view or query, not in Python loops.

Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.