Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Admin review and standings still use a 5x5 card after card-size generalization

未关闭
#11 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
full-stack

调研方向

从 src/routes/bingo/+page.server.ts 这一正确的参考实现开始,然后比较卡片大小和有效池大小如何贯穿受影响的 admin、standings、leaderboard 和 Svelte 文件。完成的标准是:admin review 和 standings 能在更大的卡片上检测到 bingo,admin 网格使用显示的大小,并且 leaderboard 最大值反映该大小。

由索引模型根据 Issue 内容生成。

描述

Problem

The player card calculates cardSize from effectivePoolSize(tiles) and passes it to shuffleTilesForUser and detectBingo. The admin review page and loadStandings do not: both call the functions with their 5x5 defaults. The admin Svelte view also hard-codes GRID_SIZE.

Reproduction

  1. Configure at least 49 effective tiles, so the player card becomes 7x7.
  2. Have a player complete a row on the displayed 7x7 card.
  3. Open that player in /admin/users/:id, or view the leaderboard.

The player sees a bingo, but the admin and standings calculation only evaluates a 5x5 subset and can report no bingo, blocking verification. The leaderboard also advertises a 24-tile maximum even for larger cards.

Suggested fix

Compute the effective pool size and card size once in each consumer (or centralize board-state construction), then pass that size through shuffleTilesForUser, detectBingo, and the admin grid and leaderboard maximum.

Affected code

  • src/routes/admin/users/[id]/+page.server.ts
  • src/routes/admin/users/[id]/+page.svelte
  • src/lib/server/standings.ts
  • src/routes/leaderboard/+page.server.ts
  • src/routes/bingo/+page.server.ts (the correct reference implementation)
主要语言
TypeScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hacksu/bingo 的其他 Issue

查看 hacksu/bingo 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。