Skip to content

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

chore(overlay): shorter failure title and card preview trigger

altic-devff92b4b8fbfc
diff --git a/Sources/Fluid/Services/GlobalHotkeyManager+DebugTrigger.swift b/Sources/Fluid/Services/GlobalHotkeyManager+DebugTrigger.swift
index a5ae0000..2a844e53 100644
--- a/Sources/Fluid/Services/GlobalHotkeyManager+DebugTrigger.swift
+++ b/Sources/Fluid/Services/GlobalHotkeyManager+DebugTrigger.swift
@@ -27,6 +27,17 @@ extension GlobalHotkeyManager {
self?.triggerPasteLastTranscription(isAutorepeat: false)
}
}
+ DistributedNotificationCenter.default().addObserver(
+ forName: Notification.Name("com.FluidApp.debug.showPasteFailure"),
+ object: nil,
+ queue: .main
+ ) { _ in
+ NotificationCenter.default.post(
+ name: .fluidPasteNotLanded,
+ object: nil,
+ userInfo: ["transcript": "Sample transcript for the failure card"]
+ )
+ }
DebugLogger.shared.info("Debug toggle trigger enabled", source: "GlobalHotkeyManager")
}
}
diff --git a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
index c228d8dc..004144d6 100644
--- a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
+++ b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
@@ -21,7 +21,7 @@ enum TextDeliveryFailure: String, Equatable {
case .noEditableTarget:
"No text field focused"
case .pasteNotLanded:
- "Oops, the text didn't get inserted"
+ "Oops, text wasn't inserted"
case .emptyText, .clipboardSnapshotFailed, .clipboardWriteFailed,
.pasteCommandFailed, .targetUnavailable, .targetRestoreFailed:
nil