作为 TagLauncher 崩溃 / 新问题代码审核员 A,只读审查 8.3.0 新问题的最小修复方案,不修改源码。
问题:免费用户编辑 / 维护 4 个标签后,标签页顶部“免费用户可以使用6个自定义标签(容器):已使用 0 / 6”没有实时变化。
关注文件:
/Users/ar/Projects/Taglauncher/src/Apptag/TagEditorView.swift/Users/ar/Projects/Taglauncher/src/Apptag/ContentView.swift/Users/ar/Projects/Taglauncher/src/Apptag/PreferencesView.swift/Users/ar/Projects/Taglauncher/src/Apptag/ProEntitlement.swift/Users/ar/Projects/Taglauncher/src/Scripts/pro_custom_container_quota_qa.shbash src/Scripts/pro_custom_container_quota_qa.sh,结果 PASS。customContainerQuotaStatus 或等价 refresh token。customContainerQuotaAccessory 在 ContentView 和 PreferencesView 的 computed view 中直接调用 ProEntitlementPolicy.customContainerQuotaStatus(),SwiftUI 不会自动订阅数据库文件或 TagDef.isCustomMaintained 派生计数变化。/Users/ar/Projects/Taglauncher/src/Apptag/ContentView.swift/Users/ar/Projects/Taglauncher/src/Apptag/PreferencesView.swift/Users/ar/Projects/Taglauncher/src/Apptag/TagEditorView.swift/Users/ar/Projects/Taglauncher/src/Apptag/ProEntitlement.swift/Users/ar/Projects/Taglauncher/src/Apptag/DataLayer.swift/Users/ar/Projects/Taglauncher/src/Scripts/pro_custom_container_quota_qa.shProEntitlementPolicy.customContainerQuotaStatus() 读取 TagDatabase.customMaintainedContainerCount();UI accessory 直接从 policy 读取,没有独立 SwiftUI 状态。bash src/Scripts/pro_custom_container_quota_qa.sh PASS,但该脚本当前只验证门禁和文案 wiring,未验证 accessory 有可变状态驱动。@State private var customContainerQuotaStatus,还是使用 refresh token 触发重算。审查建议优先状态化 status,避免 body 反复读磁盘。ContentView / PreferencesView 引入父级 quota 状态。TagEditorView.onRefresh 或新增专用回调应同步刷新 quota 状态,再按需要触发 refreshApps() / scanApps()。ContentView.handleTagMutationResult(.saved) 也应刷新 quota 状态,覆盖 AppGrid overlay 的 app membership mutation。pro_custom_container_quota_qa.sh 增加静态断言:customContainerQuotaAccessory 不应直接作为唯一数据源调用 policy;父视图必须有 quota 状态 / refresh helper;TagEditorView 回调必须在两处父视图刷新 quota;membership mutation 成功路径也必须刷新 quota。用途:复查 Pro 自定义容器额度门禁、文案和脚本 wiring。
前置条件:在 /Users/ar/Projects/Taglauncher 主工作区执行;不要求构建 App。
设置命令:
cd /Users/ar/Projects/Taglauncher
bash src/Scripts/pro_custom_container_quota_qa.sh
验证步骤:命令输出 PASS Pro custom container quota QA... 且退出码为 0。
清理 / 恢复命令:无,脚本为只读静态检查。
搜索关键词:pro_custom_container_quota_qa.sh、customContainerQuotaAccessory、customContainerQuotaStatus、已使用 0 / 6