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

UX / UI Changes and bug fixes etc

altic-deva628d100db37
diff --git a/Info.plist b/Info.plist
index 464175e2..42bdc392 100644
--- a/Info.plist
+++ b/Info.plist
@@ -11,7 +11,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleShortVersionString</key>
- <string>1.3.5</string>
+ <string>1.4.1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSApplicationCategoryType</key>
diff --git a/Sources/Fluid/AppDelegate.swift b/Sources/Fluid/AppDelegate.swift
index e1e2b5b5..b2337c74 100644
--- a/Sources/Fluid/AppDelegate.swift
+++ b/Sources/Fluid/AppDelegate.swift
@@ -46,7 +46,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
print("🔍 DEBUG: Manual update check started - Current version: \(currentVersion)")
print("🔍 DEBUG: Repository: altic-dev/Fluid-oss")
- Task {
+ Task { @MainActor in
do {
// Use our tolerant updater to handle v-prefixed tags and 2-part versions
try await SimpleUpdater.shared.checkAndUpdate(owner: "altic-dev", repo: "Fluid-oss")
@@ -132,7 +132,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
}
+ @MainActor
private func showUpdateAlert(title: String, message: String) {
+ print("🔔 Showing alert: \(title)")
let alert = NSAlert()
alert.messageText = title
alert.informativeText = message
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 337f1536..8dd4f5ae 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -124,6 +124,8 @@ struct ContentView: View {
@State private var showRestartPrompt: Bool = false
@State private var didOpenAccessibilityPane: Bool = false
private let accessibilityRestartFlagKey = "FluidVoice_AccessibilityRestartPending"
+ private let hasAutoRestartedForAccessibilityKey = "FluidVoice_HasAutoRestartedForAccessibility"
+ @State private var accessibilityPollingTask: Task<Void, Never>?
// MARK: - Voice Recognition Model Management
// Models scoped by provider (name -> [models])
@@ -190,12 +192,20 @@ struct ContentView: View {
// Ensure no restart UI shows if we already have trust
if accessibilityEnabled { showRestartPrompt = false }
+ // Reset auto-restart flag if permission was revoked (allows re-triggering if user re-grants)
+ if !accessibilityEnabled {
+ UserDefaults.standard.set(false, forKey: hasAutoRestartedForAccessibilityKey)
+ }
+
// Initialize menu bar after app is ready (prevents window server crash)
menuBarManager.initializeMenuBar()
// Configure menu bar manager with ASR service
menuBarManager.configure(asrService: asr)
+ // Start polling for accessibility permission if not granted
+ startAccessibilityPolling()
+
// Initialize hotkey manager with improved timing and validation
initializeHotkeyManagerIfNeeded()
@@ -446,6 +456,10 @@ struct ContentView: View {
.onDisappear {
asr.stopWithoutTranscription()
// Note: Overlay lifecycle is now managed by MenuBarManager
+
+ // Stop accessibility polling
+ accessibilityPollingTask?.cancel()
+ accessibilityPollingTask = nil
}
.onChange(of: hotkeyShortcut) { newValue in
DebugLogger.shared.debug("Hotkey shortcut changed to \(newValue.displayString)", source: "ContentView")
@@ -709,7 +723,7 @@ struct ContentView: View {
// MARK: - AI Settings Tab
private var aiSettingsView: some View {
ScrollView(.vertical, showsIndicators: false) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 14) {
// Voice to Text Model Card
ThemedCard(hoverEffect: false) {
VStack(alignment: .leading, spacing: 10) {
@@ -830,12 +844,12 @@ struct ContentView: View {
.foregroundStyle(.secondary)
}
}
- .padding(20)
+ .padding(14)
}
aiConfigurationCard
}
- .padding(16)
+ .padding(14)
}
.onAppear {
// Ensure the toggle reflects persisted value when navigating between tabs
@@ -844,10 +858,10 @@ struct ContentView: View {
}
private var aiConfigurationCard: some View {
- VStack(spacing: 16) {
+ VStack(spacing: 14) {
// API Configuration Section
ThemedCard(style: .prominent, hoverEffect: false) {
- VStack(alignment: .leading, spacing: 14) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "key.fill")
.font(.title3)
@@ -868,7 +882,7 @@ struct ContentView: View {
}
Divider()
- .padding(.vertical, 4)
+ .padding(.vertical, 3)
// AI Enhancement Toggle - Aligned with Grid below
HStack(alignment: .top, spacing: 16) {
@@ -920,7 +934,7 @@ struct ContentView: View {
// Help Section
if showHelp {
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
HStack {
Image(systemName: "lightbulb.fill")
.foregroundStyle(.yellow)
@@ -991,7 +1005,7 @@ struct ContentView: View {
}
}
}
- .padding(16)
+ .padding(14)
.background(theme.palette.accent.opacity(0.08))
.cornerRadius(12)
.overlay(
@@ -1003,9 +1017,9 @@ struct ContentView: View {
}
Divider()
- .padding(.vertical, 4)
+ .padding(.vertical, 3)
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
// Compatibility note
HStack(spacing: 6) {
Image(systemName: "checkmark.seal.fill")
@@ -1255,40 +1269,22 @@ struct ContentView: View {
.buttonStyle(CompactButtonStyle())
.buttonHoverEffect()
}
-
- if showingAddModel {
+ }
+
+ // Add model input (appears below on new line when in add mode)
+ if showingAddModel {
+ HStack(spacing: 8) {
TextField("Enter model name", text: $newModelName)
.textFieldStyle(.roundedBorder)
- .frame(width: 200)
-
- Button("Add") {
- if !newModelName.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).isEmpty {
- let modelName = newModelName.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
- let key = providerKey(for: selectedProviderID)
- var list = availableModelsByProvider[key] ?? availableModels
- if !list.contains(modelName) { list.append(modelName) }
- availableModelsByProvider[key] = list
- SettingsStore.shared.availableModelsByProvider = availableModelsByProvider
-
- if let providerIndex = savedProviders.firstIndex(where: { $0.id == selectedProviderID }) {
- let updatedProvider = SettingsStore.SavedProvider(
- id: savedProviders[providerIndex].id,
- name: savedProviders[providerIndex].name,
- baseURL: savedProviders[providerIndex].baseURL,
- apiKey: savedProviders[providerIndex].apiKey,
- models: list
- )
- savedProviders[providerIndex] = updatedProvider
- saveSavedProviders()
+ .onSubmit {
+ // Submit on Enter key
+ if !newModelName.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).isEmpty {
+ addNewModel()
}
-
- availableModels = list
- selectedModel = modelName
- selectedModelByProvider[key] = modelName
- SettingsStore.shared.selectedModelByProvider = selectedModelByProvider
- showingAddModel = false
- newModelName = ""
}
+
+ Button("Add") {
+ addNewModel()
}
.buttonStyle(CompactButtonStyle())
.buttonHoverEffect()
@@ -1301,6 +1297,7 @@ struct ContentView: View {
.buttonStyle(CompactButtonStyle())
.buttonHoverEffect()
}
+ .padding(.leading, 122) // Align with model picker
}
@@ -1331,7 +1328,7 @@ struct ContentView: View {
// API Key Editor Sheet
Color.clear.frame(height: 0)
.sheet(isPresented: $showAPIKeyEditor) {
- VStack(spacing: 16) {
+ VStack(spacing: 14) {
Text("Enter \(currentProvider.capitalized) API Key")
.font(.headline)
@@ -1514,7 +1511,7 @@ struct ContentView: View {
.padding(.horizontal, 4)
}
- .padding(16)
+ .padding(14)
}
.modifier(CardAppearAnimation(delay: 0.1, appear: $appear))
@@ -1621,7 +1618,7 @@ struct ContentView: View {
.transition(.opacity)
}
}
- .padding(16)
+ .padding(14)
}
.modifier(CardAppearAnimation(delay: 0.2, appear: $appear))
}
@@ -1635,7 +1632,7 @@ struct ContentView: View {
// MARK: - Stats View (Coming Soon)
private var statsView: some View {
- VStack(spacing: 20) {
+ VStack(spacing: 14) {
Spacer()
Image(systemName: "chart.bar.fill")
@@ -1690,7 +1687,7 @@ struct ContentView: View {
// Friendly Message & GitHub CTA
ThemedCard(style: .prominent, hoverEffect: false) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack(spacing: 12) {
Image(systemName: "heart.fill")
.font(.system(size: 28))
@@ -2270,6 +2267,16 @@ struct ContentView: View {
recordingAppInfo = info
DebugLogger.shared.debug("Captured recording app context: app=\(info.name), bundleId=\(info.bundleId), title=\(info.windowTitle)", source: "ContentView")
asr.start()
+
+ // Pre-load model in background while recording (avoids 10s freeze on stop)
+ Task {
+ do {
+ try await asr.ensureAsrReady()
+ DebugLogger.shared.debug("Model pre-loaded during recording", source: "ContentView")
+ } catch {
+ DebugLogger.shared.error("Failed to pre-load model: \(error)", source: "ContentView")
+ }
+ }
}
// MARK: - ASR Model Management
@@ -2304,6 +2311,52 @@ struct ContentView: View {
DebugLogger.shared.debug("Skipping auto-preload - models downloaded manually via UI", source: "ContentView")
}
+ // MARK: - Model Management
+ private func addNewModel() {
+ guard !newModelName.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).isEmpty else { return }
+
+ let modelName = newModelName.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
+ let key = providerKey(for: selectedProviderID)
+
+ // Get current list or start fresh if empty
+ var list = availableModelsByProvider[key] ?? availableModels
+ if list.isEmpty {
+ list = []
+ }
+
+ // Add the new model if not already in list
+ if !list.contains(modelName) {
+ list.append(modelName)
+ }
+
+ // Update state
+ availableModelsByProvider[key] = list
+ SettingsStore.shared.availableModelsByProvider = availableModelsByProvider
+
+ // Update saved provider if exists
+ if let providerIndex = savedProviders.firstIndex(where: { $0.id == selectedProviderID }) {
+ let updatedProvider = SettingsStore.SavedProvider(
+ id: savedProviders[providerIndex].id,
+ name: savedProviders[providerIndex].name,
+ baseURL: savedProviders[providerIndex].baseURL,
+ apiKey: savedProviders[providerIndex].apiKey,
+ models: list
+ )
+ savedProviders[providerIndex] = updatedProvider
+ saveSavedProviders()
+ }
+
+ // Update UI state
+ availableModels = list
+ selectedModel = modelName
+ selectedModelByProvider[key] = modelName
+ SettingsStore.shared.selectedModelByProvider = selectedModelByProvider
+
+ // Close the add model UI
+ showingAddModel = false
+ newModelName = ""
+ }
+
// MARK: - API Connection Testing
private func testAPIConnection() async {
guard !isTestingConnection else { return }
@@ -2560,6 +2613,39 @@ struct ContentView: View {
NSApp.terminate(nil)
}
}
+
+ private func startAccessibilityPolling() {
+ // Don't poll if already enabled or if we've already auto-restarted once
+ guard !accessibilityEnabled else { return }
+ guard !UserDefaults.standard.bool(forKey: hasAutoRestartedForAccessibilityKey) else { return }
+
+ // Cancel any existing polling task
+ accessibilityPollingTask?.cancel()
+
+ // Start background polling
+ accessibilityPollingTask = Task {
+ while !Task.isCancelled {
+ try? await Task.sleep(nanoseconds: 2_000_000_000) // Poll every 2 seconds
+
+ // Check if permission was granted
+ let nowTrusted = AXIsProcessTrusted()
+ if nowTrusted && !accessibilityEnabled {
+ await MainActor.run {
+ DebugLogger.shared.info("Accessibility permission granted! Auto-restarting app...", source: "ContentView")
+
+ // Mark that we've auto-restarted to prevent loops
+ UserDefaults.standard.set(true, forKey: hasAutoRestartedForAccessibilityKey)
+
+ // Give user brief moment to see any UI feedback
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
+ self.restartApp()
+ }
+ }
+ break // Stop polling after triggering restart
+ }
+ }
+ }
+ }
private func revealAppInFinder() {
let appPath = Bundle.main.bundlePath
diff --git a/Sources/Fluid/Theme/Components/ThemedCard.swift b/Sources/Fluid/Theme/Components/ThemedCard.swift
index 4d4cbe1e..f2926d5b 100644
--- a/Sources/Fluid/Theme/Components/ThemedCard.swift
+++ b/Sources/Fluid/Theme/Components/ThemedCard.swift
@@ -32,7 +32,7 @@ struct ThemedCard<Content: View>: View {
let shape = RoundedRectangle(cornerRadius: configuration.cornerRadius, style: .continuous)
content
- .padding(padding ?? theme.metrics.spacing.lg)
+ .padding(padding ?? 14)
.background(configuration.material, in: shape)
.background(
shape
diff --git a/Sources/Fluid/Theme/Components/ThemedGroupBox.swift b/Sources/Fluid/Theme/Components/ThemedGroupBox.swift
index 54699324..b7063e41 100644
--- a/Sources/Fluid/Theme/Components/ThemedGroupBox.swift
+++ b/Sources/Fluid/Theme/Components/ThemedGroupBox.swift
@@ -48,3 +48,4 @@ struct ThemedGroupBox<Label: View, Content: View>: View {
+
diff --git a/Sources/Fluid/Theme/NativeButtonStyles.swift b/Sources/Fluid/Theme/NativeButtonStyles.swift
index cc010d63..c9286d91 100644
--- a/Sources/Fluid/Theme/NativeButtonStyles.swift
+++ b/Sources/Fluid/Theme/NativeButtonStyles.swift
@@ -321,3 +321,4 @@ struct GlassToggleStyle: ToggleStyle {
+
diff --git a/Sources/Fluid/Theme/ThemeEnvironment.swift b/Sources/Fluid/Theme/ThemeEnvironment.swift
index a3f061d7..bc854393 100644
--- a/Sources/Fluid/Theme/ThemeEnvironment.swift
+++ b/Sources/Fluid/Theme/ThemeEnvironment.swift
@@ -23,3 +23,4 @@ extension View {
+
diff --git a/Sources/Fluid/UI/RecordingView.swift b/Sources/Fluid/UI/RecordingView.swift
index 5ff50779..f7b1afd4 100644
--- a/Sources/Fluid/UI/RecordingView.swift
+++ b/Sources/Fluid/UI/RecordingView.swift
@@ -18,10 +18,10 @@ struct RecordingView: View {
var body: some View {
ScrollView(.vertical, showsIndicators: false) {
- VStack(spacing: 24) {
+ VStack(spacing: 14) {
// Hero Header Card
ThemedCard(style: .standard) {
- VStack(spacing: 16) {
+ VStack(spacing: 12) {
HStack {
Image(systemName: "waveform.circle.fill")
.font(.system(size: 32))
@@ -40,7 +40,7 @@ struct RecordingView: View {
}
// Status and Recording Control
- VStack(spacing: 12) {
+ VStack(spacing: 10) {
// Status indicator
HStack {
Circle()
@@ -76,11 +76,11 @@ struct RecordingView: View {
.disabled(!asr.isAsrReady && !asr.isRunning)
}
}
- .padding(24)
+ .padding(14)
}
.modifier(CardAppearAnimation(delay: 0.1, appear: $appear))
}
- .padding(24)
+ .padding(14)
}
}
}
diff --git a/Sources/Fluid/UI/SettingsView.swift b/Sources/Fluid/UI/SettingsView.swift
index 3bd1c2a1..6277e3fd 100644
--- a/Sources/Fluid/UI/SettingsView.swift
+++ b/Sources/Fluid/UI/SettingsView.swift
@@ -7,6 +7,7 @@
import SwiftUI
import AVFoundation
+import PromiseKit
struct SettingsView: View {
@ObservedObject var asr: ASRService
@@ -37,10 +38,10 @@ struct SettingsView: View {
var body: some View {
ScrollView(.vertical, showsIndicators: false) {
- VStack(spacing: 24) {
+ VStack(spacing: 14) {
// App Settings Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "power")
.font(.title2)
@@ -50,7 +51,7 @@ struct SettingsView: View {
.fontWeight(.semibold)
}
- VStack(spacing: 20) {
+ VStack(spacing: 14) {
// Launch at startup
VStack(alignment: .leading, spacing: 8) {
HStack(alignment: .top, spacing: 16) {
@@ -141,23 +142,51 @@ struct SettingsView: View {
}
}
- // What's New Button
- Button("What's New") {
- DispatchQueue.main.async {
+ // Update Buttons - Left/Right aligned
+ HStack(spacing: 12) {
+ Button("Check for Updates") {
+ // Direct update check - same as menu bar
+ Task { @MainActor in
+ do {
+ try await SimpleUpdater.shared.checkAndUpdate(owner: "altic-dev", repo: "Fluid-oss")
+ let ok = NSAlert()
+ ok.messageText = "Update Found!"
+ ok.informativeText = "A new version is available and will be installed now."
+ ok.alertStyle = .informational
+ ok.addButton(withTitle: "OK")
+ ok.runModal()
+ } catch {
+ let msg = NSAlert()
+ if let pmkError = error as? PMKError, pmkError.isCancelled {
+ msg.messageText = "You're Up To Date"
+ msg.informativeText = "You're already running the latest version of FluidVoice."
+ } else {
+ msg.messageText = "Update Check Failed"
+ msg.informativeText = "Unable to check for updates. Please try again later.\n\nError: \(error.localizedDescription)"
+ }
+ msg.alertStyle = .informational
+ msg.runModal()
+ }
+ }
+ }
+ .buttonStyle(PremiumButtonStyle(height: 40))
+ .buttonHoverEffect()
+
+ Button("What's New") {
showWhatsNewSheet = true
}
+ .buttonStyle(PremiumButtonStyle(height: 40))
+ .buttonHoverEffect()
}
- .buttonStyle(PremiumButtonStyle(height: 40))
- .buttonHoverEffect()
.padding(.top, 4)
}
}
- .padding(24)
+ .padding(14)
}
// Microphone Permission Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "mic.fill")
.font(.title2)
@@ -167,7 +196,7 @@ struct SettingsView: View {
.fontWeight(.semibold)
}
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
HStack(spacing: 12) {
// Status indicator
Circle()
@@ -295,12 +324,12 @@ struct SettingsView: View {
}
}
}
- .padding(24)
+ .padding(14)
}
// Global Hotkey Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "keyboard")
.font(.title2)
@@ -312,7 +341,7 @@ struct SettingsView: View {
if accessibilityEnabled {
// Hotkey is enabled
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
// Current Hotkey Display
VStack(alignment: .leading, spacing: 8) {
Text("Current Hotkey")
@@ -425,7 +454,7 @@ struct SettingsView: View {
)
// Press and hold toggle
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
Toggle("Press and Hold Mode", isOn: $pressAndHoldModeEnabled)
.toggleStyle(GlassToggleStyle())
Text("When enabled, the shortcut only records while you hold it down, giving you quick push-to-talk style control.")
@@ -448,7 +477,7 @@ struct SettingsView: View {
}
// Streaming preview toggle
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
Toggle("Show Live Preview", isOn: $enableStreamingPreview)
.toggleStyle(GlassToggleStyle())
Text("Display transcription text in real-time in the overlay as you speak. When disabled, only the animation is shown.")
@@ -474,7 +503,7 @@ struct SettingsView: View {
}
// Copy to clipboard toggle
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
Toggle("Copy to Clipboard", isOn: $copyToClipboard)
.toggleStyle(GlassToggleStyle())
Text("Automatically copy transcribed text to clipboard as a backup, useful when no text field is selected.")
@@ -497,7 +526,7 @@ struct SettingsView: View {
}
} else {
// Hotkey disabled - accessibility not enabled
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack(spacing: 12) {
// Status indicator
Circle()
@@ -602,12 +631,12 @@ struct SettingsView: View {
}
}
}
- .padding(24)
+ .padding(14)
}
// Audio Devices Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "speaker.wave.2.fill")
.font(.title2)
@@ -617,7 +646,7 @@ struct SettingsView: View {
.fontWeight(.semibold)
}
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 10) {
HStack {
Text("Input Device")
.fontWeight(.medium)
@@ -674,12 +703,12 @@ struct SettingsView: View {
}
}
}
- .padding(24)
+ .padding(14)
}
// Visualization Sensitivity Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "waveform")
.font(.title2)
@@ -689,7 +718,7 @@ struct SettingsView: View {
.fontWeight(.semibold)
}
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 10) {
HStack {
VStack(alignment: .leading, spacing: 4) {
Text("Visualization Sensitivity")
@@ -731,12 +760,12 @@ struct SettingsView: View {
}
}
}
- .padding(24)
+ .padding(14)
}
// Debug Settings Card
ThemedCard(style: .standard) {
- VStack(alignment: .leading, spacing: 16) {
+ VStack(alignment: .leading, spacing: 12) {
HStack {
Image(systemName: "ladybug.fill")
.font(.title2)
@@ -746,7 +775,7 @@ struct SettingsView: View {
.fontWeight(.semibold)
}
- VStack(alignment: .leading, spacing: 12) {
+ VStack(alignment: .leading, spacing: 10) {
Button {
let url = FileLogger.shared.currentLogFileURL()
if FileManager.default.fileExists(atPath: url.path) {
@@ -767,10 +796,10 @@ struct SettingsView: View {
.padding(.leading, 4)
}
}
- .padding(24)
+ .padding(14)
}
}
- .padding(24)
+ .padding(14)
}
.onAppear {
refreshDevices()
diff --git a/Sources/Fluid/UI/WelcomeView.swift b/Sources/Fluid/UI/WelcomeView.swift
index 1d53de9f..2f1b8518 100644
--- a/Sources/Fluid/UI/WelcomeView.swift
+++ b/Sources/Fluid/UI/WelcomeView.swift
@@ -55,6 +55,20 @@ struct WelcomeView: View {
VStack(alignment: .leading, spacing: 8) {
SetupStepView(
step: 1,
+ title: asr.isAsrReady ? "Voice Model Ready" : "Download Voice Model",
+ description: asr.isAsrReady
+ ? "Speech recognition model is loaded and ready"
+ : "Download the AI model for offline voice transcription (~500MB)",
+ status: asr.isAsrReady ? .completed : .pending,
+ action: {
+ selectedSidebarItem = .aiSettings
+ },
+ actionButtonTitle: "Go to AI Settings",
+ showActionButton: !asr.isAsrReady
+ )
+
+ SetupStepView(
+ step: 2,
title: asr.micStatus == .authorized ? "Microphone Permission Granted" : "Grant Microphone Permission",
description: asr.micStatus == .authorized
? "FluidVoice has access to your microphone"
@@ -72,7 +86,7 @@ struct WelcomeView: View {
)
SetupStepView(
- step: 2,
+ step: 3,
title: accessibilityEnabled ? "Accessibility Enabled" : "Enable Accessibility",
description: accessibilityEnabled
? "Accessibility permission granted for typing into apps"
@@ -86,7 +100,7 @@ struct WelcomeView: View {
)
SetupStepView(
- step: 3,
+ step: 4,
title: {
let hasApiKey = providerAPIKeys[currentProvider]?.isEmpty == false
let isLocal = isLocalEndpoint(openAIBaseURL.trimmingCharacters(in: .whitespacesAndNewlines))
@@ -116,7 +130,7 @@ struct WelcomeView: View {
)
SetupStepView(
- step: 4,
+ step: 5,
title: playgroundUsed ? "Setup Tested Successfully" : "Test Your Setup",
description: playgroundUsed
? "You've successfully tested voice transcription"
@@ -265,17 +279,12 @@ struct WelcomeView: View {
if asr.isRunning {
Task {
await stopAndProcessTranscription()
- // Mark playground as used when transcription completes successfully
- await MainActor.run {
- // Only mark as used if we actually got some text
- if !asr.finalText.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
- playgroundUsed = true
- SettingsStore.shared.playgroundUsed = true
- }
- }
}
} else {
startRecording()
+ // Mark playground as used immediately when user clicks to test
+ playgroundUsed = true
+ SettingsStore.shared.playgroundUsed = true
}
}) {
HStack {