Skip to content

The Pool Problem v1.1.0 — Proactive Auto-Clean & Cleanup History

Choose a tag to compare

@wxy wxy released this 16 Aug 10:08
5d83f8a

What's New

  • Proactive auto-clean driven by disk headroom and per-item growth rate.
  • Cleanup history grouped by batch, with per-item undo when still in Trash.
  • Revised pool gauge with mirrored E capacity blocks and waterline marker.

Fixes & Engineering

  • Fixed weekly growth and fill-prediction calculations to use real elapsed time.
  • Added minimum auto-clean size so tiny KB/MB cleanups no longer run.
  • Guarded login-item status checks to avoid debug-build service errors.

Deployment Notes

  • No CloudKit or data-schema changes. No additional deployment steps required.

Verification

  • Tests: swift test — 59 passed
  • Build: xcodebuild -project PoolProblem/PoolProblem.xcodeproj -scheme PoolProblem -configuration Debug -derivedDataPath .build/xcode-derived build — succeeded

Links

  • Release branch: release/v1.1.0

更新内容

  • 新增基于磁盘余量和单项增速的主动清理。
  • 清理历史按批次分组,并支持在回收站仍存在时逐项撤销。
  • 重新设计水池标尺,使用镜像 E 容量块和水线标记。

修复与工程优化

  • 修复每周增长和满盘预测未按真实时间计算的问题。
  • 为自动清理增加最小清理量,避免 KB/MB 级小任务。
  • 保护登录项状态查询,避免 Debug 构建下触发服务错误。

部署说明

  • 无 CloudKit 或数据模型变更,无需额外部署步骤。

验证

  • 测试:swift test — 59 个通过
  • 构建:xcodebuild App 目标构建成功