Skip to content

Commit

Permalink
revert styling changes in whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGoldschmidt committed Feb 17, 2025
1 parent 50ae6dc commit 33abce6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ENGAGEHF/Dashboard/Messages/MessageRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ struct MessageRow: View {
let message: Message
let labelSize: CGFloat


var body: some View {
AsyncButton(
action: {
Expand All @@ -35,6 +36,7 @@ struct MessageRow: View {
}
}


let message: Message

@ScaledMetric private var spacing: CGFloat = 8
Expand All @@ -43,6 +45,7 @@ struct MessageRow: View {
@Environment(NavigationManager.self) private var navigationManager
@Environment(MessageManager.self) private var messageManager


private var actionImage: some View {
let imageName = switch message.action {
case .playVideo: "play.circle"
Expand Down
3 changes: 3 additions & 0 deletions ENGAGEHF/ENGAGEHFStandard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ actor ENGAGEHFStandard: Standard, EnvironmentAccessible {
}
}


func addMeasurement(samples: [HKSample]) async throws {
guard !samples.isEmpty else {
return
Expand Down Expand Up @@ -72,6 +73,7 @@ actor ENGAGEHFStandard: Standard, EnvironmentAccessible {
}
}


func add(symptomScore: SymptomScore) async throws {
let accountId = try await accountId
do {
Expand All @@ -81,6 +83,7 @@ actor ENGAGEHFStandard: Standard, EnvironmentAccessible {
}
}


func add(response: ModelsR4.QuestionnaireResponse) async throws {
let questionnaireId = response.identifier?.value?.value?.string ?? UUID().uuidString

Expand Down
4 changes: 4 additions & 0 deletions ENGAGEHF/Managers/MessageManager/MessageManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ final class MessageManager: Manager {
@Application(\.logger) @ObservationIgnored private var logger

private(set) var messages: [Message] = []

private var processingStates: [String: ProcessingState] = [:]

nonisolated init() {}


func configure() {
#if DEBUG || TEST
if ProcessInfo.processInfo.isPreviewSimulator || FeatureFlags.setupTestMessages {
Expand Down Expand Up @@ -112,6 +114,7 @@ final class MessageManager: Manager {
}
}


@MainActor
func refreshContent() {
updateSnapshotListener(for: account?.details)
Expand Down Expand Up @@ -212,6 +215,7 @@ final class MessageManager: Manager {
logger.debug("Successfully dismissed message (\(messageId)).")
}


deinit {
notificationTask?.cancel()
activeProcessingTimer?.cancel()
Expand Down
9 changes: 5 additions & 4 deletions ENGAGEHF/Questionnaire/QuestionnaireSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ struct QuestionnaireSheetView: View {
.viewStateAlert(state: $viewState)
}


// MARK: - Initialization
init(questionnaireId: String) {
self.questionnaireId = questionnaireId
Expand All @@ -94,10 +95,10 @@ struct QuestionnaireSheetView: View {
Button("Tap Here") {
questionnaireId = "0"
}
.buttonStyle(.borderedProminent)
.sheet(item: $questionnaireId) { questionnaireId in
QuestionnaireSheetView(questionnaireId: questionnaireId)
}
.buttonStyle(.borderedProminent)
.sheet(item: $questionnaireId) { questionnaireId in
QuestionnaireSheetView(questionnaireId: questionnaireId)
}
}
}

Expand Down

0 comments on commit 33abce6

Please sign in to comment.