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

Đang mở
#49 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
design, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
3
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/GH-Arcade

Tất cả issue của TMHSDigital/GH-Arcade

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.