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

Add analytics for fluid1 interest

grohith3272ab11262febd
diff --git a/Sources/Fluid/Analytics/AnalyticsEvent.swift b/Sources/Fluid/Analytics/AnalyticsEvent.swift
index b362f149..f497b16b 100644
--- a/Sources/Fluid/Analytics/AnalyticsEvent.swift
+++ b/Sources/Fluid/Analytics/AnalyticsEvent.swift
@@ -23,6 +23,9 @@ enum AnalyticsEvent: String {
// Meeting transcription
case meetingTranscriptionCompleted = "meeting_transcription_completed"
+ // AI settings
+ case providerInterestClicked = "provider_interest_clicked"
+
// Errors
case errorOccurred = "error_occurred"
}
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index a6f73ed3..4d2ded93 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -738,16 +738,24 @@ struct ContentView: View {
NavigationLink(value: SidebarItem.voiceEngine) {
Label("Voice Engine", systemImage: "waveform")
.font(.system(size: 15, weight: .medium))
+ .padding(.leading, 18)
}
.listRowBackground(self.sidebarRowBackground(for: .voiceEngine))
NavigationLink(value: SidebarItem.aiEnhancements) {
- Label("AI Enhancements", systemImage: "sparkles")
+ Label("AI Enhancements", systemImage: "brain")
.font(.system(size: 15, weight: .medium))
+ .padding(.leading, 18)
}
.listRowBackground(self.sidebarRowBackground(for: .aiEnhancements))
}
+ NavigationLink(value: SidebarItem.preferences) {
+ Label("Preferences", systemImage: "gearshape.fill")
+ .font(.system(size: 15, weight: .medium))
+ }
+ .listRowBackground(self.sidebarRowBackground(for: .preferences))
+
NavigationLink(value: SidebarItem.commandMode) {
Label("Command Mode", systemImage: "terminal.fill")
.font(.system(size: 15, weight: .medium))
@@ -784,12 +792,6 @@ struct ContentView: View {
}
.listRowBackground(self.sidebarRowBackground(for: .history))
- NavigationLink(value: SidebarItem.preferences) {
- Label("Preferences", systemImage: "gearshape.fill")
- .font(.system(size: 15, weight: .medium))
- }
- .listRowBackground(self.sidebarRowBackground(for: .preferences))
-
NavigationLink(value: SidebarItem.feedback) {
Label("Feedback", systemImage: "envelope.fill")
.font(.system(size: 15, weight: .medium))
diff --git a/Sources/Fluid/Persistence/SettingsStore.swift b/Sources/Fluid/Persistence/SettingsStore.swift
index bd963290..3e091a33 100644
--- a/Sources/Fluid/Persistence/SettingsStore.swift
+++ b/Sources/Fluid/Persistence/SettingsStore.swift
@@ -33,6 +33,7 @@ final class SettingsStore: ObservableObject {
static let savedProviders = "SavedProviders"
static let verifiedProviderFingerprints = "VerifiedProviderFingerprints"
static let shareAnonymousAnalytics = "ShareAnonymousAnalytics"
+ static let fluid1InterestCaptured = "Fluid1InterestCaptured"
static let hotkeyShortcutKey = "HotkeyShortcutKey"
static let preferredInputDeviceUID = "PreferredInputDeviceUID"
static let preferredOutputDeviceUID = "PreferredOutputDeviceUID"
@@ -373,6 +374,14 @@ final class SettingsStore: ObservableObject {
}
}
+ var fluid1InterestCaptured: Bool {
+ get { self.defaults.bool(forKey: Keys.fluid1InterestCaptured) }
+ set {
+ objectWillChange.send()
+ self.defaults.set(newValue, forKey: Keys.fluid1InterestCaptured)
+ }
+ }
+
var availableModels: [String] {
get { (self.defaults.array(forKey: Keys.availableAIModels) as? [String]) ?? [] }
set {
diff --git a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsView.swift b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsView.swift
index 279378dc..b4a3115b 100644
--- a/Sources/Fluid/UI/AISettings/AIEnhancementSettingsView.swift
+++ b/Sources/Fluid/UI/AISettings/AIEnhancementSettingsView.swift
@@ -6,6 +6,7 @@ struct AIEnhancementSettingsView: View {
@ObservedObject var promptTest: DictationPromptTestCoordinator
let theme: AppTheme
@State var expandedProviderID: String? = nil
+ @State var providerSearchText: String = ""
var body: some View {
self.aiConfigurationCard
diff --git a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
index 6c05fbbe..c7873d31 100644
--- a/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
+++ b/Sources/Fluid/UI/AISettingsView+AIConfiguration.swift
@@ -52,7 +52,7 @@ extension AIEnhancementSettingsView {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 12) {
HStack(spacing: 10) {
- Image(systemName: "sparkles")
+ Image(systemName: "brain")
.font(.title3)
.foregroundStyle(self.theme.palette.accent)
Text("AI Enhancement")
@@ -231,7 +231,15 @@ extension AIEnhancementSettingsView {
}
private var allProvidersSection: some View {
- let count = self.unverifiedProviderItems.count
+ let query = self.providerSearchText.trimmingCharacters(in: .whitespacesAndNewlines)
+ let items = self.unverifiedProviderItems
+ let filteredItems = query.isEmpty
+ ? items
+ : items.filter {
+ $0.name.localizedCaseInsensitiveContains(query) ||
+ $0.id.localizedCaseInsensitiveContains(query)
+ }
+ let count = filteredItems.count
return VStack(alignment: .leading, spacing: 8) {
HStack(spacing: 6) {
Image(systemName: "square.grid.2x2")
@@ -245,13 +253,38 @@ extension AIEnhancementSettingsView {
.foregroundStyle(self.theme.palette.tertiaryText)
}
+ HStack(spacing: 8) {
+ Image(systemName: "magnifyingglass")
+ .font(.system(size: 11))
+ .foregroundStyle(.secondary)
+ TextField("Search providers", text: self.$providerSearchText)
+ .textFieldStyle(.plain)
+ .font(.system(size: 12))
+ }
+ .padding(8)
+ .background(
+ RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .fill(self.theme.palette.contentBackground)
+ .overlay(
+ RoundedRectangle(cornerRadius: 8, style: .continuous)
+ .stroke(self.theme.palette.cardBorder.opacity(0.3), lineWidth: 1)
+ )
+ )
+
ScrollViewReader { proxy in
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 6) {
- ForEach(self.unverifiedProviderItems) { item in
+ ForEach(filteredItems) { item in
self.providerCard(item)
.id(item.id)
}
+ if filteredItems.isEmpty {
+ Text("No providers match \"\(query)\"")
+ .font(.caption)
+ .foregroundStyle(.secondary)
+ .padding(.vertical, 12)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ }
self.customProviderButton
.id("custom-provider")
}
@@ -348,9 +381,22 @@ extension AIEnhancementSettingsView {
private func providerCard(_ item: ProviderItem) -> some View {
let isAppleDisabled = item.id == "apple-intelligence-disabled"
- let isComingSoon = item.id == "fluid-1" || isAppleDisabled
- let isExpanded = !isComingSoon && self.expandedProviderID == item.id
+ let isFluidInterest = item.id == "fluid-1"
+ let isComingSoon = isAppleDisabled
+ let isExpanded = self.expandedProviderID == item.id && !isAppleDisabled
let status = self.providerStatus(for: item)
+ let borderColor = isExpanded
+ ? self.theme.palette.accent.opacity(0.5)
+ : (isFluidInterest ? self.theme.palette.accent.opacity(0.3) : self.theme.palette.cardBorder.opacity(0.3))
+ let statusView = HStack(spacing: 5) {
+ if !status.icon.isEmpty {
+ Image(systemName: status.icon)
+ .font(.system(size: 10))
+ }
+ Text(status.text)
+ }
+ .font(.caption2)
+ .foregroundStyle(status.color)
return VStack(alignment: .leading, spacing: 0) {
Button(action: { if !isComingSoon { self.toggleProviderExpansion(item.id) } }) {
@@ -363,15 +409,21 @@ extension AIEnhancementSettingsView {
.font(.system(size: 14, weight: .semibold))
.foregroundStyle(isComingSoon ? self.theme.palette.accent : self.theme.palette.primaryText)
- HStack(spacing: 5) {
- if !status.icon.isEmpty {
- Image(systemName: status.icon)
- .font(.system(size: 10))
- }
- Text(status.text)
- .font(.caption2)
+ if isFluidInterest {
+ statusView
+ .padding(.horizontal, 8)
+ .padding(.vertical, 3)
+ .background(
+ Capsule()
+ .fill(self.theme.palette.accent.opacity(0.12))
+ .overlay(
+ Capsule()
+ .stroke(self.theme.palette.accent.opacity(0.3), lineWidth: 1)
+ )
+ )
+ } else {
+ statusView
}
- .foregroundStyle(status.color)
}
Spacer()
@@ -395,9 +447,15 @@ extension AIEnhancementSettingsView {
.background(self.theme.palette.separator.opacity(0.5))
.padding(.horizontal, 14)
- self.providerDetailsSection(for: item)
- .padding(14)
- .padding(.top, 4)
+ if isFluidInterest {
+ self.fluid1InterestSection
+ .padding(14)
+ .padding(.top, 4)
+ } else {
+ self.providerDetailsSection(for: item)
+ .padding(14)
+ .padding(.top, 4)
+ }
}
}
.frame(maxWidth: .infinity)
@@ -408,16 +466,16 @@ extension AIEnhancementSettingsView {
)
.overlay(
RoundedRectangle(cornerRadius: 12, style: .continuous)
- .stroke(
- isExpanded ? self.theme.palette.accent.opacity(0.5) : self.theme.palette.cardBorder.opacity(0.3),
- lineWidth: isExpanded ? 1.5 : 1
- )
+ .stroke(borderColor, lineWidth: isExpanded ? 1.5 : 1)
)
}
private func providerStatus(for item: ProviderItem) -> (text: String, color: Color, icon: String) {
if item.id == "fluid-1" {
- return ("Coming Soon · On Device", self.theme.palette.accent, "")
+ if self.settings.fluid1InterestCaptured {
+ return ("Thanks · Coming soon", self.theme.palette.accent, "checkmark.circle.fill")
+ }
+ return ("Early access · Tap to join", self.theme.palette.accent, "hand.tap")
}
if item.id == "apple-intelligence-disabled" {
return ("Unavailable", .secondary, "lock.slash")
@@ -438,10 +496,19 @@ extension AIEnhancementSettingsView {
}
private var isComingSoonProvider: (ProviderItem) -> Bool {
- { $0.id == "fluid-1" || $0.id == "apple-intelligence-disabled" }
+ { $0.id == "apple-intelligence-disabled" }
}
private func toggleProviderExpansion(_ providerID: String) {
+ if providerID == "fluid-1" {
+ if self.expandedProviderID == providerID {
+ self.expandedProviderID = nil
+ } else {
+ self.expandedProviderID = providerID
+ self.recordFluid1Interest()
+ }
+ return
+ }
if self.expandedProviderID == providerID {
self.expandedProviderID = nil
self.viewModel.showingEditProvider = false
@@ -454,6 +521,46 @@ extension AIEnhancementSettingsView {
}
}
+ private func recordFluid1Interest() {
+ guard !self.settings.fluid1InterestCaptured else { return }
+ self.settings.fluid1InterestCaptured = true
+ AnalyticsService.shared.capture(
+ .providerInterestClicked,
+ properties: [
+ "provider_id": "fluid-1",
+ "provider_name": ModelRepository.shared.displayName(for: "fluid-1"),
+ "source": "ai_settings_all_providers",
+ "cta_variant": "early_access_tap_to_join",
+ ]
+ )
+ }
+
+ private var fluid1InterestSection: some View {
+ VStack(alignment: .leading, spacing: 8) {
+ HStack(spacing: 8) {
+ Image(systemName: "checkmark.seal.fill")
+ .font(.system(size: 13))
+ .foregroundStyle(self.theme.palette.accent)
+ Text("Thank you — coming soon")
+ .font(.system(size: 13, weight: .semibold))
+ }
+
+ Text("We saved your interest in Fluid-1, our private on-device model. We'll notify you when it's ready.")
+ .font(.caption)
+ .foregroundStyle(.secondary)
+ }
+ .padding(12)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .background(
+ RoundedRectangle(cornerRadius: 10, style: .continuous)
+ .fill(self.theme.palette.accent.opacity(0.08))
+ .overlay(
+ RoundedRectangle(cornerRadius: 10, style: .continuous)
+ .stroke(self.theme.palette.accent.opacity(0.25), lineWidth: 1)
+ )
+ )
+ }
+
private func providerDetailsSection(for item: ProviderItem) -> AnyView {
let isAppleDisabled = item.id == "apple-intelligence-disabled"
let isApple = item.id == "apple-intelligence"