432127a667211155933d8604fe7d69f49874a337
Guardian 공유 이전 선행 작업 (GUARDIAN-01 §5 Phase A).
이전 버그: 데모 경로 (incrementLevel) 만 NotificationService · HistoryStore 호출.
실측 (BLE) 경로는 bladderLevel = ...copy(currentLevel = level) 로 직접
대입 → 알람 미발생 · 이력 미저장.
수정:
- AppState.updateLevelFromMeasurement(volumeMl, recordHistory) 신규 함수
· bladderLevel 계산·갱신·storage 동기화
· MeasurementRecord 저장 (recordHistory=true 시)
· Urgency 변화 시 sendUrgencyNotification (중복 억제는 기존 로직 재사용)
- AppState.incrementLevel(): 데모 1단계 증가를 신규 함수로 위임
- PiezoMonitoringView 3곳 (L578/L1345/L1550) 직접 대입 → 신규 함수 호출
· auto-scan 갱신: recordHistory=false (폭탄 방지)
· SPOT trimmed 실측: recordHistory=true
· dev-mode tap: recordHistory=true
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Kotlin
97.1%
Python
2.9%