fix: 显示分类预算并阻止同分类重复创建 - #460
Open
gebiwang-rgb wants to merge 10 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明 / What & Why
修复 Cloud 分类预算已经同步,但 Android 预算页面仍为空且可重复创建同分类预算的问题。
BudgetPage不再把“没有总预算”直接视为空;只要存在分类预算就会渲染分类预算卡片。syncId字典序最大记录),避免升级后显示多条历史脏数据或触发单行查询异常。该问题不是自建服务器配置导致:同步计数和 Cloud 写入均正常,异常来自 App 的空状态判断与重复创建入口;Cloud 读接口的既有去重行为进一步造成 Web 端看不到第二条重复记录。
关联 Issue / Related Issue
Closes #459
复现截图和已打码视频见 Issue 评论:
#459 (comment)
自测情况 / Self-tested
flutter analyze无新增告警 / no new warnings(本地未安装 Flutter,未执行完整 analyze)flutter test通过 / targeted tests passtest/widgets/budget_page_test.darttest/widgets/budget_edit_page_test.darttest/repositories/budget_category_dedup_test.dartlib/l10n/*.arb并用 Flutter 3.27.3 运行flutter gen-l10n验证工作流: https://github.com/gebiwang-rgb/BeeCount/actions/runs/32549000131
贡献者许可条款 / Contributor License Terms