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
Move Dashboard to Activity and make recent rows copyable
altic-dev692b95c788aa
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex e518514e..60844592 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -1322,6 +1322,7 @@ struct ContentView: View {}Section {+ self.sidebarNavigationLink(.welcome, title: "Dashboard", systemImage: "house.fill")self.sidebarNavigationLink(.history, title: "History", systemImage: "clock.arrow.circlepath")self.sidebarNavigationLink(.stats, title: "Stats", systemImage: "chart.bar.fill")} header: {@@ -1329,7 +1330,6 @@ struct ContentView: View {}Section {- self.sidebarNavigationLink(.welcome, title: "Dashboard", systemImage: "house.fill")self.sidebarNavigationLink(.changelog, title: "Change logs", systemImage: "doc.text.magnifyingglass")self.sidebarNavigationLink(.feedback, title: "Feedback", systemImage: "envelope.fill")} header: {diff --git a/Sources/Fluid/UI/DashboardView.swift b/Sources/Fluid/UI/DashboardView.swiftindex cdc4d845..a28a01b3 100644--- a/Sources/Fluid/UI/DashboardView.swift+++ b/Sources/Fluid/UI/DashboardView.swift@@ -269,36 +269,52 @@ private struct DashboardRecentRow: View {let entry: TranscriptionHistoryEntry@Environment(\.theme) private var theme@State private var copied = false+ @State private var copyRevision = 0+ @State private var hovered = falsevar body: some View {- HStack(spacing: 12) {- HistoryAppIcon(appName: self.entry.appName)- VStack(alignment: .leading, spacing: 5) {- Text(self.entry.previewText).font(self.theme.typography.bodySmall).lineLimit(2)- HStack(spacing: 6) {- Text(self.entry.appName.isEmpty ? "Unknown app" : self.entry.appName)- Text("·")- Text(self.entry.timestamp, style: .date)+ Button {+ guard let text = self.entry.clipboardText else { return }+ ClipboardAudit.record("ui_copy_begin")+ NSPasteboard.general.clearContents()+ self.copied = NSPasteboard.general.setString(text, forType: .string)+ ClipboardAudit.record("ui_copy_end")+ self.copyRevision += 1+ } label: {+ HStack(spacing: 12) {+ HistoryAppIcon(appName: self.entry.appName)+ VStack(alignment: .leading, spacing: 5) {+ Text(self.entry.previewText).font(self.theme.typography.bodySmall).lineLimit(2)+ HStack(spacing: 6) {+ Text(self.entry.appName.isEmpty ? "Unknown app" : self.entry.appName)+ Text("·")+ Text(self.entry.timestamp, style: .date)+ }+ .font(self.theme.typography.caption).foregroundStyle(.secondary)+ }+ .frame(maxWidth: .infinity, alignment: .leading)+ if self.copied {+ Text("Copied").font(self.theme.typography.caption)+ .foregroundStyle(self.theme.palette.accent)}- .font(self.theme.typography.caption).foregroundStyle(.secondary)- }- .frame(maxWidth: .infinity, alignment: .leading)- Button {- guard let text = self.entry.clipboardText else { return }- ClipboardAudit.record("ui_copy_begin")- NSPasteboard.general.clearContents()- NSPasteboard.general.setString(text, forType: .string)- ClipboardAudit.record("ui_copy_end")- self.copied = true- } label: {Image(systemName: self.copied ? "checkmark" : "doc.on.doc")+ .foregroundStyle(self.copied ? self.theme.palette.accent : self.theme.palette.secondaryText)}- .buttonStyle(.plain).foregroundStyle(.secondary)- .disabled(self.entry.clipboardText == nil)- .help(self.copied ? "Copied" : "Copy dictation")- .accessibilityLabel(self.copied ? "Copied dictation" : "Copy dictation")+ .padding(18)+ .background(self.theme.palette.accent.opacity(self.hovered ? 0.06 : 0))+ .contentShape(Rectangle())+ }+ .buttonStyle(.plain)+ .disabled(self.entry.clipboardText == nil)+ .onHover { self.hovered = $0 && self.entry.clipboardText != nil }+ .help(self.copied ? "Copied" : "Click anywhere to copy dictation")+ .accessibilityLabel(self.copied ? "Copied dictation" : "Copy dictation")+ .accessibilityValue(self.entry.previewText)+ .task(id: self.copyRevision) {+ guard self.copyRevision > 0 else { return }+ do { try await Task.sleep(for: .seconds(2)) } catch { return }+ self.copied = false}- .padding(18)}}