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 摘要。