diff --git a/challenge/data/src/main/kotlin/com/ruleup/challenge/data/dto/RoomResponse.kt b/challenge/data/src/main/kotlin/com/ruleup/challenge/data/dto/RoomResponse.kt index 0105a112..482b1ad8 100644 --- a/challenge/data/src/main/kotlin/com/ruleup/challenge/data/dto/RoomResponse.kt +++ b/challenge/data/src/main/kotlin/com/ruleup/challenge/data/dto/RoomResponse.kt @@ -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") diff --git a/challenge/domain/src/main/kotlin/com/ruleup/challenge/domain/entity/Room.kt b/challenge/domain/src/main/kotlin/com/ruleup/challenge/domain/entity/Room.kt index 2bd23088..38a99bd5 100644 --- a/challenge/domain/src/main/kotlin/com/ruleup/challenge/domain/entity/Room.kt +++ b/challenge/domain/src/main/kotlin/com/ruleup/challenge/domain/entity/Room.kt @@ -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 diff --git a/challenge/presentation/src/main/kotlin/com/ruleup/challenge/presentation/detail/component/RoomInfoTab.kt b/challenge/presentation/src/main/kotlin/com/ruleup/challenge/presentation/detail/component/RoomInfoTab.kt index 769c3847..bc8a1530 100644 --- a/challenge/presentation/src/main/kotlin/com/ruleup/challenge/presentation/detail/component/RoomInfoTab.kt +++ b/challenge/presentation/src/main/kotlin/com/ruleup/challenge/presentation/detail/component/RoomInfoTab.kt @@ -478,7 +478,7 @@ internal fun ProgressInfoCard( }, ) } - // 솔로는 방 평균이 곧 내 값이라 내 진행률만 둔다 + // 솔로는 내 진행률만 둔다(#616) if (detail.mode.isGroup) { InfoLine( label = "방 성공률",