ux: 기기 응답 없음 배너 단순화 — 기술 용어(mid?/펌웨어 호환) 제거
기존: title "펌웨어 응답 없음" subtitle "연결됐으나 mid? 응답 미수신. 펌웨어 호환 문제 가능 — 측정 안 될 수 있음." 변경: title "기기 응답 없음" subtitle 없음 (timedOut 케이스) 이유: 사내 테스트 피드백 — 일반 사용자에게 mid?/펌웨어 호환 같은 용어는 의미 없고 오히려 불안만 가중. 빨강 배너로 시각 신호는 유지하되 본문은 한 줄로. outdated(주황) 케이스는 그대로 — 펌웨어 버전 안내가 actionable. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+8
-4
@@ -61,11 +61,13 @@ fun FirmwareWarningBanner(bleManager: BleManager, modifier: Modifier = Modifier)
|
||||
if (!outdated && !timedOut) return
|
||||
|
||||
val bgColor = if (outdated) Color(0xFFFF9500) else Color(0xFFD32F2F)
|
||||
val title = if (outdated) "펌웨어 업데이트 필요" else "펌웨어 응답 없음"
|
||||
val subtitle = if (outdated) {
|
||||
val title = if (outdated) "펌웨어 업데이트 필요" else "기기 응답 없음"
|
||||
// timedOut(mid? 미수신) 케이스는 사용자에게 mid?/펌웨어 호환 같은 기술 용어가 무의미.
|
||||
// outdated 일 때만 상세 안내, timedOut 은 타이틀만 노출.
|
||||
val subtitle: String? = if (outdated) {
|
||||
"현재: $fw · 필요: VBTFW${"%04d".format(BleManager.MIN_FIRMWARE_BUILD)} 이상. 측정이 정상 동작하지 않을 수 있습니다."
|
||||
} else {
|
||||
"연결됐으나 mid? 응답 미수신. 펌웨어 호환 문제 가능 — 측정 안 될 수 있음."
|
||||
null
|
||||
}
|
||||
|
||||
Row(
|
||||
@@ -81,7 +83,9 @@ fun FirmwareWarningBanner(bleManager: BleManager, modifier: Modifier = Modifier)
|
||||
Spacer(modifier = Modifier.width(10.dp))
|
||||
Column(modifier = Modifier.weight(1f)) {
|
||||
Text(title, fontSize = 13.sp, fontWeight = FontWeight.Bold, color = Color.White)
|
||||
Text(subtitle, fontSize = 11.sp, color = Color.White.copy(alpha = 0.9f))
|
||||
if (subtitle != null) {
|
||||
Text(subtitle, fontSize = 11.sp, color = Color.White.copy(alpha = 0.9f))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user