Skip to content

Commit

Permalink
Clarify wording for Learn More screen in Uncertain Delivery State (#104)
Browse files Browse the repository at this point in the history
* Clarify wording for Learn More screen when Unable to Reach Pod

* wording change for Learn More screen when Unable to Reach Pod

* add a Keep Waiting primary button, rename destructive button, modify words

* modify delivery uncertainty words to be consistent with OmniKit
  • Loading branch information
marionbarker authored Jan 26, 2024
1 parent 2b857d1 commit 976a7d4
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@ struct DeliveryUncertaintyRecoveryView: View {

var body: some View {
GuidePage(content: {
Text(String(format: LocalizedString("%1$@ has been unable to communicate with the pod on your body since %2$@.\n\nWithout communication with the pod, the app cannot continue to send commands for insulin delivery or display accurate, recent information about your active insulin or the insulin being delivered by the Pod.\n\nMonitor your glucose closely for the next 6 or more hours, as there may or may not be insulin actively working in your body that %3$@ cannot display.", comment: "Format string for main text of delivery uncertainty recovery page. (1: app name)(2: date of command)(3: app name)"), self.model.appName, self.uncertaintyDateLocalizedString, self.model.appName))
Text(String(format: LocalizedString("%1$@ has been unable to communicate with the pod on your body since %2$@.\n\nDo not Discard the Pod without scrolling to read this entire screen.\n\nCommunication was interrupted at a critical time. Information about active insulin / pod temp basal rate is uncertain.\n\nYou can toggle phone Bluetooth off and on or quit and restart the app. (Wait up to 30 seconds for recovery.)\n\nIf you decide to give up because communication cannot be restored, tap the Discard Pod button, follow the steps and start a new pod.\nMonitor your glucose closely for the next 6 hours, as there may or may not be insulin actively working in your body that %3$@ cannot display.", comment: "Format string for main text of delivery uncertainty recovery page. (1: app name)(2: date of command)(3: app name)"), self.model.appName, self.uncertaintyDateLocalizedString, self.model.appName))
.padding([.top, .bottom])
}) {
VStack {
Text(LocalizedString("Attemping to re-establish communication", comment: "Description string above progress indicator while attempting to re-establish communication from an unacknowledged command")).padding(.top)
ProgressIndicatorView(state: .indeterminantProgress)
Button(action: {
self.model.onDismiss?()
}) {
Text(LocalizedString("Keep Waiting", comment: "Button title to return to prior screen"))
.actionButtonStyle(.primary)
.padding([.horizontal])
}
Button(action: {
self.model.podDeactivationChosen()
}) {
Text(LocalizedString("Deactivate Pod", comment: "Button title to deactive pod on uncertain program"))
Text(LocalizedString("Discard Pod", comment: "Button title to discard pod on uncertain program"))
.actionButtonStyle(.destructive)
.padding()
}
Expand Down

0 comments on commit 976a7d4

Please sign in to comment.