Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ internal fun RoomResponse.toDomain(): ChallengeRoom =
routineProgress = routineProgress?.toDomain(),
)

/** 루틴 진행률. 비율은 %(0~100) 로 온다. roomAverageProgressRate 는 summary.roomSuccessRate 와 같은 값이라 읽지 않는다. */
/** 루틴 진행률. 비율은 %(0~100) 로 온다. roomAverageProgressRate(멤버 진행률 평균)는 화면에 없어 읽지 않는다 — summary.roomSuccessRate 와 다른 값이다. */
@Serializable
data class RoomRoutineProgressResponse(
@SerialName("myProgressRate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ data class ChallengeRoom(
val routineProgress: RoutineProgress? = null,
)

/** 챌린지 전체 기간 기준 내 루틴 진행률. 방 평균은 [RoomSummary.roomSuccessRate] 와 같은 값이라 따로 두지 않는다. */
/** 챌린지 전체 기간 기준 내 루틴 진행률(성공일 ÷ 목표일). 판정일 기준인 [RoomSummary.roomSuccessRate] 와는 다른 지표다. */
data class RoutineProgress(
// 0~1
val myProgressRate: Double,
val mySuccessDays: Int,
// 첫 인증 전에는 아직 계산 전이라 0 이다
// 목표일 계산 전(자동 인증은 첫 sync, 수동 인증은 첫 수동 인증 전)이면 0, 이후로는 1 이상이다
val myTargetDays: Int,
) {
val hasTargetDays: Boolean get() = myTargetDays > 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ internal fun ProgressInfoCard(
},
)
}
// 솔로는 방 평균이 곧 내 값이라 내 진행률만 둔다
// 솔로는 내 진행률만 둔다(#616)
if (detail.mode.isGroup) {
InfoLine(
label = "방 성공률",
Expand Down
Loading