Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
feat(overlay): friendlier wording for undelivered transcripts
altic-devd5cc5090808b
diff --git a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift b/Sources/Fluid/Services/PasteDeliveryCoordinator.swiftindex 70a2b971..c228d8dc 100644--- a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift+++ b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift@@ -19,14 +19,25 @@ enum TextDeliveryFailure: String, Equatable {case .accessibilityNotTrusted:"Enable Accessibility to insert text"case .noEditableTarget:- "Not in a text field"+ "No text field focused"case .pasteNotLanded:- "Text was not inserted"+ "Oops, the text didn't get inserted"case .emptyText, .clipboardSnapshotFailed, .clipboardWriteFailed,.pasteCommandFailed, .targetUnavailable, .targetRestoreFailed:nil}}++ /// Second line shown under the title in the overlay failure card.+ static func userFacingDetail(forMessage message: String) -> String? {+ switch message {+ case TextDeliveryFailure.noEditableTarget.userFacingMessage,+ TextDeliveryFailure.pasteNotLanded.userFacingMessage:+ "Your transcript is saved. Copy it and paste it into a text field."+ default:+ nil+ }+ }}enum TextDeliveryResult: Equatable {diff --git a/Sources/Fluid/Views/BottomOverlayView.swift b/Sources/Fluid/Views/BottomOverlayView.swiftindex 2264a09e..292f9f2a 100644--- a/Sources/Fluid/Views/BottomOverlayView.swift+++ b/Sources/Fluid/Views/BottomOverlayView.swift@@ -3319,12 +3319,29 @@ struct BottomOverlayView: View {}private var textDeliveryFailureView: some View {- HStack(spacing: 8) {- Text(self.contentState.textDeliveryFailureMessage)- .font(.fluidSystem(size: self.layout.transFontSize, weight: .semibold))- .foregroundStyle(Color.orange.opacity(0.9))- .lineLimit(1)- .truncationMode(.tail)+ let message = self.contentState.textDeliveryFailureMessage+ let detail = TextDeliveryFailure.userFacingDetail(forMessage: message)+ return HStack(alignment: .center, spacing: 8) {+ Image(systemName: "info.circle.fill")+ .font(.fluidSystem(size: self.layout.transFontSize + 2, weight: .semibold))+ .foregroundStyle(Color.accentColor)+ .accessibilityHidden(true)++ VStack(alignment: .leading, spacing: 2) {+ Text(message)+ .font(.fluidSystem(size: self.layout.transFontSize, weight: .semibold))+ .foregroundStyle(.white.opacity(0.95))+ .lineLimit(1)+ .truncationMode(.tail)+ if let detail {+ Text(detail)+ .font(.fluidSystem(size: max(self.layout.transFontSize - 2, 10), weight: .regular))+ .foregroundStyle(.white.opacity(0.7))+ .lineLimit(2)+ .truncationMode(.tail)+ .fixedSize(horizontal: false, vertical: true)+ }+ }Spacer(minLength: 4)