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
refactor(onboarding): remove obsolete callbacks and update Smart mode copy
altic-dev0273cf58047a
diff --git a/Sources/Fluid/Analytics/AnalyticsEvent.swift b/Sources/Fluid/Analytics/AnalyticsEvent.swiftindex 71d7d230..9da87570 100644--- a/Sources/Fluid/Analytics/AnalyticsEvent.swift+++ b/Sources/Fluid/Analytics/AnalyticsEvent.swift@@ -124,7 +124,6 @@ enum AnalyticsOnboardingOutcome: String {case continuedcase skippedcase completed- case openedSettings = "opened_settings"}enum AnalyticsOnboardingTryoutOutcome: String {diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex 60844592..407e3687 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -1696,9 +1696,6 @@ struct ContentView: View {finishOnboardingAtGettingStarted: {self.completeOnboardingIfPossible(selecting: .welcome)},- openAIEnhancementSettingsFromOnboarding: {- self.completeOnboardingForAIProviderSetup()- },openAccessibilitySettings: self.openAccessibilitySettings,restartApp: self.restartApp,menuBarManager: self.menuBarManager,@@ -4870,22 +4867,12 @@ extension ContentView {self.completeOnboarding(selecting: target)}- func completeOnboardingForAIProviderSetup() {- let missingRequirements = self.missingOnboardingCompletionRequirements(allowsAIConfiguration: true)- guard missingRequirements.isEmpty else {- self.presentOnboardingCompletionBlocked(missingRequirements)- return- }-- self.completeOnboarding(selecting: .aiEnhancements)- }-private func completeOnboarding(selecting target: SidebarItem? = nil) {self.settings.onboardingCompleted = trueself.navigateToApp(target ?? .welcome)}- private func missingOnboardingCompletionRequirements(allowsAIConfiguration: Bool = false) -> [String] {+ private func missingOnboardingCompletionRequirements() -> [String] {var missing: [String] = []if !self.onboardingVoiceModelReady {@@ -4897,7 +4884,7 @@ extension ContentView {if !self.onboardingAccessibilityReady {missing.append("Accessibility access")}- if !allowsAIConfiguration, !self.onboardingAIReady {+ if !self.onboardingAIReady {missing.append("AI choice")}if !self.onboardingPlaygroundReady {diff --git a/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift b/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swiftindex f92ef242..9a7bdcc0 100644--- a/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift+++ b/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift@@ -10,8 +10,6 @@ struct OnboardingAIEnhancementStepView: View {let isRunning: Boollet isListening: Boollet isRecordingShortcut: Bool- let shortcutRecordingMessage: String?- let onToggleShortcut: () -> Voidlet onGlowMove: (CGPoint, CGSize) -> Voidlet onGlowExit: () -> Voidlet onBack: () -> Void@@ -176,14 +174,12 @@ struct OnboardingAIEnhancementStepView: View {VStack(spacing: 14) {FluidOnboardingCompactAppIconMark(size: 52).padding(.bottom, 8)- Text(self.isReady ? "Try it right here." : "Meet Fluid Intelligence")+ Text("Meet Fluid Intelligence").font(.fluidSystem(size: 32, weight: .semibold)).foregroundStyle(.white).multilineTextAlignment(.center).lineLimit(2)- Text(self.isReady- ? "Try three short examples with Smart mode."- : "Exclusive to FluidVoice. Optimized for your Mac. It turns your spoken words into clear, formatted text. Entirely on your device.")+ Text("Exclusive to FluidVoice. Optimized for your Mac. It turns your spoken words into clear, formatted text. Entirely on your device.").font(.fluidSystem(size: 15, weight: .medium)).foregroundStyle(.white.opacity(0.64)).multilineTextAlignment(.center)@@ -247,7 +243,7 @@ struct OnboardingAIEnhancementStepView: View {self.action(id: "enable", title: self.enableTitle, tone: .primary, width: 210) {self.setup.enable { model inguard self.canNavigate else {- throw SetupError(message: "Stop dictation, then enable cleanup again.")+ throw SetupError(message: "Stop dictation, then enable Smart mode again.")}guard let registered = PrivateAIModelRegistry.model(id: model.id) else {throw PrivateAIUnavailableError()diff --git a/Sources/Fluid/UI/WelcomeView.swift b/Sources/Fluid/UI/WelcomeView.swiftindex 34db9486..72004739 100644--- a/Sources/Fluid/UI/WelcomeView.swift+++ b/Sources/Fluid/UI/WelcomeView.swift@@ -49,7 +49,6 @@ struct OnboardingFlowView: View {let markAISkipped: () -> Voidlet finishOnboarding: () -> Voidlet finishOnboardingAtGettingStarted: () -> Void- let openAIEnhancementSettingsFromOnboarding: () -> Voidlet openAccessibilitySettings: () -> Voidlet restartApp: () -> Voidlet menuBarManager: MenuBarManager@@ -2240,8 +2239,6 @@ private extension OnboardingFlowView {isRunning: self.asr.isRunning || self.asr.isStarting,isListening: self.asr.isRunning,isRecordingShortcut: self.isRecordingPrimaryShortcut,- shortcutRecordingMessage: self.shortcutRecordingMessage,- onToggleShortcut: self.togglePrimaryShortcutRecording,onGlowMove: self.updateLandingGlow(location:in:),onGlowExit: self.resetLandingGlow,onBack: self.goBack,