Privacy-first AI meeting note taker for Windows, macOS and Linux. Free, open source (MIT). On-device Whisper/Parakeet transcription and speaker diarization, no meeting bot. Open-source alternative to Granola, Otter and Fireflies. https://meetily.ai
Rust aiai-meeting-assistantllmlocal-aimacmeeting-minutesmeeting-notesoffline-firstollamaparakeetprivacy-focusedprivacy-toolsrustself-hostedsortformerspeech-to-texttranscriptionwhisperwhisper-cppwindows
fix:handle unsuccessful feedback launch
Mohammed Safvan11e91741b21b
diff --git a/frontend/src-tauri/src/api/api.rs b/frontend/src-tauri/src/api/api.rsindex 512ae2ed..8b4d037f 100644--- a/frontend/src-tauri/src/api/api.rs+++ b/frontend/src-tauri/src/api/api.rs@@ -1155,6 +1155,14 @@ pub async fn debug_backend_connection<R: Runtime>(app: AppHandle<R>) -> Result<S}}+fn url_opener_result(result: std::io::Result<std::process::Output>) -> Result<(), String> {+ match result {+ Ok(output) if output.status.success() => Ok(()),+ Ok(output) => Err(format!("Browser launcher failed: {}", output.status)),+ Err(e) => Err(format!("Failed to open URL: {}", e)),+ }+}+#[tauri::command]pub async fn open_external_url(url: String) -> Result<(), String> {use std::process::Command;@@ -1168,10 +1176,7 @@ pub async fn open_external_url(url: String) -> Result<(), String> {Command::new("xdg-open").arg(&url).output()};- match result {- Ok(_) => Ok(()),- Err(e) => Err(format!("Failed to open URL: {}", e)),- }+ url_opener_result(result)}// ===== CUSTOM OPENAI API COMMANDS =====@@ -1401,3 +1406,28 @@ pub async fn api_test_custom_openai_connection<R: Runtime>(}}}++#[cfg(test)]+mod external_url_tests {+ use super::url_opener_result;+ #[cfg(unix)]+ use std::os::unix::process::ExitStatusExt;+ #[cfg(windows)]+ use std::os::windows::process::ExitStatusExt;+ use std::process::{ExitStatus, Output};++ #[test]+ fn external_url_distinguishes_success_failed_exit_and_spawn_error() {+ let output = |code: u32| Output {+ #[cfg(unix)]+ status: ExitStatus::from_raw((code as i32) << 8),+ #[cfg(windows)]+ status: ExitStatus::from_raw(code),+ stdout: Vec::new(),+ stderr: Vec::new(),+ };+ assert!(url_opener_result(Ok(output(0))).is_ok());+ assert!(url_opener_result(Ok(output(7))).is_err());+ assert!(url_opener_result(Err(std::io::ErrorKind::NotFound.into())).is_err());+ }+}diff --git a/frontend/src/components/ModelSettingsModal.tsx b/frontend/src/components/ModelSettingsModal.tsxindex b470ed53..7501d26d 100644--- a/frontend/src/components/ModelSettingsModal.tsx+++ b/frontend/src/components/ModelSettingsModal.tsx@@ -109,6 +109,15 @@ interface ModelSettingsModalProps {layout?: 'inline' | 'dialog';}+async function openOllamaDownload() {+ try {+ await invoke('open_external_url', { url: 'https://ollama.com/download' });+ } catch (error) {+ console.error('Failed to open Ollama download page:', error);+ toast.error('Could not open this link. Please check your default browser and try again.');+ }+}+export function ModelSettingsModal({modelConfig: propsModelConfig,setModelConfig: propsSetModelConfig,@@ -736,7 +745,7 @@ export function ModelSettingsModal({duration: 7000,action: {label: 'Download',- onClick: () => invoke('open_external_url', { url: 'https://ollama.com/download' })+ onClick: openOllamaDownload}});// Update the installation status flag@@ -1233,7 +1242,7 @@ export function ModelSettingsModal({<Buttonvariant="default"size="sm"- onClick={() => invoke('open_external_url', { url: 'https://ollama.com/download' })}+ onClick={openOllamaDownload}className="w-full bg-blue-600 hover:bg-blue-700"><ExternalLink className="mr-2 h-4 w-4" />