Refactor ScoreBox to accept ScoreBoxViewState
还没有人认领这个 Issue。
评估
调研方向
首先,沿着 view model 和组件跟踪 ScoreBox、ScoreBoxViewState、GameData、mapToPeriodScores 和 toPeriodScores。确定预期的是完整的 view-state 重构还是较小的 GameData 更改,然后验证 ScoreBox 接收到所选的 state,并且 period scores 仍能正确渲染。
由索引模型根据 Issue 内容生成。
描述
Ideally mapToPeriodScores should be done in the VM, and the ScoreBox component as a whole should accept ScoreBoxViewState instead of GameData. But if you don't want to refactor all of this right now we don't have to. For now, you could just make toPeriodScores a function on the GameData data class.
Originally posted by @zachseidner1 in https://github.com/cuappdev/score-android/pull/83#discussion_r2370251309
- 主要语言
- Kotlin
- 星标
- 3
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cuappdev/score-android 的其他 Issue
-
past game score card spacing is off可能重新可做 @mqiu90 于 194 天前认领,目前没有进行中的 PR。 未关闭ui bug
cuappdev/score-android#95 · 1 条评论 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 25/100
cuappdev/score-android#94 ·
-
Live score indicator is active even when the time until game is non-zero可能重新可做 @EmilJiang 于 245 天前认领,目前没有进行中的 PR。 未关闭
cuappdev/score-android#92 · 1 条评论 · 已指派 1 人 ·
-
难度 5/5 一周以上 新手友好度 15/100
cuappdev/score-android#87 ·
-
Use type safe navigation for scoring summary screen可能重新可做 @amjiao 于 373 天前认领,目前没有进行中的 PR。 未关闭infra
cuappdev/score-android#81 · 已指派 2 人 ·
查看 cuappdev/score-android 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
block/artifact-swap#176 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
librepods-org/librepods#802 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
mrmans0n/asyncresult#102 ·
维护者通常 2 天内回复
-
follow-up
难度 2/5 1-3 小时 新手友好度 88/100
yschimke/homeassistant-remotecompose#680 ·
维护者通常 1 天内回复
-
:wave: team-triage a:chore in:isolated-projects in:kotlin-dsl
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复