Hub: recently played, sorting and per-game trophy progress on cards

Offen
#49 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
design, frontend

Rechercherichtung

Start with src/hub/main.ts:53-85 and shared/achievements.ts:78-82,135-141 to see how cards are rendered and play and trophy data are stored; check src/hub/hub.css for the card styles. Run npm install and npm run dev to inspect the hub, then use npm run typecheck and npm run build to check your changes. Done when the most recently played game is easy to reach and each card shows its trophy progress.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement severity: medium

Summary

Hub cards are always in registry order and show only the best score. Play counts and trophy unlocks are already stored but only visible inside the Trophies dialog, and no last-played time is recorded.

Where

  • src/hub/main.ts:53-85
  • shared/achievements.ts:78-82, shared/achievements.ts:135-141

Proposal

  • Store lastPlayed in recordPlay
  • Add a per-card trophy chip such as "2/4"
  • Add a sort control or a "Continue playing" row (recent, most played, A to Z)
  • Re-render on pageshow so a hub restored from the back/forward cache is current
  • Optionally add a text filter once the grid passes about 12 games

Acceptance criteria

  • The most recently played game is easy to reach from the hub
  • Each card shows trophy progress

Getting started

  • Relevant files: src/hub/main.ts, shared/achievements.ts, src/hub/hub.css
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: medium. Effort: M. audit-key: enhancement|src/hub/main.ts|card

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/GH-Arcade

Alle Issues in TMHSDigital/GH-Arcade

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

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