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

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.swift
index 71d7d230..9da87570 100644
--- a/Sources/Fluid/Analytics/AnalyticsEvent.swift
+++ b/Sources/Fluid/Analytics/AnalyticsEvent.swift
@@ -124,7 +124,6 @@ enum AnalyticsOnboardingOutcome: String {
case continued
case skipped
case completed
- case openedSettings = "opened_settings"
}
enum AnalyticsOnboardingTryoutOutcome: String {
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 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 = true
self.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.swift
index f92ef242..9a7bdcc0 100644
--- a/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift
+++ b/Sources/Fluid/UI/OnboardingAIEnhancementStepView.swift
@@ -10,8 +10,6 @@ struct OnboardingAIEnhancementStepView: View {
let isRunning: Bool
let isListening: Bool
let isRecordingShortcut: Bool
- let shortcutRecordingMessage: String?
- let onToggleShortcut: () -> Void
let onGlowMove: (CGPoint, CGSize) -> Void
let onGlowExit: () -> Void
let 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 in
guard 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.swift
index 34db9486..72004739 100644
--- a/Sources/Fluid/UI/WelcomeView.swift
+++ b/Sources/Fluid/UI/WelcomeView.swift
@@ -49,7 +49,6 @@ struct OnboardingFlowView: View {
let markAISkipped: () -> Void
let finishOnboarding: () -> Void
let finishOnboardingAtGettingStarted: () -> Void
- let openAIEnhancementSettingsFromOnboarding: () -> Void
let openAccessibilitySettings: () -> Void
let restartApp: () -> Void
let 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,