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

未關閉 適合新手
#272 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
82/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
javascript
領域
frontend

研究方向

閱讀 site/public/stack.js 和 site/lib/stack-page.mjs,了解 stack 選項的呈現方式,接著檢查 site/public/shortlist.js 中的 shortlist 儲存和 storage 監聽器。執行 npm test,並檢查一次點擊是否會新增所有選項且不重複、回報新增數量,並允許其他分頁重新整理。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
JavaScript
星號
58
分支
15
平均合併
1 天 15 小時
30 天內合併 PR
12

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Free-Game-Dev-Assets 的其他 Issue

查看 TMHSDigital/Free-Game-Dev-Assets 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。