feat(watchos): mode Test (FC simulée) — valide le flux sans HealthKit
Bouton "Test (FC simulée)" qui envoie des samples synthétiques (FC ~110-150, calories, distance, durée) via WCSession toutes les 2s, sans démarrer de séance HealthKit. Permet de valider watch -> iPhone -> /live indépendamment de l'autorisation Santé (bloquée par un sous-système Santé coincé sur la Watch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -45,10 +45,18 @@ struct ActivityPickerView: View {
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
}
|
||||
Button {
|
||||
workout.startSimulation()
|
||||
} label: {
|
||||
Label("Test (FC simulée)", systemImage: "waveform.path.ecg")
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
}
|
||||
.tint(.gray)
|
||||
|
||||
if let message = workout.statusMessage {
|
||||
Text(message)
|
||||
.font(.footnote)
|
||||
.foregroundStyle(.red)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
|
||||
Reference in New Issue
Block a user