Skip to content

Commit 21df6c7

Browse files
committed
fix(settings): rename ai enhancement copy
1 parent b4cc392 commit 21df6c7

8 files changed

Lines changed: 21 additions & 21 deletions

Sources/Fluid/ContentView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ struct ContentView: View {
959959
.listRowBackground(self.sidebarRowBackground(for: .voiceEngine))
960960

961961
NavigationLink(value: SidebarItem.aiEnhancements) {
962-
Label("AI Enhancements", systemImage: "brain")
962+
Label("AI Enhancement", systemImage: "brain")
963963
.font(.system(size: 15, weight: .medium))
964964
.padding(.leading, 18)
965965
}
@@ -1578,7 +1578,7 @@ struct ContentView: View {
15781578
return self.buildSystemPrompt(appInfo: appInfo, dictationSlot: dictationSlot)
15791579
}()
15801580

1581-
// Dictation cleanup folds the prompt + transcript into a single user
1581+
// Dictation enhancement folds the prompt + transcript into a single user
15821582
// turn (substituting `${transcript}` when present, otherwise appending
15831583
// the transcript after a blank line). Non-dictation callers — the AI
15841584
// chat tab specifically — keep the legacy two-message layout where
@@ -1631,7 +1631,7 @@ struct ContentView: View {
16311631
}
16321632
self.logDictationPromptTrace("Selected context text", value: "<none (dictation mode)>")
16331633
}
1634-
DebugLogger.shared.debug("Using Apple Intelligence for transcription cleanup", source: "ContentView")
1634+
DebugLogger.shared.debug("Using Apple Intelligence for transcription enhancement", source: "ContentView")
16351635
let output = try await provider.process(systemPrompt: systemPrompt, userText: userMessageContent)
16361636
if self.shouldTracePromptProcessing {
16371637
self.logDictationPromptTrace("Model answer (A)", value: output)
@@ -1710,7 +1710,7 @@ struct ContentView: View {
17101710
)
17111711
}
17121712

1713-
// Build messages array. For dictation cleanup the whole prompt +
1713+
// Build messages array. For dictation enhancement the whole prompt +
17141714
// transcript is folded into a single user message, so we omit the
17151715
// (empty) system role. Non-dictation callers keep the legacy
17161716
// system + user shape.
@@ -1722,7 +1722,7 @@ struct ContentView: View {
17221722

17231723
// NOTE: Transcription doesn't need streaming - the full result appears at once
17241724
// Streaming is only useful for Command/Rewrite modes where real-time display helps
1725-
// Using non-streaming is simpler and more reliable for transcription cleanup
1725+
// Using non-streaming is simpler and more reliable for transcription enhancement
17261726
let enableStreaming = false // Hardcoded off for transcription
17271727

17281728
// Build LLMClient configuration

Sources/Fluid/Networking/AppleIntelligenceProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum AppleIntelligenceService {
4343
#if canImport(FoundationModels)
4444
@available(macOS 26.0, *)
4545
final class AppleIntelligenceProvider {
46-
/// Process text with a system prompt (for transcription cleanup)
46+
/// Process text with a system prompt (for transcription enhancement)
4747
func process(systemPrompt: String, userText: String) async throws -> String {
4848
let session = LanguageModelSession()
4949

Sources/Fluid/Persistence/SettingsStore.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ final class SettingsStore: ObservableObject {
235235
let systemPrompt: String
236236
}
237237

238-
/// User-defined dictation prompt profiles (named system prompts for dictation cleanup).
238+
/// User-defined dictation prompt profiles (named system prompts for dictation enhancement).
239239
/// The built-in default prompt is not stored here.
240240
var dictationPromptProfiles: [DictationPromptProfile] {
241241
get {
@@ -972,10 +972,10 @@ final class SettingsStore: ObservableObject {
972972
}
973973

974974
/// Literal placeholder that gets substituted with the raw transcription
975-
/// when composing the user message for a dictation cleanup call.
975+
/// when composing the user message for a dictation enhancement call.
976976
static let transcriptPlaceholder = "${transcript}"
977977

978-
/// Compose the user-turn string for a dictation cleanup call by folding
978+
/// Compose the user-turn string for a dictation enhancement call by folding
979979
/// the transcript into the prompt template. If the template contains the
980980
/// `${transcript}` placeholder, the placeholder is replaced; otherwise
981981
/// the transcript is appended after a blank line, matching the pre-PR

Sources/Fluid/Services/NotificationService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ enum NotificationService {
4242

4343
private static func deliverAIProcessingFallback(error: String, using center: UNUserNotificationCenter) {
4444
let content = UNMutableNotificationContent()
45-
content.title = "AI cleanup failed"
45+
content.title = "AI Enhancement failed"
4646
content.body = "Typed raw transcription instead."
4747
content.subtitle = error
4848
content.sound = nil

Sources/Fluid/UI/AISettingsView+AIConfiguration.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ extension AIEnhancementSettingsView {
126126
.frame(width: 34, height: 34)
127127

128128
VStack(alignment: .leading, spacing: 2) {
129-
Text("AI Enhancements")
129+
Text("AI Enhancement")
130130
.font(.title3)
131131
.fontWeight(.semibold)
132132
.foregroundStyle(self.theme.palette.primaryText)
133-
Text("Choose the model used for AI Cleanup.")
133+
Text("Choose the model used for AI Enhancement.")
134134
.font(.caption)
135135
.foregroundStyle(self.theme.palette.secondaryText)
136136
}
@@ -146,13 +146,13 @@ extension AIEnhancementSettingsView {
146146
self.aiSetupSummaryDivider
147147
self.aiSetupSummaryItem(icon: "cloud", text: "Cloud models use provider APIs")
148148
self.aiSetupSummaryDivider
149-
self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Cleanup enables dictation prompts")
149+
self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Enhancement enables dictation prompts")
150150
}
151151

152152
VStack(alignment: .leading, spacing: 7) {
153153
self.aiSetupSummaryItem(icon: "cpu", text: "Local models run on Mac")
154154
self.aiSetupSummaryItem(icon: "cloud", text: "Cloud models use provider APIs")
155-
self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Cleanup enables dictation prompts")
155+
self.aiSetupSummaryItem(icon: "slider.horizontal.3", text: "AI Enhancement enables dictation prompts")
156156
}
157157
}
158158
.padding(.horizontal, 2)

Sources/Fluid/UI/AISettingsView+AdvancedSettings.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extension AIEnhancementSettingsView {
185185
let isOff = self.viewModel.isPrimaryDictationPromptSelectionOff()
186186

187187
return HStack(alignment: .center, spacing: 7) {
188-
Text("AI Cleanup")
188+
Text("AI Enhancement")
189189
.font(.system(size: 12, weight: .semibold))
190190
.foregroundStyle(self.theme.palette.secondaryText)
191191
.lineLimit(1)
@@ -423,7 +423,7 @@ extension AIEnhancementSettingsView {
423423

424424
private func promptRoutingScopeRow(mode: SettingsStore.PromptMode) -> some View {
425425
HStack(alignment: .center, spacing: 10) {
426-
Text(mode.normalized == .dictate ? "Use cleanup" : "Use prompts")
426+
Text(mode.normalized == .dictate ? "Use AI" : "Use prompts")
427427
.font(.system(size: 12, weight: .semibold))
428428
.foregroundStyle(self.theme.palette.secondaryText)
429429
.frame(width: AISettingsLayout.promptScopeLabelWidth, alignment: .leading)
@@ -505,7 +505,7 @@ extension AIEnhancementSettingsView {
505505
.frame(width: 18, height: 18)
506506

507507
Text(mode.normalized == .dictate
508-
? "No default cleanup. Add app overrides to use prompts in selected apps."
508+
? "No default enhancement. Add app overrides to use prompts in selected apps."
509509
: "Default edit stays built-in. App overrides can use custom prompts."
510510
)
511511
.font(.caption2)

Sources/Fluid/UI/SettingsView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ struct SettingsView: View {
660660
icon: "text.bubble.fill",
661661
iconColor: .secondary,
662662
title: "Secondary Dictation Shortcut",
663-
description: "Defaults to Default cleanup, but can use Off, Default, or any custom prompt."
663+
description: "Defaults to AI Enhancement, but can use Off, Default, or any custom prompt."
664664
),
665665
shortcut: self.promptModeShortcut,
666666
isRecording: self.isRecording(.secondaryDictation),
@@ -807,8 +807,8 @@ struct SettingsView: View {
807807
Divider().opacity(0.2)
808808

809809
self.optionToggleRow(
810-
title: "Notify AI Cleanup Failures",
811-
description: "Show a macOS notification when AI cleanup fails and raw transcription is typed.",
810+
title: "Notify AI Enhancement Failures",
811+
description: "Show a macOS notification when AI Enhancement fails and raw transcription is typed.",
812812
isOn: Binding(
813813
get: { SettingsStore.shared.notifyAIProcessingFailures },
814814
set: { SettingsStore.shared.notifyAIProcessingFailures = $0 }

Sources/Fluid/UI/TranscriptionHistoryView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ struct TranscriptionHistoryView: View {
328328
Image(systemName: "exclamationmark.triangle.fill")
329329
.foregroundStyle(Color.orange)
330330
VStack(alignment: .leading, spacing: 2) {
331-
Text("AI cleanup failed - raw transcription was typed instead")
331+
Text("AI Enhancement failed - raw transcription was typed instead")
332332
.font(.system(size: 12, weight: .semibold))
333333
Text(aiError)
334334
.font(.system(size: 11))

0 commit comments

Comments
 (0)