休息页精简与圆圈标签统一;完成记录独立落库并隔离暂停备注

This commit is contained in:
XIGE
2026-11-28 14:00:53 +08:00
parent 76449e6258
commit fd489a9f5f
9 changed files with 153 additions and 66 deletions

View File

@@ -40,6 +40,8 @@ data class Task(
val repeatType: Int, // Repeat.NONE / DAY / WEEK / MONTH
val repeatEvery: Int, // 每 N 天 / 周 / 月
val originId: Long = 0L, // 重复系列的根任务 id;0 表示自己就是根
/** 仅在完成记录上有效:这一轮的专注秒数,配合 createdAt/doneAt 显示真实起止 */
val logSeconds: Int = 0,
) {
val repeating: Boolean get() = repeatType != Repeat.NONE && repeatEvery > 0
}
@@ -54,6 +56,8 @@ data class FocusFinish(
val startAt: Long,
val endAt: Long,
val seconds: Int,
/** 本轮里每次暂停产生的备注行,随本次完成记录一起落库 */
val pauseNotes: List<String> = emptyList(),
)
data class DayPoint(