Stack pages: add every pick to the shortlist in one click

Đang mở Phù hợp với người mới
#272 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Đọc site/public/stack.js và site/lib/stack-page.mjs để xem các lựa chọn trong stack được hiển thị như thế nào, sau đó kiểm tra phần lưu trữ danh sách rút gọn và listener storage trong site/public/shortlist.js. Chạy npm test và kiểm tra xem một lần nhấp có thêm mọi lựa chọn mà không bị trùng lặp, báo số lượng đã thêm và cho phép các tab khác cập nhật hay không.

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

Mô tả

enhancement good first issue priority: medium

Summary

A stack is a curated starter kit, but its page only offers copy-credit buttons. Getting the kit into the shortlist, where the CREDITS export lives, means opening each entry one at a time.

Where

  • site/public/stack.js:1-26 (copy buttons only)
  • site/lib/stack-page.mjs (no shortlist hook)
  • site/public/shortlist.js:12-21 (storage), :171 (storage listener)

Impact

Jam and solo developers following a stack get the whole kit and its attribution file in one step.

Suggested fix

Add an "Add all to shortlist" button that merges the stack's entry ids into the shortlist storage key (dedupe), shows a status line, and relies on the existing storage listener to refresh other tabs.

Acceptance criteria

  • One click adds every stack pick to the shortlist without duplicates
  • Status message confirms how many were added

Getting started

  • Relevant files: site/public/stack.js, site/lib/stack-page.mjs
  • Run the tests: npm test; the full local gate is npm run check (Node 22+, no install step)
  • Related docs: CONTRIBUTING.md, site/README.md

Related: #110


Filed by repo-audit/full-audit at 4adb944. Severity: medium. Effort: S. audit-key: enhancement|site/public/stack.js|addStackToShortlist

Ngôn ngữ chính
JavaScript
Star
58
Fork
15
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
12

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

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/Free-Game-Dev-Assets

Tất cả issue của TMHSDigital/Free-Game-Dev-Assets

Issue tương tự

Thêm issue về JavaScript

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.