A free, open source, and extensible speech-to-text application that works completely offline.
error notices framework (#2372)
CJ Paisb99b9af2c40c
diff --git a/.nix/bun-lock-hash b/.nix/bun-lock-hashindex d44bc846..4d1d5343 100644--- a/.nix/bun-lock-hash+++ b/.nix/bun-lock-hash@@ -1 +1 @@-8bf4acd689d77c784357bbba3f56269223aabd223aece8da6834bac48bfbe5bb+b0d095e24aa2df6c4c0ad75fcb82b539f383ba83d56c3a44316aeadd1ee934b9diff --git a/.nix/bun.nix b/.nix/bun.nixindex 9cf5741b..22fc7312 100644--- a/.nix/bun.nix+++ b/.nix/bun.nix@@ -1553,10 +1553,6 @@url = "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz";hash = "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==";};- "[email protected]" = fetchurl {- url = "https://registry.npmjs.org/sonner/-/sonner-2.0.7.tgz";- hash = "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==";- };"[email protected]" = fetchurl {url = "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz";hash = "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==";diff --git a/AGENTS.md b/AGENTS.mdindex 9d7bf5c7..f0af1173 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -68,6 +68,7 @@ Handy is a cross-platform desktop speech-to-text application built with Tauri 2.- `cli.rs` - CLI argument definitions (clap derive)- `shortcut.rs` - Global keyboard shortcut handling- `settings.rs` - Application settings management+- `notices.rs` - Reports background errors to the user (see [Error notices](#error-notices))- `overlay.rs` - Recording overlay window (platform-specific)- `signal_handle.rs` - `send_transcription_input()` reusable function- `utils.rs` - Platform detection helpers@@ -86,6 +87,9 @@ Handy is a cross-platform desktop speech-to-text application built with Tauri 2.- `stores/settingsStore.ts` - Zustand store for settings- `bindings.ts` - Auto-generated Tauri type bindings (via tauri-specta)- `overlay/` - Recording overlay window entry point+- `lib/notices.ts` - Maps each notice code to its text+- `stores/noticeStore.ts` - The one place notices are handled: what's active and what's on screen+- `components/notices/NoticePanel.tsx` - The one place notices are drawn, as a toast or the full list- `lib/types.ts` - Shared TypeScript type definitions### Key Architecture Patterns@@ -129,6 +133,32 @@ Settings are stored using Tauri's store plugin with reactive updates:The app enforces single instance behavior — launching when already running brings the settings window to front rather than creating a new process. Remote control flags (`--toggle-transcription`, etc.) work by launching a second instance that sends args to the running instance via `tauri_plugin_single_instance`, then exits.+## Error notices++`notices::raise` is the one way to report a failure that happens while the user isn't looking at the settings window. Don't add a new event, toast or overlay state for one. A new error should take a few lines and need no new UI.++**Adding a new error:**++1. Add a `NoticeCode` in `src-tauri/src/notices.rs`, with its level in `NoticeCode::level` and its title in `NoticeCode::tray_title`. **Error** means nothing came out, or Handy can't do its job. **Warning** means the user got a result, but not the one they set up.+2. Add the title as `errors.<name>Title` in `src/i18n/locales/en/translation.json`, in Title Case and using the app's terms, then add the key to the other locales (`bun run check:translations` fails otherwise). The `Title` suffix is what makes `build.rs` give the tray `strings.<name>_title`. A dictation title has to fit the overlay pill, at most 215px of 12px text.+3. Map the code to its title and optional explanation in `NOTICE_DISPLAY` in `src/lib/notices.ts`. TypeScript won't compile until you do.+4. Call `notices::raise` where the failure happens, and regenerate `bindings.ts` by running the app in debug:++```rust+notices::raise(+ app,+ Notice::new(NoticeCode::PasteFailed, NoticeSource::Dictation),+);+```++**Rules:**++- Rust sends codes, never display strings. Use `with_detail` for what only Rust knows, such as a model name or a raw error.+- Handy keeps one notice per `NoticeSource`, and a newer one replaces it. A notice ends when its source next succeeds or when the user dismisses it in the footer. When a source next succeeds, call `notices::clear` before raising anything about that session, or the clear wipes the session's own notice.+- A message from the frontend goes through `notify` in `stores/noticeStore.ts`, the app's only toast. Without a `key` it's a click's result and ends with its pop-up, such as a failed copy. With one it stays in the footer until dismissed or cleared, such as a file Handy can't read. It's text the frontend already translated, so it needs no `NoticeCode`, and it doesn't show in the tray.+- A dictation notice replaces the overlay, so call `raise` instead of hiding the overlay. If a newer session owns the overlay by then, call `raise_without_overlay`.+- A raised notice pops up in the window as a toast. Its X dismisses the notice; otherwise the toast times out and the notice stays in the tray and footer, where the user can bring it back up. During onboarding it pops up below the top bar, and the footer lists it once onboarding ends. Only dictation notices show on the overlay.+## Internationalization (i18n)All user-facing strings must use i18next translations. ESLint enforces this (no hardcoded strings in JSX).diff --git a/bun.lock b/bun.lockindex 79bed12e..5f3a3ed4 100644--- a/bun.lock+++ b/bun.lock@@ -27,7 +27,6 @@"react-i18next": "^16.4.1","react-markdown": "^10.1.0","react-select": "^5.8.0",- "sonner": "^2.0.7","tailwindcss": "^4.1.16","tauri-plugin-macos-permissions-api": "2.3.0","zod": "^3.25.76",@@ -795,8 +794,6 @@"shebang-regex": ["[email protected]", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],- "sonner": ["[email protected]", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w=="],-"source-map": ["[email protected]", "", {}, "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ=="],"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],diff --git a/package.json b/package.jsonindex 683ce792..ab4e8cce 100644--- a/package.json+++ b/package.json@@ -48,7 +48,6 @@"react-i18next": "^16.4.1","react-markdown": "^10.1.0","react-select": "^5.8.0",- "sonner": "^2.0.7","tailwindcss": "^4.1.16","tauri-plugin-macos-permissions-api": "2.3.0","zod": "^3.25.76",diff --git a/src-tauri/build.rs b/src-tauri/build.rsindex 9f8ada79..d98a9eb6 100644--- a/src-tauri/build.rs+++ b/src-tauri/build.rs@@ -266,7 +266,8 @@ fn split_versioned_so(name: &str) -> Option<(&str, usize)> {/// Generate tray menu translations from frontend locale files.////// Source of truth: src/i18n/locales/*/translation.json-/// The English "tray" section defines the struct fields.+/// The English "tray" section defines the struct fields, plus every+/// `errors.*Title` for notice titles.fn generate_tray_translations() {use std::collections::BTreeMap;use std::fs;@@ -294,7 +295,16 @@ fn generate_tray_translations() {let content = fs::read_to_string(&json_path).unwrap();let parsed: serde_json::Value = serde_json::from_str(&content).unwrap();- if let Some(tray) = parsed.get("tray").cloned() {+ if let Some(mut tray) = parsed.get("tray").cloned() {+ let titles = parsed+ .get("errors")+ .and_then(|errors| errors.as_object())+ .into_iter()+ .flatten()+ .filter(|(key, _)| key.ends_with("Title"));+ for (key, title) in titles {+ tray[key] = title.clone();+ }translations.insert(lang, tray);}}diff --git a/src-tauri/src/actions.rs b/src-tauri/src/actions.rsindex 5ccd6b2c..2c8b796c 100644--- a/src-tauri/src/actions.rs+++ b/src-tauri/src/actions.rs@@ -2,12 +2,13 @@use crate::apple_intelligence;use crate::audio_feedback::{play_feedback_sound, play_feedback_sound_blocking, SoundType};use crate::audio_toolkit::VadPolicy;-use crate::managers::audio::{recording_error_type, AudioRecordingManager};+use crate::managers::audio::{recording_notice_code, AudioRecordingManager};use crate::managers::history::HistoryManager;use crate::managers::model::ModelManager;use crate::managers::transcription::policy::{live_decode, LiveDecode, ModelTraits};use crate::managers::transcription::StreamWorkKind;use crate::managers::transcription::{Transcription, TranscriptionManager};+use crate::notices::{self, Notice, NoticeCode, NoticeSource};use crate::settings::{get_settings, AppSettings, OverlayStyle, APPLE_INTELLIGENCE_PROVIDER_ID};use crate::shortcut;use crate::tray::{set_tray_state, TrayIconState};@@ -24,8 +25,7 @@ use std::future::Future;use std::sync::atomic::{AtomicU64, Ordering};use std::sync::Arc;use std::time::{Duration, Instant};-use tauri::Manager;-use tauri::{AppHandle, Emitter};+use tauri::{AppHandle, Manager};use tauri_specta::Event;/// How a dictation ended.@@ -82,12 +82,6 @@ const CANCELLATION_POLL_INTERVAL: Duration = Duration::from_millis(25);/// doesn't reset the tray or hide the overlay of a newer one.static RECORDING_SESSION: AtomicU64 = AtomicU64::new(0);-#[derive(Clone, serde::Serialize)]-struct RecordingErrorEvent {- error_type: String,- detail: Option<String>,-}-/// Drop guard that finishes the transcription pipeline, including immediate/// model unloading on early exits.struct FinishGuard(AppHandle, Arc<TranscriptionManager>);@@ -186,17 +180,31 @@ fn should_use_streaming_overlay(style: OverlayStyle, is_streaming: bool) -> boolstyle == OverlayStyle::Live && is_streaming}-async fn post_process_transcription(settings: &AppSettings, transcription: &str) -> Option<String> {+/// What became of a transcription's post-processing.+#[derive(Debug, PartialEq, Eq)]+enum PostProcessOutcome {+ /// There was no speech to process.+ Skipped,+ Done(String),+ /// The user asked for it, but it couldn't run or produced nothing, so the+ /// transcript goes out as it is.+ Failed,+}++async fn post_process_transcription(+ settings: &AppSettings,+ transcription: &str,+) -> PostProcessOutcome {if is_blank_transcription(transcription) {debug!("Post-processing skipped because the transcription is empty");- return None;+ return PostProcessOutcome::Skipped;}let provider = match settings.active_post_process_provider().cloned() {Some(provider) => provider,None => {debug!("Post-processing enabled but no provider is selected");- return None;+ return PostProcessOutcome::Failed;}};@@ -211,14 +219,14 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)"Post-processing skipped because provider '{}' has no model configured",provider.id);- return None;+ return PostProcessOutcome::Failed;}let selected_prompt_id = match &settings.post_process_selected_prompt_id {Some(id) => id.clone(),None => {debug!("Post-processing skipped because no prompt is selected");- return None;+ return PostProcessOutcome::Failed;}};@@ -233,13 +241,13 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)"Post-processing skipped because prompt '{}' was not found",selected_prompt_id);- return None;+ return PostProcessOutcome::Failed;}};if prompt.trim().is_empty() {debug!("Post-processing skipped because the selected prompt is empty");- return None;+ return PostProcessOutcome::Failed;}debug!(@@ -272,7 +280,7 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)debug!("Apple Intelligence selected but not currently available on this device");- return None;+ return PostProcessOutcome::Failed;}let token_limit = model.trim().parse::<i32>().unwrap_or(0);@@ -284,19 +292,19 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)Ok(result) => {if result.trim().is_empty() {debug!("Apple Intelligence returned an empty response");- None+ PostProcessOutcome::Failed} else {let result = strip_invisible_chars(&result);debug!("Apple Intelligence post-processing succeeded. Output length: {} chars",result.len());- Some(result)+ PostProcessOutcome::Done(result)}}Err(err) => {error!("Apple Intelligence post-processing failed: {}", err);- None+ PostProcessOutcome::Failed}};}@@ -304,7 +312,7 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)#[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]{debug!("Apple Intelligence provider selected on unsupported platform");- return None;+ return PostProcessOutcome::Failed;}}@@ -346,10 +354,10 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)provider.id,result.len());- return Some(result);+ return PostProcessOutcome::Done(result);} else {error!("Structured output response missing 'transcription' field");- return Some(strip_invisible_chars(content));+ return PostProcessOutcome::Done(strip_invisible_chars(content));}}Err(e) => {@@ -357,13 +365,13 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)"Failed to parse structured output JSON: {}. Returning raw content.",e);- return Some(strip_invisible_chars(content));+ return PostProcessOutcome::Done(strip_invisible_chars(content));}}}Ok(None) => {error!("LLM API response has no content");- return None;+ return PostProcessOutcome::Failed;}Err(e) => {warn!(@@ -395,11 +403,11 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)provider.id,content.len());- Some(content)+ PostProcessOutcome::Done(content)}Ok(None) => {error!("LLM API response has no content");- None+ PostProcessOutcome::Failed}Err(e) => {error!(@@ -407,7 +415,7 @@ async fn post_process_transcription(settings: &AppSettings, transcription: &str)provider.id,e);- None+ PostProcessOutcome::Failed}}}@@ -416,6 +424,8 @@ pub(crate) struct ProcessedTranscription {pub final_text: String,pub post_processed_text: Option<String>,pub post_process_prompt: Option<String>,+ /// `final_text` is the bare transcript because post-processing failed.+ pub post_process_failed: bool,}pub(crate) async fn process_transcription_output(@@ -427,22 +437,30 @@ pub(crate) async fn process_transcription_output(let mut final_text = transcription.to_string();let mut post_processed_text: Option<String> = None;let mut post_process_prompt: Option<String> = None;+ let mut post_process_failed = false;if post_process {- if let Some(processed_text) = post_process_transcription(&settings, &final_text)- .await- .and_then(non_blank_post_processed_text)- {- post_processed_text = Some(processed_text.clone());- final_text = processed_text;-- if let Some(prompt_id) = &settings.post_process_selected_prompt_id {- if let Some(prompt) = settings- .post_process_prompts- .iter()- .find(|prompt| &prompt.id == prompt_id)- {- post_process_prompt = Some(prompt.prompt.clone());+ // A reply that's blank once cleaned is no better than none.+ let outcome = match post_process_transcription(&settings, &final_text).await {+ PostProcessOutcome::Done(text) => non_blank_post_processed_text(text)+ .map_or(PostProcessOutcome::Failed, PostProcessOutcome::Done),+ outcome => outcome,+ };+ match outcome {+ PostProcessOutcome::Skipped => {}+ PostProcessOutcome::Failed => post_process_failed = true,+ PostProcessOutcome::Done(processed_text) => {+ post_processed_text = Some(processed_text.clone());+ final_text = processed_text;++ if let Some(prompt_id) = &settings.post_process_selected_prompt_id {+ if let Some(prompt) = settings+ .post_process_prompts+ .iter()+ .find(|prompt| &prompt.id == prompt_id)+ {+ post_process_prompt = Some(prompt.prompt.clone());+ }}}}@@ -452,6 +470,7 @@ pub(crate) async fn process_transcription_output(final_text,post_processed_text,post_process_prompt,+ post_process_failed,}}@@ -466,7 +485,7 @@ impl ShortcutAction for TranscribeAction {// Load ASR model and VAD model in parallellet kickoff_started = Instant::now();- tm.initiate_model_load();+ let load_started = tm.initiate_model_load(true);let rm_clone = Arc::clone(&rm);std::thread::spawn(move || {if let Err(e) = rm_clone.preload_vad() {@@ -475,8 +494,8 @@ impl ShortcutAction for TranscribeAction {});let kickoff_elapsed = kickoff_started.elapsed();- // Don't open the mic if nothing can transcribe the recording; the load- // kicked off above fails and reports why.+ // Don't open the mic if nothing can transcribe the recording. A load+ // started above reports its own failure; one already running doesn't.if !tm.is_model_loaded() {let selected_model = get_settings(app).selected_model;if let Err(e) = app@@ -484,6 +503,9 @@ impl ShortcutAction for TranscribeAction {.get_model_path(&selected_model){warn!("Not starting recording: no model can transcribe it ({})", e);+ if !load_started {+ tm.raise_model_load_failed(&selected_model, &e);+ }return;}}@@ -614,15 +636,12 @@ impl ShortcutAction for TranscribeAction {// Starting failed (for example due to blocked microphone permissions).// Revert UI state so we don't stay stuck in the recording overlay.tm.cancel_stream();- utils::hide_recording_overlay(app);set_tray_state(app, TrayIconState::Idle);if let Some(err) = recording_error {- let _ = app.emit(- "recording-error",- RecordingErrorEvent {- error_type: recording_error_type(&err).to_string(),- detail: Some(format!("{err:#}")),- },+ notices::raise(+ app,+ Notice::new(recording_notice_code(&err), NoticeSource::Dictation)+ .with_detail(format!("{err:#}")),);}}@@ -822,6 +841,7 @@ impl ShortcutAction for TranscribeAction {let ah_clone = ah.clone();let paste_time = Instant::now();let final_text = processed.final_text;+ let post_process_failed = processed.post_process_failed;let rm_for_paste = Arc::clone(&rm);// Taken before the paste thread exists, and so// before the next session can start.@@ -840,25 +860,56 @@ impl ShortcutAction for TranscribeAction {return;}- let outcome =+ // A new session may have taken over the+ // UI while this paste ran.+ let owns_ui =+ || RECORDING_SESSION.load(Ordering::SeqCst) == session;+ let (outcome, notice) =match utils::paste(final_text, ah_clone.clone()) {Ok(()) => {debug!("Text pasted successfully in {:?}",paste_time.elapsed());- TranscriptionOutcome::Typed+ // Leave a newer session's notice alone.+ if owns_ui() {+ notices::clear(+ &ah_clone,+ NoticeSource::Dictation,+ );+ }+ let notice = post_process_failed.then(|| {+ Notice::new(+ NoticeCode::PostProcessFailed,+ NoticeSource::Dictation,+ )+ });+ (TranscriptionOutcome::Typed, notice)}Err(e) => {error!("Failed to paste transcription: {}", e);- let _ = ah_clone.emit("paste-error", ());- TranscriptionOutcome::Failed+ (+ TranscriptionOutcome::Failed,+ Some(Notice::new(+ NoticeCode::PasteFailed,+ NoticeSource::Dictation,+ )),+ )}};- // A new session may have started while- // this paste ran; the UI is now its.- if RECORDING_SESSION.load(Ordering::SeqCst) == session {- utils::hide_recording_overlay(&ah_clone);+ match (owns_ui(), notice) {+ (true, Some(notice)) => {+ notices::raise(&ah_clone, notice)+ }+ (true, None) => {+ utils::hide_recording_overlay(&ah_clone)+ }+ (false, Some(notice)) => {+ notices::raise_without_overlay(&ah_clone, notice)+ }+ (false, None) => {}+ }+ if owns_ui() {set_tray_state(&ah_clone, TrayIconState::Idle);}emit_transcription_complete(@@ -893,9 +944,14 @@ impl ShortcutAction for TranscribeAction {}error!("Transcription failed: {}", err);- // Surface the failure to the UI (toast). The full- // message is also in handy.log via the line above.- let _ = ah.emit("transcription-error", err.to_string());+ notices::raise(+ &ah,+ Notice::new(+ NoticeCode::TranscriptionFailed,+ NoticeSource::Dictation,+ )+ .with_detail(err.to_string()),+ );// Save entry with empty text so user can retryif wav_saved {if let Err(save_err) = hm.save_entry(@@ -909,7 +965,6 @@ impl ShortcutAction for TranscribeAction {error!("Failed to save failed history entry: {}", save_err);}}- utils::hide_recording_overlay(&ah);set_tray_state(&ah, TrayIconState::Idle);emit_transcription_complete(&ah,@@ -1003,15 +1058,93 @@ pub static ACTION_MAP: Lazy<HashMap<String, Arc<dyn ShortcutAction>>> = Lazy::nemod tests {use super::{complete_unless_cancelled, is_blank_transcription, non_blank_post_processed_text,- should_use_streaming_overlay, strip_invisible_chars, strip_think_block,+ post_process_transcription, should_use_streaming_overlay, strip_invisible_chars,+ strip_think_block, PostProcessOutcome,};- use crate::settings::OverlayStyle;+ use crate::settings::{get_default_settings, AppSettings, OverlayStyle};use std::future;+ use std::io::{Read, Write};+ use std::net::TcpListener;use std::sync::atomic::{AtomicBool, Ordering};use std::sync::Arc;use std::thread;use std::time::Duration;+ /// Settings that run unstructured post-processing against `base_url`.+ fn post_process_settings(base_url: &str) -> AppSettings {+ let mut settings = get_default_settings();+ let provider = settings+ .post_process_providers+ .iter_mut()+ .find(|provider| provider.id == settings.post_process_provider_id)+ .expect("the default provider exists");+ provider.base_url = base_url.to_string();+ provider.supports_structured_output = false;+ let provider_id = provider.id.clone();+ settings+ .post_process_models+ .insert(provider_id, "model".to_string());+ settings.post_process_selected_prompt_id =+ settings.post_process_prompts.first().map(|p| p.id.clone());+ settings+ }++ /// Answers one chat completion request with `body`, and returns its URL.+ fn serve_once(body: &'static str) -> String {+ let listener = TcpListener::bind("127.0.0.1:0").unwrap();+ let address = listener.local_addr().unwrap();+ thread::spawn(move || {+ let (mut stream, _) = listener.accept().unwrap();+ let mut request = [0; 8192];+ let _ = stream.read(&mut request);+ let response = format!(+ "HTTP/1.1 200 OK\r\ncontent-type: application/json\r\ncontent-length: {}\r\nconnection: close\r\n\r\n{}",+ body.len(),+ body+ );+ stream.write_all(response.as_bytes()).unwrap();+ });+ format!("http://{address}")+ }++ fn run_post_process(settings: &AppSettings, transcription: &str) -> PostProcessOutcome {+ tauri::async_runtime::block_on(post_process_transcription(settings, transcription))+ }++ #[test]+ fn blank_speech_is_skipped_but_missing_setup_failed() {+ let settings = post_process_settings("http://127.0.0.1:1");+ assert_eq!(+ run_post_process(&settings, " "),+ PostProcessOutcome::Skipped+ );++ let mut settings = post_process_settings("http://127.0.0.1:1");+ settings.post_process_models.clear();+ assert_eq!(+ run_post_process(&settings, "hello"),+ PostProcessOutcome::Failed+ );+ }++ #[test]+ fn a_post_processing_reply_is_done() {+ let url = serve_once(r#"{"choices":[{"message":{"content":"polished"}}]}"#);+ assert_eq!(+ run_post_process(&post_process_settings(&url), "hello"),+ PostProcessOutcome::Done("polished".to_string())+ );+ }++ #[test]+ fn a_post_processing_reply_with_no_content_failed() {+ let url = serve_once(r#"{"choices":[]}"#);+ assert_eq!(+ run_post_process(&post_process_settings(&url), "hello"),+ PostProcessOutcome::Failed+ );+ }+#[test]fn blank_transcription_is_detected() {assert!(is_blank_transcription(""));diff --git a/src-tauri/src/commands/models.rs b/src-tauri/src/commands/models.rsindex 4387846d..a0b806e1 100644--- a/src-tauri/src/commands/models.rs+++ b/src-tauri/src/commands/models.rs@@ -1,5 +1,6 @@use crate::managers::model::{ModelInfo, ModelManager, RetiredModel, LANGUAGE_DETECTOR_ID};use crate::managers::transcription::{ModelStateEvent, TranscriptionManager};+use crate::notices::{self, NoticeSource};use crate::settings::{get_settings, write_settings, ModelUnloadTimeout};use log::error;use std::sync::Arc;@@ -49,8 +50,8 @@ pub async fn download_model(.map_err(|e| e.to_string());if let Err(ref error) = result {- // Log as well as emit: the toast is transient, and failed downloads have- // historically been undiagnosable because logs showed nothing (#1579).+ // Log as well as emit: failed downloads have historically been+ // undiagnosable because logs showed nothing (#1579).error!("Model download failed for {}: {}", model_id, error);let _ = app_handle.emit("model-download-failed",@@ -135,7 +136,7 @@ pub async fn delete_model(}model_manager.delete_model(&model_id).map_err(|e| {- // The UI only shows a generic failure toast, so the cause has to be logged.+ // The UI only shows a generic failure message, so the cause has to be logged.error!("Model delete failed for {}: {}", model_id, e);e.to_string()})@@ -202,6 +203,10 @@ pub fn switch_active_model(app: &AppHandle, model_id: &str) -> Result<(), String// Load the model. On failure, revert the persisted selection.if let Err(e) = transcription_manager.load_model(model_id) {+ notices::raise(+ app,+ transcription_manager.model_load_notice(model_id, &e, NoticeSource::Model),+ );let mut settings = get_settings(app);settings.selected_model = old_model;write_settings(app, settings);diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 480fdc22..830ab627 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -16,6 +16,7 @@ mod language_detection;mod llm_client;mod managers;mod memory;+mod notices;mod overlay;mod paste_tx;pub mod portable;@@ -291,6 +292,9 @@ fn initialize_core_logic(app_handle: &AppHandle) {// Full explanation lives in the settings-window bannershow_main_window(app);}+ "notice" => {+ show_main_window(app);+ }"check_updates" => {let settings = settings::get_settings(app);if settings::update_checks_effectively_enabled(&settings) {@@ -785,6 +789,9 @@ pub fn run(cli_args: CliArgs) {commands::history::update_history_limit,commands::history::update_recording_retention_period,helpers::clamshell::is_laptop,+ notices::get_active_notices,+ notices::dismiss_notice,+ notices::dismiss_overlay_notice,]).events(collect_events![managers::history::HistoryUpdatePayload,@@ -793,6 +800,7 @@ pub fn run(cli_args: CliArgs) {managers::transcription::StreamPhaseEvent,transcription_coordinator::RecordingStateEvent,actions::TranscriptionCompleteEvent,+ notices::NoticesChanged,]);#[cfg(debug_assertions)] // <- Only export on non-release builds@@ -911,6 +919,7 @@ pub fn run(cli_args: CliArgs) {Some(vec![]),)).manage(cli_args.clone())+ .manage(notices::NoticeStore::default()).setup(move |app| {#[cfg(target_os = "windows")]log::info!(diff --git a/src-tauri/src/managers/audio.rs b/src-tauri/src/managers/audio.rsindex 6137a006..482ce3cc 100644--- a/src-tauri/src/managers/audio.rs+++ b/src-tauri/src/managers/audio.rs@@ -8,6 +8,7 @@ use crate::audio_toolkit::{};use crate::helpers::clamshell;use crate::managers::transcription::StreamRouter;+use crate::notices::NoticeCode;use crate::settings::{get_settings, write_settings, AppSettings, VadBackend};use crate::utils;use handy_recorder::{Channels, EndReason, ErrorKind, Recorder, RecorderConfig, StartError};@@ -304,18 +305,17 @@ impl OpenMicrophone {}}-/// The `recording-error` event's `error_type` for a recording that couldn't-/// start.-pub fn recording_error_type(error: &anyhow::Error) -> &'static str {+/// The notice for a recording that couldn't start.+pub fn recording_notice_code(error: &anyhow::Error) -> NoticeCode {match error.downcast_ref::<handy_recorder::Error>().map(handy_recorder::Error::kind){- Some(ErrorKind::PermissionDenied) => "microphone_permission_denied",+ Some(ErrorKind::PermissionDenied) => NoticeCode::MicPermissionDenied,// A missing selected microphone falls back to the default, so this// means there is no input device at all.- Some(ErrorKind::DeviceUnavailable) => "no_input_device",- _ => "unknown",+ Some(ErrorKind::DeviceUnavailable) => NoticeCode::NoMicrophone,+ _ => NoticeCode::RecordingFailed,}}@@ -1337,14 +1337,14 @@ mod tests {.map(handy_recorder::Error::kind),Some(ErrorKind::UnsupportedFormat));- assert_eq!(recording_error_type(&wrapped), "unknown");+ assert_eq!(recording_notice_code(&wrapped), NoticeCode::RecordingFailed);}#[test]fn errors_from_outside_the_recorder_are_unknown() {assert_eq!(- recording_error_type(&anyhow::anyhow!("Already recording")),- "unknown"+ recording_notice_code(&anyhow::anyhow!("Already recording")),+ NoticeCode::RecordingFailed);}diff --git a/src-tauri/src/managers/transcription.rs b/src-tauri/src/managers/transcription.rsindex b3a40c09..e00c8541 100644--- a/src-tauri/src/managers/transcription.rs+++ b/src-tauri/src/managers/transcription.rs@@ -14,6 +14,8 @@ use crate::language_detection::{};use crate::managers::audio::{create_smoothed_detector, AudioRecordingManager};use crate::managers::model::ModelManager;+use crate::notices::{self, Notice, NoticeCode, NoticeSource};+use crate::overlay;use crate::settings::{get_settings, AppSettings, ChineseScript, ModelUnloadTimeout, TranscribeAcceleratorSetting,};@@ -622,7 +624,8 @@ impl TranscriptionManager {device,}).map_err(|e| {- let error_msg = format!("Failed to load model {}: {}", model_id, e);+ // The worker's error already says it failed to load.+ let error_msg = e.to_string();emit_loading_failed(&error_msg);anyhow::anyhow!(error_msg)})?;@@ -673,6 +676,10 @@ impl TranscriptionManager {error: None,},);+ // Only this code: the source's other notices aren't about the model.+ for source in [NoticeSource::Dictation, NoticeSource::Model] {+ notices::clear_matching(&self.app_handle, source, Some(NoticeCode::ModelLoadFailed));+ }let load_duration = load_start.elapsed();debug!(@@ -683,16 +690,18 @@ impl TranscriptionManager {Ok(())}- /// Kicks off the model loading in a background thread if it's not already loaded- pub fn initiate_model_load(&self) {+ /// Starts loading the model in the background unless it's loaded or+ /// loading, and returns whether it did. Only a dictation sets+ /// `raise_notice`: file jobs and Settings report their own failures.+ pub fn initiate_model_load(&self, raise_notice: bool) -> bool {let mut is_loading = self.is_loading.lock().unwrap();if *is_loading {- return;+ return false;}let reload_pending = self.reload_model_on_next_use.load(Ordering::Acquire);if !reload_pending && self.is_model_loaded() {- return;+ return false;}*is_loading = true;@@ -705,12 +714,41 @@ impl TranscriptionManager {}let settings = get_settings(&self_clone.app_handle);if let Err(e) = self_clone.load_model(&settings.selected_model) {- error!("Failed to load model: {}", e);+ error!("Failed to load model {}: {}", settings.selected_model, e);+ if raise_notice {+ self_clone.raise_model_load_failed(&settings.selected_model, &e);+ }}let mut is_loading = self_clone.is_loading.lock().unwrap();*is_loading = false;self_clone.loading_condvar.notify_all();});+ true+ }++ /// Ends when a model next loads.+ pub fn model_load_notice(+ &self,+ model_id: &str,+ error: &anyhow::Error,+ source: NoticeSource,+ ) -> Notice {+ let detail = match self.model_manager.get_model_info(model_id) {+ Some(model) => format!("{}: {error}", model.name),+ None => error.to_string(),+ };+ Notice::new(NoticeCode::ModelLoadFailed, source).with_detail(detail)+ }++ pub fn raise_model_load_failed(&self, model_id: &str, error: &anyhow::Error) {+ let notice = self.model_load_notice(model_id, error, NoticeSource::Dictation);+ // A recording in progress keeps the overlay; its transcription fails+ // next and reports that itself.+ if overlay::is_session_showing() {+ notices::raise_without_overlay(&self.app_handle, notice);+ } else {+ notices::raise(&self.app_handle, notice);+ }}pub fn get_current_model(&self) -> Option<String> {diff --git a/src-tauri/src/managers/transcription/job.rs b/src-tauri/src/managers/transcription/job.rsindex d7a62ca6..5649f436 100644--- a/src-tauri/src/managers/transcription/job.rs+++ b/src-tauri/src/managers/transcription/job.rs@@ -50,7 +50,7 @@ impl TranscriptionManager {}self.touch_activity();- self.initiate_model_load();+ self.initiate_model_load(false);// Read once: the model can't change until the job ends.let BatchContext {settings,diff --git a/src-tauri/src/managers/transcription_jobs.rs b/src-tauri/src/managers/transcription_jobs.rsindex 303b49bf..df67bc34 100644--- a/src-tauri/src/managers/transcription_jobs.rs+++ b/src-tauri/src/managers/transcription_jobs.rs@@ -22,6 +22,7 @@ use crate::managers::history::{HistoryEntry, HistoryManager};use crate::managers::transcription::{panic_payload_message, ChunkControl, Transcription, TranscriptionManager,};+use crate::notices::{self, Notice, NoticeCode, NoticeSource};/// How often a waiting chunk checks whether dictation has finished.const DICTATION_POLL: Duration = Duration::from_millis(200);@@ -269,17 +270,35 @@ impl TranscriptionJobManager {let status = match result {Err(e) if !cancelled.load(Ordering::Acquire) => {warn!("Transcription of history entry {} failed: {}", entry_id, e);+ notices::raise(+ &self.app,+ Notice::new(NoticeCode::FileTranscriptionFailed, NoticeSource::File)+ .with_detail(e.to_string()),+ );TranscriptionJobStatus::Failed {error: e.to_string(),}}+ Ok(JobEnd::Finished {+ post_process_failed,+ }) => {+ // Clear first, so the warning about this job survives it.+ notices::clear(&self.app, NoticeSource::File);+ if post_process_failed {+ notices::raise(+ &self.app,+ Notice::new(NoticeCode::FilePostProcessFailed, NoticeSource::File),+ );+ }+ TranscriptionJobStatus::Finished+ }_ => TranscriptionJobStatus::Finished,};self.emit(entry_id, status);}}- fn run_job(&self, entry_id: i64, cancelled: &AtomicBool) -> Result<()> {+ fn run_job(&self, entry_id: i64, cancelled: &AtomicBool) -> Result<JobEnd> {let hm = Arc::clone(&self.app.state::<Arc<HistoryManager>>());let tm = Arc::clone(&self.app.state::<Arc<TranscriptionManager>>());let entry = tauri::async_runtime::block_on(hm.get_entry_by_id(entry_id))?@@ -298,13 +317,13 @@ impl TranscriptionJobManager {};let Some(Transcription { text, language }) = tm.transcribe_in_chunks(samples, &control)?else {- return Ok(());+ return Ok(JobEnd::Cancelled);};if text.is_empty() {return Err(anyhow!("Recording contains no speech"));}if cancelled.load(Ordering::Acquire) {- return Ok(());+ return Ok(JobEnd::Cancelled);}let processed = tauri::async_runtime::block_on(process_transcription_output(@@ -314,8 +333,9 @@ impl TranscriptionJobManager {));// Post-processing can take a while; a cancel during it still wins.if cancelled.load(Ordering::Acquire) {- return Ok(());+ return Ok(JobEnd::Cancelled);}+ let post_process_failed = processed.post_process_failed;hm.update_transcription(entry.id,text,@@ -323,10 +343,18 @@ impl TranscriptionJobManager {processed.post_process_prompt,language,)?;- Ok(())+ Ok(JobEnd::Finished {+ post_process_failed,+ })}}+/// A cancelled job changes no notices.+enum JobEnd {+ Finished { post_process_failed: bool },+ Cancelled,+}+/// Best-effort cleanup; the caller is already reporting the failure.fn remove_recording(path: &Path) {if let Err(e) = std::fs::remove_file(path) {diff --git a/src-tauri/src/notices.rs b/src-tauri/src/notices.rsnew file mode 100644index 00000000..58d33122--- /dev/null+++ b/src-tauri/src/notices.rs@@ -0,0 +1,289 @@+//! Notices: how Handy reports a failure that happens in the background.+//! [`raise`] is the one way to do it; see "Error notices" in `AGENTS.md` for+//! how to add one.+//!+//! A dictation notice replaces the overlay, so a failure site calls [`raise`]+//! instead of hiding it. If another session owns the overlay by then, call+//! [`raise_without_overlay`].++use crate::overlay;+use crate::tray;+use crate::tray_i18n::TrayStrings;+use log::warn;+use serde::{Deserialize, Serialize};+use specta::Type;+use std::sync::{Mutex, MutexGuard, PoisonError};+use tauri::{AppHandle, Manager, State};+use tauri_specta::Event;++#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+#[serde(rename_all = "lowercase")]+pub enum NoticeLevel {+ /// Nothing came out, or Handy can't do its job.+ Error,+ /// The user got a result, but not the one they set up.+ Warning,+}++/// Each source has one slot in the store. Only dictation notices use the+/// overlay: a file job finishes while the user is doing something else, and+/// `Model` is a switch the user made in Settings or the tray.+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+#[serde(rename_all = "lowercase")]+pub enum NoticeSource {+ Dictation,+ File,+ Model,+}++/// The frontend maps each code to its text in `src/lib/notices.ts`.+#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+pub enum NoticeCode {+ TranscriptionFailed,+ PasteFailed,+ NoMicrophone,+ MicPermissionDenied,+ RecordingFailed,+ ModelLoadFailed,+ PostProcessFailed,+ FileTranscriptionFailed,+ FilePostProcessFailed,+}++impl NoticeCode {+ fn level(self) -> NoticeLevel {+ match self {+ Self::TranscriptionFailed+ | Self::PasteFailed+ | Self::NoMicrophone+ | Self::MicPermissionDenied+ | Self::RecordingFailed+ | Self::ModelLoadFailed+ | Self::FileTranscriptionFailed => NoticeLevel::Error,+ Self::PostProcessFailed | Self::FilePostProcessFailed => NoticeLevel::Warning,+ }+ }++ /// The same `errors.*Title` string the frontend shows (see `build.rs`).+ pub fn tray_title(self, strings: &TrayStrings) -> &str {+ match self {+ Self::TranscriptionFailed => &strings.transcription_failed_title,+ Self::PasteFailed => &strings.paste_failed_title,+ Self::NoMicrophone => &strings.no_input_device_title,+ Self::MicPermissionDenied => &strings.mic_permission_denied_title,+ Self::RecordingFailed => &strings.recording_failed_title,+ Self::ModelLoadFailed => &strings.model_load_failed_title,+ Self::PostProcessFailed => &strings.post_process_failed_title,+ Self::FileTranscriptionFailed => &strings.file_transcription_failed_title,+ Self::FilePostProcessFailed => &strings.file_post_process_failed_title,+ }+ }+}++#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Type)]+pub struct Notice {+ pub code: NoticeCode,+ pub level: NoticeLevel,+ pub source: NoticeSource,+ /// What only Rust knows, such as a model name or a raw error.+ pub detail: Option<String>,+}++impl Notice {+ pub fn new(code: NoticeCode, source: NoticeSource) -> Self {+ Self {+ code,+ level: code.level(),+ source,+ detail: None,+ }+ }++ pub fn with_detail(mut self, detail: impl Into<Option<String>>) -> Self {+ self.detail = detail.into();+ self+ }+}++#[derive(Clone, Debug, Serialize, Deserialize, Type, tauri_specta::Event)]+pub struct NoticesChanged {+ /// Every active notice, newest first.+ pub notices: Vec<Notice>,+ /// `None` when a notice was cleared.+ pub raised: Option<Notice>,+}++/// The active notices, newest first.+#[derive(Default)]+pub struct NoticeStore(Mutex<Vec<Notice>>);++impl NoticeStore {+ fn lock(&self) -> MutexGuard<'_, Vec<Notice>> {+ self.0.lock().unwrap_or_else(PoisonError::into_inner)+ }+}++fn insert(active: &mut Vec<Notice>, notice: Notice) {+ remove(active, notice.source, None);+ active.insert(0, notice);+}++/// Removes the source's notice, if it has `code` when one is given. Returns+/// whether one was removed.+fn remove(active: &mut Vec<Notice>, source: NoticeSource, code: Option<NoticeCode>) -> bool {+ let before = active.len();+ active.retain(|notice| notice.source != source || code.is_some_and(|code| notice.code != code));+ active.len() != before+}++/// The notice the tray shows: the newest at the highest level.+fn headline(active: &[Notice]) -> Option<&Notice> {+ active+ .iter()+ .find(|notice| notice.level == NoticeLevel::Error)+ .or(active.first())+}++/// Sent under the store's lock, so the last event always matches the store.+fn publish(app: &AppHandle, active: &[Notice], raised: Option<Notice>) {+ let event = NoticesChanged {+ notices: active.to_vec(),+ raised,+ };+ if let Err(e) = event.emit(app) {+ warn!("Failed to emit notices-changed: {e}");+ }+}++/// Replaces the source's previous notice. A dictation notice also replaces the+/// overlay.+pub fn raise(app: &AppHandle, notice: Notice) {+ if notice.source == NoticeSource::Dictation {+ overlay::show_overlay_notice(app, ¬ice);+ }+ raise_without_overlay(app, notice);+}++/// [`raise`] for a failure that isn't the session on the overlay, such as a+/// late paste from an earlier one.+pub fn raise_without_overlay(app: &AppHandle, notice: Notice) {+ {+ let store = app.state::<NoticeStore>();+ let mut active = store.lock();+ insert(&mut active, notice.clone());+ publish(app, &active, Some(notice));+ }+ tray::refresh_tray_icon(app);+}++/// Call when `source` next succeeds, before raising anything about that run.+pub fn clear(app: &AppHandle, source: NoticeSource) {+ clear_matching(app, source, None);+}++/// Clears the source's notice, but only if it has `code` when one is given.+pub fn clear_matching(app: &AppHandle, source: NoticeSource, code: Option<NoticeCode>) {+ let cleared = {+ let store = app.state::<NoticeStore>();+ let mut active = store.lock();+ let cleared = remove(&mut active, source, code);+ if cleared {+ publish(app, &active, None);+ }+ cleared+ };+ if cleared {+ tray::refresh_tray_icon(app);+ }+}++pub fn tray_headline(app: &AppHandle) -> Option<Notice> {+ let store = app.state::<NoticeStore>();+ let active = store.lock();+ headline(&active).cloned()+}++#[tauri::command]+#[specta::specta]+pub fn get_active_notices(store: State<'_, NoticeStore>) -> Vec<Notice> {+ store.lock().clone()+}++/// The user is done with a notice. Matching the code leaves alone a newer+/// notice that replaced it after the user's view was drawn.+#[tauri::command]+#[specta::specta]+pub fn dismiss_notice(app: AppHandle, source: NoticeSource, code: NoticeCode) {+ clear_matching(&app, source, Some(code));+}++/// Hides the overlay notice; it stays active in the tray and footer.+#[tauri::command]+#[specta::specta]+pub fn dismiss_overlay_notice(app: AppHandle) {+ overlay::dismiss_overlay_notice(&app);+}++#[cfg(test)]+mod tests {+ use super::*;++ fn dictation(code: NoticeCode) -> Notice {+ Notice::new(code, NoticeSource::Dictation)+ }++ fn file(code: NoticeCode) -> Notice {+ Notice::new(code, NoticeSource::File)+ }++ #[test]+ fn each_source_keeps_only_its_newest_notice_newest_first() {+ let mut active = Vec::new();+ insert(&mut active, dictation(NoticeCode::PasteFailed));+ insert(&mut active, file(NoticeCode::FileTranscriptionFailed));+ insert(&mut active, dictation(NoticeCode::PostProcessFailed));++ assert_eq!(+ active,+ vec![+ dictation(NoticeCode::PostProcessFailed),+ file(NoticeCode::FileTranscriptionFailed),+ ]+ );+ }++ #[test]+ fn clearing_removes_only_that_source() {+ let mut active = vec![file(NoticeCode::FileTranscriptionFailed)];++ assert!(!remove(&mut active, NoticeSource::Dictation, None));+ assert!(remove(&mut active, NoticeSource::File, None));+ assert!(active.is_empty());+ }++ #[test]+ fn dismissing_spares_a_newer_notice_from_the_same_source() {+ let mut active = vec![dictation(NoticeCode::PasteFailed)];++ let stale = Some(NoticeCode::PostProcessFailed);+ assert!(!remove(&mut active, NoticeSource::Dictation, stale));+ assert_eq!(active, vec![dictation(NoticeCode::PasteFailed)]);++ let shown = Some(NoticeCode::PasteFailed);+ assert!(remove(&mut active, NoticeSource::Dictation, shown));+ assert!(active.is_empty());+ }++ #[test]+ fn headline_prefers_an_older_error_to_a_newer_warning() {+ let mut active = Vec::new();+ assert_eq!(headline(&active), None);++ insert(&mut active, file(NoticeCode::FileTranscriptionFailed));+ insert(&mut active, dictation(NoticeCode::PostProcessFailed));+ assert_eq!(+ headline(&active),+ Some(&file(NoticeCode::FileTranscriptionFailed))+ );+ }+}diff --git a/src-tauri/src/overlay.rs b/src-tauri/src/overlay.rsindex 292acce3..945a878d 100644--- a/src-tauri/src/overlay.rs+++ b/src-tauri/src/overlay.rs@@ -1,8 +1,9 @@use crate::input;+use crate::notices::Notice;use crate::settings;use crate::settings::{OverlayPosition, OverlayStyle};use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};-use std::time::{SystemTime, UNIX_EPOCH};+use std::time::{Duration, SystemTime, UNIX_EPOCH};use tauri::{AppHandle, Emitter, Manager, PhysicalPosition, PhysicalSize};#[cfg(not(target_os = "macos"))]@@ -45,17 +46,38 @@ tauri_panel! {//// Compact overlay (Minimal / transcribing / processing): the 40h pill animates// width from 172 (--ov-rest-w) to 216 (--ov-work-w) and expands from center, so-// the window must fit the widest state plus a little slack.-const OVERLAY_WIDTH: f64 = 256.0;+// the window must fit the widest state plus a little slack. The longest notice+// titles need nearly all of it.+const OVERLAY_WIDTH: f64 = 266.0;const OVERLAY_HEIGHT: f64 = 50.0;// Actual is 394x118, just a little extraconst OVERLAY_STREAM_WIDTH: f64 = 400.0;const OVERLAY_STREAM_HEIGHT: f64 = 120.0;+const NOTICE_STATE: &str = "notice";+const LIVE_NOTICE_STATE: &str = "live_notice";++/// How long a notice holds before the overlay fades it.+const NOTICE_HOLD: Duration = Duration::from_secs(4);++fn is_live_state(state: &str) -> bool {+ state == "streaming" || state == LIVE_NOTICE_STATE+}++/// The notice form that matches the session it replaces, so the window never+/// changes size for one. A notice with no session gets the compact form.+fn notice_state(session_is_live: bool) -> &'static str {+ if session_is_live {+ LIVE_NOTICE_STATE+ } else {+ NOTICE_STATE+ }+}+/// Overlay window size (logical) for a given UI state.fn overlay_dimensions(state: &str) -> (f64, f64) {- if state == "streaming" {+ if is_live_state(state) {(OVERLAY_STREAM_WIDTH, OVERLAY_STREAM_HEIGHT)} else {(OVERLAY_WIDTH, OVERLAY_HEIGHT)@@ -493,6 +515,8 @@ fn show_overlay_state(app_handle: &AppHandle, state: &str) {if settings.overlay_style == OverlayStyle::None {return;}+ OVERLAY_SESSION_SHOWING.store(true, Ordering::SeqCst);+ OVERLAY_SESSION_LIVE.store(is_live_state(state), Ordering::SeqCst);// The rest queries monitors and the cursor and mutates window geometry. On// Linux the monitor/cursor lookups hit GDK/Xlib on the process's shared X11@@ -538,7 +562,7 @@ fn show_overlay_state_on_main(app_handle: &AppHandle, state: &str) {let _ =overlay_window.set_size(tauri::Size::Logical(tauri::LogicalSize { width, height }));#[cfg(target_os = "windows")]- WINDOWS_OVERLAY_IS_STREAMING.store(state == "streaming", Ordering::Relaxed);+ WINDOWS_OVERLAY_IS_STREAMING.store(is_live_state(state), Ordering::Relaxed);let size_elapsed = size_started.elapsed();let pos_started = std::time::Instant::now();@@ -630,6 +654,47 @@ pub fn show_processing_overlay(app_handle: &AppHandle) {show_overlay_state(app_handle, "processing");}+/// Shows `notice` in place of the session's overlay and fades it after+/// [`NOTICE_HOLD`] unless something newer has shown. With the overlay off, it+/// still hides the session's overlay in case the setting changed mid-session.+pub fn show_overlay_notice(app_handle: &AppHandle, notice: &Notice) {+ if !OVERLAY_ENABLED.load(Ordering::Relaxed) {+ hide_recording_overlay(app_handle);+ return;+ }+ OVERLAY_SESSION_SHOWING.store(false, Ordering::SeqCst);++ let state = notice_state(OVERLAY_SESSION_LIVE.load(Ordering::SeqCst));+ let handle = app_handle.clone();+ let notice = notice.clone();+ // On the main thread for the same reason as show_overlay_state.+ let _ = app_handle.run_on_main_thread(move || {+ let _ = handle.emit_to("recording_overlay", "overlay-notice", notice);+ show_overlay_state_on_main(&handle, state);++ let generation = OVERLAY_SHOW_GENERATION.load(Ordering::SeqCst);+ OVERLAY_NOTICE_GENERATION.store(generation, Ordering::SeqCst);+ std::thread::spawn(move || {+ std::thread::sleep(NOTICE_HOLD);+ if OVERLAY_SHOW_GENERATION.load(Ordering::SeqCst) == generation {+ hide_recording_overlay(&handle);+ }+ });+ });+}++/// Hides the notice early, unless a new session has replaced it.+pub fn dismiss_overlay_notice(app_handle: &AppHandle) {+ let shown = OVERLAY_SHOW_GENERATION.load(Ordering::SeqCst);+ if OVERLAY_NOTICE_GENERATION.load(Ordering::SeqCst) == shown {+ hide_recording_overlay(app_handle);+ }+}++pub fn is_session_showing() -> bool {+ OVERLAY_SESSION_SHOWING.load(Ordering::SeqCst)+}+/// Updates the overlay window position based on current settingspub fn update_overlay_position(app_handle: &AppHandle) {// Positioning queries monitors/cursor (GDK/Xlib on Linux) and moves the@@ -685,8 +750,21 @@ fn update_overlay_position_on_main(app_handle: &AppHandle) {/// the instant it drained, well inside the 300 ms hide delay.static OVERLAY_SHOW_GENERATION: AtomicU64 = AtomicU64::new(0);+/// The show generation of the latest notice; it's on screen while this matches+/// `OVERLAY_SHOW_GENERATION`.+static OVERLAY_NOTICE_GENERATION: AtomicU64 = AtomicU64::new(u64::MAX);++/// Set while the overlay shows a recording or transcribing session.+static OVERLAY_SESSION_SHOWING: AtomicBool = AtomicBool::new(false);++/// Whether the overlay's current session uses the Live window. The style alone+/// can't say: a model that doesn't stream gets the compact pill under Live too.+static OVERLAY_SESSION_LIVE: AtomicBool = AtomicBool::new(false);+/// Hides the recording overlay window with fade-out animationpub fn hide_recording_overlay(app_handle: &AppHandle) {+ OVERLAY_SESSION_SHOWING.store(false, Ordering::SeqCst);+ OVERLAY_SESSION_LIVE.store(false, Ordering::SeqCst);// Always hide the overlay regardless of settings - if setting was changed while recording,// we still want to hide it properlyif let Some(overlay_window) = app_handle.get_webview_window("recording_overlay") {@@ -770,6 +848,17 @@ pub fn emit_levels(app_handle: &AppHandle, levels: &[f32]) {mod tests {use super::*;+ #[test]+ fn a_notice_keeps_the_size_of_its_session() {+ for (session, live) in [("streaming", true), ("recording", false)] {+ assert_eq!(+ overlay_dimensions(notice_state(is_live_state(session))),+ overlay_dimensions(session)+ );+ assert_eq!(is_live_state(session), live);+ }+ }+#[test]fn monitor_hit_test_uses_half_open_physical_bounds() {let position = PhysicalPosition::new(-2560, -200);@@ -824,7 +913,7 @@ mod tests {OVERLAY_HEIGHT,OverlayPosition::Bottom,),- (3648, 2025, 384, 75)+ (3641, 2025, 399, 75));assert_eq!(windows_overlay_bounds(@@ -836,7 +925,7 @@ mod tests {OVERLAY_HEIGHT,OverlayPosition::Top,),- (3648, 6, 384, 75)+ (3641, 6, 399, 75));}diff --git a/src-tauri/src/tray.rs b/src-tauri/src/tray.rsindex a5c8320f..27ee618c 100644--- a/src-tauri/src/tray.rs+++ b/src-tauri/src/tray.rs@@ -23,6 +23,7 @@use crate::managers::history::{HistoryEntry, HistoryManager};use crate::managers::model::ModelManager;use crate::managers::transcription::TranscriptionManager;+use crate::notices::{self, NoticeCode};use crate::settings;use crate::tray_i18n::get_tray_translations;use log::{debug, error, info, trace, warn};@@ -59,7 +60,10 @@ struct MenuInputs {/// A background transcription holds the model, so it can't be switched/// or unloaded.models_locked: bool,- warning: bool,+ /// macOS Secure Input is blocking keyboard shortcuts.+ secure_input: bool,+ /// The notice to show as a menu line.+ notice: Option<NoticeCode>,model_loaded: bool,selected_model: String,/// `(id, name)` of downloaded models, sorted by name.@@ -188,17 +192,15 @@ fn windows_taskbar_theme() -> Option<AppTheme> {/// Gets the appropriate icon path for the given theme and state.///-/// `warning` overlays a badge on the idle icon while keyboard shortcuts are-/// blocked (macOS Secure Input); recording/transcribing states keep their-/// normal icons so in-flight activity stays recognizable.-pub fn get_icon_path(theme: AppTheme, state: TrayIconState, warning: bool) -> &'static str {- if warning && state == TrayIconState::Idle {+/// `badge` marks the idle icon while something needs attention (a notice, or+/// macOS Secure Input). Busy states keep their normal icons. The menu line says+/// what's wrong, so the badge doesn't vary by level.+pub fn get_icon_path(theme: AppTheme, state: TrayIconState, badge: bool) -> &'static str {+ if badge && state == TrayIconState::Idle {return match theme {AppTheme::Dark => "resources/tray_idle_warning.png",AppTheme::Light => "resources/tray_idle_warning_dark.png",- // Linux never sets the warning flag (Secure Input is macOS-only),- // but fall back to the normal icon just in case.- AppTheme::Colored => "resources/handy.png",+ AppTheme::Colored => "resources/handy_warning.png",};}match (theme, state) {@@ -230,7 +232,8 @@ pub fn dictation_in_progress(app: &AppHandle) -> bool {}/// Re-syncs the tray after something other than the recording state changed-/// (theme, Secure Input warning). The recording state itself is preserved.+/// (theme, Secure Input warning, notices). The recording state itself is+/// preserved.pub fn refresh_tray_icon(app: &AppHandle) {sync_tray(app);}@@ -322,7 +325,9 @@ fn sync_tray_with(app: &AppHandle, update: impl FnOnce(&mut TrayInner)) {fn compute_desired(app: &AppHandle, icon_state: TrayIconState) -> TrayDesired {let settings = settings::get_settings(app);let theme = get_current_theme(app);- let warning = crate::secure_input::tray_warning_active(app);+ let secure_input = crate::secure_input::tray_warning_active(app);+ let notice = notices::tray_headline(app);+ let badge = secure_input || notice.is_some();let tm = app.state::<Arc<TranscriptionManager>>();let model_loaded = tm.is_model_loaded();let models_locked = tm.job_active();@@ -337,11 +342,12 @@ fn compute_desired(app: &AppHandle, icon_state: TrayIconState) -> TrayDesired {downloaded_models.sort_by(|a, b| a.1.cmp(&b.1));TrayDesired {- icon_path: get_icon_path(theme, icon_state, warning),+ icon_path: get_icon_path(theme, icon_state, badge),menu: MenuInputs {busy: icon_state.is_busy(),models_locked,- warning,+ secure_input,+ notice: notice.map(|notice| notice.code),model_loaded,selected_model: settings.selected_model,downloaded_models,@@ -475,7 +481,7 @@ fn build_menu(app: &AppHandle, inputs: &MenuInputs) -> tauri::Result<(Menu<tauri// where the full warning banner explains the situation. Locales that// haven't translated the key yet get the English string rather than a// blank menu item (build.rs emits "" for missing keys).- let secure_input_warning = if inputs.warning {+ let secure_input_warning = if inputs.secure_input {let label = if strings.secure_input_warning.is_empty() {get_tray_translations(Some("en".to_string())).secure_input_warning} else {@@ -492,6 +498,15 @@ fn build_menu(app: &AppHandle, inputs: &MenuInputs) -> tauri::Result<(Menu<tauriNone};+ // Clicking opens the window, where the footer has the details.+ let notice_line = inputs+ .notice+ .map(|code| {+ let label = code.tray_title(&strings);+ MenuItem::with_id(app, "notice", label, true, None::<&str>)+ })+ .transpose()?;+// Platform-specific accelerators#[cfg(target_os = "macos")]let (settings_accelerator, quit_accelerator) = (Some("Cmd+,"), Some("Cmd+Q"));@@ -596,14 +611,22 @@ fn build_menu(app: &AppHandle, inputs: &MenuInputs) -> tauri::Result<(Menu<taurimenu.remove(&check_updates_i)?;}- // Both layouts start with [version, separator, ...]; slot the warning in- // right below the version line so it's the first actionable thing seen.+ // Both layouts start with [version, separator, ...]; slot the warnings in+ // right below the version line so they're the first actionable thing seen.let mut tooltip = version_label;+ let mut position = 2;if let Some(warning_item) = secure_input_warning {- menu.insert(&warning_item, 2)?;- menu.insert(&separator()?, 3)?;+ menu.insert(&warning_item, position)?;+ position += 1;tooltip = format!("{} — {}", tooltip, warning_item.text().unwrap_or_default());}+ if let Some(notice_item) = notice_line {+ menu.insert(¬ice_item, position)?;+ position += 1;+ }+ if position > 2 {+ menu.insert(&separator()?, position)?;+ }Ok((menu, tooltip))}@@ -682,7 +705,10 @@ pub fn copy_last_transcript(app: &AppHandle) {#[cfg(test)]mod tests {- use super::{last_transcript_text, load_tray_icon, MenuInputs, TrayDesired, TrayIconState};+ use super::{+ get_icon_path, last_transcript_text, load_tray_icon, AppTheme, MenuInputs, TrayDesired,+ TrayIconState,+ };use crate::managers::history::HistoryEntry;fn build_entry(transcription: &str, post_processed: Option<&str>) -> HistoryEntry {@@ -706,7 +732,8 @@ mod tests {MenuInputs {busy,models_locked: false,- warning: false,+ secure_input: false,+ notice: None,model_loaded: true,selected_model: "small".to_string(),downloaded_models: vec![("small".to_string(), "Small".to_string())],@@ -755,6 +782,23 @@ mod tests {assert_eq!(recording.menu, transcribing.menu);}+ #[test]+ fn the_badge_shows_at_idle_only_and_exists() {+ let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"));+ for theme in [AppTheme::Dark, AppTheme::Light, AppTheme::Colored] {+ let badged = get_icon_path(theme.clone(), TrayIconState::Idle, true);+ assert_ne!(+ badged,+ get_icon_path(theme.clone(), TrayIconState::Idle, false)+ );+ assert!(root.join(badged).is_file(), "{badged} is missing");+ assert_eq!(+ get_icon_path(theme.clone(), TrayIconState::Recording, true),+ get_icon_path(theme, TrayIconState::Recording, false)+ );+ }+ }+#[test]fn idle_and_busy_menus_differ() {assert_ne!(inputs(false), inputs(true));diff --git a/src-tauri/src/tray_i18n.rs b/src-tauri/src/tray_i18n.rsindex ff5f2d88..c1127cc4 100644--- a/src-tauri/src/tray_i18n.rs+++ b/src-tauri/src/tray_i18n.rs@@ -4,7 +4,8 @@//! frontend locale files (src/i18n/locales/*/translation.json).//!//! The English translation.json is the single source of truth:-//! - TrayStrings struct fields are derived from the English "tray" keys+//! - TrayStrings struct fields are derived from the English "tray" keys, plus+//! the notice titles (see `build.rs`)//! - All languages are auto-discovered from the locales directory//!//! To add a new tray menu item:diff --git a/src/App.tsx b/src/App.tsxindex 27f980bd..5d93382d 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -6,15 +6,12 @@ import {useRef,type ReactNode,} from "react";-import { toast, Toaster } from "sonner";import { useTranslation } from "react-i18next";-import { listen } from "@tauri-apps/api/event";import { platform } from "@tauri-apps/plugin-os";import {checkAccessibilityPermission,checkMicrophonePermission,} from "tauri-plugin-macos-permissions-api";-import { ModelStateEvent, RecordingErrorEvent } from "./lib/types/events";import "./App.css";import SecureInputWarning from "./components/SecureInputWarning";import Footer from "./components/footer";@@ -37,6 +34,7 @@ import { useSettings } from "./hooks/useSettings";import { useSettingsStore } from "./stores/settingsStore";import { commands } from "@/bindings";import { deleteRetiredModel } from "@/lib/models/retired";+import { NoticePanel } from "@/components/notices/NoticePanel";import { getLanguageDirection, initializeRTL } from "@/lib/utils/rtl";// flow is first-run onboarding; the rest are single screens for returning users.@@ -151,81 +149,6 @@ function App() {};}, [settings?.debug_mode, updateSetting]);- // Listen for recording errors from the backend and show a toast- useEffect(() => {- const unlisten = listen<RecordingErrorEvent>("recording-error", (event) => {- const { error_type, detail } = event.payload;-- if (error_type === "microphone_permission_denied") {- const currentPlatform = platform();- const platformKey = `errors.micPermissionDenied.${currentPlatform}`;- const description = t(platformKey, {- defaultValue: t("errors.micPermissionDenied.generic"),- });- toast.error(t("errors.micPermissionDeniedTitle"), { description });- } else if (error_type === "no_input_device") {- toast.error(t("errors.noInputDeviceTitle"), {- description: t("errors.noInputDevice"),- });- } else {- toast.error(- t("errors.recordingFailed", { error: detail ?? "Unknown error" }),- );- }- });- return () => {- unlisten.then((fn) => fn());- };- }, [t]);-- // Listen for paste failures and show a toast.- // The technical error detail is logged to handy.log on the Rust side- // (see actions.rs `error!("Failed to paste transcription: ...")`),- // so we show a localized, user-friendly message here instead of the raw error.- useEffect(() => {- const unlisten = listen("paste-error", () => {- toast.error(t("errors.pasteFailedTitle"), {- description: t("errors.pasteFailed"),- });- });- return () => {- unlisten.then((fn) => fn());- };- }, [t]);-- // Listen for transcription failures and show a toast.- // The payload is the backend error message (also logged to handy.log).- useEffect(() => {- const unlisten = listen<string>("transcription-error", (event) => {- toast.error(t("errors.transcriptionFailedTitle"), {- description: event.payload,- });- });- return () => {- unlisten.then((fn) => fn());- };- }, [t]);-- // Listen for model loading failures and show a toast- useEffect(() => {- const unlisten = listen<ModelStateEvent>("model-state-changed", (event) => {- if (event.payload.event_type === "loading_failed") {- toast.error(- t("errors.modelLoadFailed", {- model:- event.payload.model_name || t("errors.modelLoadFailedUnknown"),- }),- {- description: event.payload.error,- },- );- }- });- return () => {- unlisten.then((fn) => fn());- };- }, [t]);-const revealMainWindowForPermissions = async () => {try {await commands.showMainWindowCommand();@@ -324,7 +247,7 @@ function App() {const runModelMigration = async () => {const retired = await commands.getRetiredModels();if (retired.length === 0) {- toast.info(t("settings.debug.modelMigration.noRetired"));+ console.info("Model migration: no old-format models on disk");return;}const selected = settings?.selected_model;@@ -342,36 +265,13 @@ function App() {setOnboardingStep("done");};- // Rendered once around every step below (including onboarding) so- // toast.error() calls surface to the user. sonner renders via a portal, so- // its position in the tree doesn't affect layout. Without this, errors during- // onboarding (e.g. a model download failing because blob.handy.computer is- // unreachable) are silently swallowed and the wizard just appears to "blink".- const toaster = (- <Toaster- theme="system"- toastOptions={{- unstyled: true,- classNames: {- toast:- "bg-background border border-line rounded-lg shadow-lg px-4 py-3 flex items-center gap-3 text-sm",- title: "font-medium",- description: "text-ink-3",- actionButton:- "px-2 py-1 text-xs font-medium rounded-lg border bg-wash border-line hover:bg-logo-primary/20 hover:border-logo-primary cursor-pointer whitespace-nowrap",- },- }}- />- );-// Still checking onboarding statusif (onboardingStep === null) {return null;}- // Select the content for the current step. The Toaster is rendered once, in a- // stable wrapper around this node, so crossing between onboarding steps and- // the main app never remounts it (which would drop any in-flight toast).+ // Select the content for the current step. NoticePanel is rendered once,+ // beside this node, so errors surface on every step, including onboarding.let content: ReactNode;if (onboardingPreview) {// Previews render in the same top-level slot as real onboarding, inert:@@ -458,8 +358,8 @@ function App() {return (<>- {toaster}{content}+ <NoticePanel /></>);}diff --git a/src/bindings.ts b/src/bindings.tsindex 9902fa6a..ec62f99d 100644--- a/src/bindings.ts+++ b/src/bindings.ts@@ -1027,6 +1027,22 @@ async isLaptop() : Promise<Result<boolean, string>> {if(e instanceof Error) throw e;else return { status: "error", error: e as any };}+},+async getActiveNotices() : Promise<Notice[]> {+ return await TAURI_INVOKE("get_active_notices");+},+/**+ * The user is done with a notice. Matching the code leaves alone a newer+ * notice that replaced it after the user's view was drawn.+ */+async dismissNotice(source: NoticeSource, code: NoticeCode) : Promise<void> {+ await TAURI_INVOKE("dismiss_notice", { source, code });+},+/**+ * Hides the overlay notice; it stays active in the tray and footer.+ */+async dismissOverlayNotice() : Promise<void> {+ await TAURI_INVOKE("dismiss_overlay_notice");}}@@ -1035,6 +1051,7 @@ async isLaptop() : Promise<Result<boolean, string>> {export const events = __makeEvents__<{historyUpdatePayload: HistoryUpdatePayload,+noticesChanged: NoticesChanged,recordingStateEvent: RecordingStateEvent,streamPhaseEvent: StreamPhaseEvent,streamTextEvent: StreamTextEvent,@@ -1042,6 +1059,7 @@ transcriptionCompleteEvent: TranscriptionCompleteEvent,transcriptionJob: TranscriptionJob}>({historyUpdatePayload: "history-update-payload",+noticesChanged: "notices-changed",recordingStateEvent: "recording-state-event",streamPhaseEvent: "stream-phase-event",streamTextEvent: "stream-text-event",@@ -1292,6 +1310,39 @@ sha256: string | null } } |*/"Local"export type ModelUnloadTimeout = "never" | "immediately" | "min_2" | "min_5" | "min_10" | "min_15" | "hour_1" | "sec_15"+export type Notice = { code: NoticeCode; level: NoticeLevel; source: NoticeSource;+/**+ * What only Rust knows, such as a model name or a raw error.+ */+detail: string | null }+/**+ * The frontend maps each code to its text in `src/lib/notices.ts`.+ */+export type NoticeCode = "TranscriptionFailed" | "PasteFailed" | "NoMicrophone" | "MicPermissionDenied" | "RecordingFailed" | "ModelLoadFailed" | "PostProcessFailed" | "FileTranscriptionFailed" | "FilePostProcessFailed"+export type NoticeLevel =+/**+ * Nothing came out, or Handy can't do its job.+ */+"error" |+/**+ * The user got a result, but not the one they set up.+ */+"warning"+/**+ * Each source has one slot in the store. Only dictation notices use the+ * overlay: a file job finishes while the user is doing something else, and+ * `Model` is a switch the user made in Settings or the tray.+ */+export type NoticeSource = "dictation" | "file" | "model"+export type NoticesChanged = {+/**+ * Every active notice, newest first.+ */+notices: Notice[];+/**+ * `None` when a notice was cleared.+ */+raised: Notice | null }export type OverlayPosition = "top" | "bottom"/*** Which recording overlay to display. `Minimal` and `Live` share one basediff --git a/src/components/footer/Footer.tsx b/src/components/footer/Footer.tsxindex 2c33820f..f94bb621 100644--- a/src/components/footer/Footer.tsx+++ b/src/components/footer/Footer.tsx@@ -3,6 +3,7 @@ import { getVersion } from "@tauri-apps/api/app";import ModelSelector from "../model-selector";import UpdateChecker from "../update-checker";+import NoticeChip from "./NoticeChip";import TranscriptionStatus from "./TranscriptionStatus";interface FooterProps {@@ -34,12 +35,15 @@ const Footer: React.FC<FooterProps> = ({ onShowHistory }) => {<TranscriptionStatus onShowHistory={onShowHistory} /></div>- {/* Update Status */}- <div className="flex items-center gap-1">- <UpdateChecker />- <span>•</span>- {/* eslint-disable-next-line i18next/no-literal-string */}- <span>v{version}</span>+ <div className="flex items-center gap-3">+ {/* Update Status */}+ <div className="flex items-center gap-1">+ <UpdateChecker />+ <span>•</span>+ {/* eslint-disable-next-line i18next/no-literal-string */}+ <span>v{version}</span>+ </div>+ <NoticeChip /></div></div></div>diff --git a/src/components/footer/NoticeChip.tsx b/src/components/footer/NoticeChip.tsxnew file mode 100644index 00000000..22a53c9a--- /dev/null+++ b/src/components/footer/NoticeChip.tsx@@ -0,0 +1,61 @@+import React, { useEffect } from "react";+import { useTranslation } from "react-i18next";+import { NoticeBadgeIcon } from "@/components/icons/NoticeBadgeIcon";+import { useNoticeStore } from "@/stores/noticeStore";++/** Counts the active notices and opens the panel that lists them. */+const NoticeChip: React.FC = () => {+ const { t } = useTranslation();+ const backendNotices = useNoticeStore((s) => s.notices);+ const local = useNoticeStore((s) => s.local);+ const panelOpen = useNoticeStore((s) => s.panelOpen);+ const openPanel = useNoticeStore((s) => s.openPanel);+ const hide = useNoticeStore((s) => s.hide);+ const setFooterShown = useNoticeStore((s) => s.setFooterShown);++ useEffect(() => {+ setFooterShown(true);+ return () => setFooterShown(false);+ }, [setFooterShown]);++ const notices = [...backendNotices, ...local.filter((n) => n.kept)];+ if (notices.length === 0) return null;++ // Plain keys, not plural ones: languages with more plural forms than this+ // app's `_one`/`_other` would fall back to English for a count of 2.+ const errors = notices.filter((notice) => notice.level === "error").length;+ const warnings = notices.length - errors;+ const errorText = t(errors === 1 ? "notices.errorOne" : "notices.errorMany", {+ n: errors,+ });+ const warningText = t(+ warnings === 1 ? "notices.warningOne" : "notices.warningMany",+ { n: warnings },+ );+ const chipText =+ errors > 0 && warnings > 0+ ? t("notices.errorsAndWarnings", {+ errors: errorText,+ warnings: warningText,+ })+ : errors > 0+ ? errorText+ : warningText;++ return (+ <button+ type="button"+ data-notices+ aria-expanded={panelOpen}+ onClick={panelOpen ? hide : openPanel}+ className="flex shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-sm text-ink-2 transition-colors hover:text-text aria-expanded:text-text focus:outline-none focus-visible:ring-1 focus-visible:ring-logo-primary"+ >+ <NoticeBadgeIcon+ className={`h-3 w-3 ${errors > 0 ? "text-error" : "text-warning"}`}+ />+ {chipText}+ </button>+ );+};++export default NoticeChip;diff --git a/src/components/icons/NoticeBadgeIcon.tsx b/src/components/icons/NoticeBadgeIcon.tsxnew file mode 100644index 00000000..baed1b79--- /dev/null+++ b/src/components/icons/NoticeBadgeIcon.tsx@@ -0,0 +1,22 @@+import React from "react";++/** Colored by `currentColor`. */+export const NoticeBadgeIcon: React.FC<{ className?: string }> = ({+ className,+}) => (+ <svg className={className} viewBox="0 0 16 16" aria-hidden="true">+ <circle cx="8" cy="8" r="8" fill="currentColor" />+ <path+ d="M8 4v4.6"+ stroke="var(--color-background)"+ strokeWidth="2"+ strokeLinecap="round"+ />+ <path+ d="M8 11.8v.01"+ stroke="var(--color-background)"+ strokeWidth="2.2"+ strokeLinecap="round"+ />+ </svg>+);diff --git a/src/components/notices/NoticePanel.tsx b/src/components/notices/NoticePanel.tsxnew file mode 100644index 00000000..16870e8a--- /dev/null+++ b/src/components/notices/NoticePanel.tsx@@ -0,0 +1,177 @@+import React, { useEffect, useState } from "react";+import { useTranslation } from "react-i18next";+import { X } from "lucide-react";+import type { NoticeLevel } from "@/bindings";+import { NoticeBadgeIcon } from "@/components/icons/NoticeBadgeIcon";+import { noticeDisplay } from "@/lib/notices";+import { type LocalNotice, useNoticeStore } from "@/stores/noticeStore";++// Longer than a usual toast: a notice can carry a raw error worth reading.+const TOAST_MS = 8000;++interface NoticeRowProps {+ level: NoticeLevel;+ title: string;+ explanation?: string;+ detail?: string | null;+ action?: LocalNotice["action"];+ onDismiss: () => void;+}++const NoticeRow: React.FC<NoticeRowProps> = ({+ level,+ title,+ explanation,+ detail,+ action,+ onDismiss,+}) => {+ const { t } = useTranslation();+ const color = level === "error" ? "text-error" : "text-warning";++ return (+ <div className="flex items-start gap-2.5 px-3 py-2.5">+ <NoticeBadgeIcon className={`mt-[3px] h-3.5 w-3.5 shrink-0 ${color}`} />+ <div className="min-w-0 flex-1 select-text break-words">+ <p className="text-sm font-medium text-text">{title}</p>+ {explanation && <p className="mt-0.5">{explanation}</p>}+ {detail && <p className="mt-0.5 text-ink-3">{detail}</p>}+ {action && (+ <button+ type="button"+ onClick={action.onClick}+ className="mt-1 cursor-pointer rounded-sm text-text underline underline-offset-2 focus:outline-none focus-visible:ring-1 focus-visible:ring-logo-primary"+ >+ {action.label}+ </button>+ )}+ </div>+ <button+ type="button"+ aria-label={t("common.close")}+ onClick={onDismiss}+ className="-me-1 -mt-0.5 shrink-0 cursor-pointer rounded-md p-1 text-ink-3 transition-colors hover:text-text focus:outline-none focus-visible:ring-1 focus-visible:ring-logo-primary"+ >+ <X className="h-3.5 w-3.5" />+ </button>+ </div>+ );+};++const NoticeCard: React.FC<{ children: React.ReactNode }> = ({ children }) => {+ const toasts = useNoticeStore((s) => s.toasts);+ const panelOpen = useNoticeStore((s) => s.panelOpen);+ const footerShown = useNoticeStore((s) => s.footerShown);+ const hide = useNoticeStore((s) => s.hide);+ const [hovered, setHovered] = useState(false);++ // `toasts` changes with every new notice, which restarts the time.+ useEffect(() => {+ if (panelOpen || hovered) return;+ const timer = setTimeout(hide, TOAST_MS);+ return () => clearTimeout(timer);+ }, [panelOpen, hovered, toasts, hide]);++ // Only the open list closes this way. A toast ends by itself, and dialogs+ // and shortcut capture have their own use for Escape.+ useEffect(() => {+ if (!panelOpen) return;+ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key === "Escape") hide();+ };+ const handleClickOutside = (event: MouseEvent) => {+ if (!(event.target as Element).closest("[data-notices]")) hide();+ };+ document.addEventListener("keydown", handleKeyDown);+ document.addEventListener("mousedown", handleClickOutside);+ return () => {+ document.removeEventListener("keydown", handleKeyDown);+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [panelOpen, hide]);++ // Over dialogs. Onboarding has no footer, and its Continue button is where+ // the card would be, so there it sits below the window's top bar.+ const position = footerShown ? "bottom-9" : "top-14";++ return (+ <div+ data-notices+ onMouseEnter={() => setHovered(true)}+ onMouseLeave={() => setHovered(false)}+ className={`fixed ${position} end-4 z-[60] max-h-[60vh] w-80 divide-y divide-line overflow-y-auto rounded-lg border border-line bg-background text-xs text-ink-2 shadow-lg motion-safe:animate-rise`}+ >+ {children}+ </div>+ );+};++/**+ * The only place messages are drawn. It's mounted outside the app's screens, so+ * it also works during onboarding, and a toast opens into the panel in place:+ * they're this one card, showing some notices or all of them.+ */+export const NoticePanel: React.FC = () => {+ const { t } = useTranslation();+ const notices = useNoticeStore((s) => s.notices);+ const local = useNoticeStore((s) => s.local);+ const toasts = useNoticeStore((s) => s.toasts);+ const panelOpen = useNoticeStore((s) => s.panelOpen);+ const dismiss = useNoticeStore((s) => s.dismiss);+ const clearLocal = useNoticeStore((s) => s.clearLocal);++ const isShown = (id: string) => panelOpen || toasts.includes(id);+ const rows: (NoticeRowProps & { id: string })[] = [+ ...local+ .filter((notice) => isShown(notice.id))+ .map(({ id, level, title, detail, action }) => ({+ id,+ level,+ title,+ detail,+ action,+ onDismiss: () => clearLocal(id),+ })),+ ...notices+ .filter((notice) => isShown(notice.source))+ .map((notice) => {+ const { title, explanation } = noticeDisplay(notice.code);+ return {+ id: notice.source,+ level: notice.level,+ title: t(title),+ explanation: explanation?.(t),+ detail: notice.detail,+ onDismiss: () => dismiss(notice),+ };+ }),+ ];++ return (+ <>+ {/* Always mounted: a screen reader only announces changes to a live+ region that was already there. New toasts only: the open list is+ content to move through, not to read out. */}+ <div role="status" aria-atomic="true" className="sr-only">+ {rows+ .filter(({ id }) => toasts.includes(id))+ .flatMap(({ title, explanation, detail }) => [+ title,+ explanation,+ detail,+ ])+ .filter(Boolean)+ .map((line, index) => (+ <p key={index}>{line}</p>+ ))}+ </div>+ {rows.length > 0 && (+ <NoticeCard>+ {rows.map(({ id, ...row }) => (+ <NoticeRow key={id} {...row} />+ ))}+ </NoticeCard>+ )}+ </>+ );+};diff --git a/src/components/onboarding/ModelMigration.tsx b/src/components/onboarding/ModelMigration.tsxindex 7f91c3d7..8b7af2e3 100644--- a/src/components/onboarding/ModelMigration.tsx+++ b/src/components/onboarding/ModelMigration.tsx@@ -6,7 +6,7 @@ import React, {useState,} from "react";import { useTranslation } from "react-i18next";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import type { RetiredModel } from "@/bindings";import { Button } from "../ui/Button";import { Radio } from "../ui/Radio";@@ -178,7 +178,7 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({const download = async (p: ModelMigrationPair) => {setOutcome(p.retired.id);- // Failure toasts come from the store's model-download-failed listener.+ // Failure notices come from the store's model-download-failed listener.if (!(await downloadModel(p.replacement.id))) {setOutcome(p.retired.id, "failed");}@@ -225,7 +225,7 @@ const ModelMigration: React.FC<ModelMigrationProps> = ({const replacementId = p.replacement.id;(async () => {if (retiredId === targetId && !(await selectModel(replacementId))) {- toast.error(t("onboarding.errors.selectModel"));+ notify({ title: t("onboarding.errors.selectModel") });finalizing.current.delete(retiredId);setOutcome(retiredId, "failed");return;diff --git a/src/components/onboarding/usePermissions.ts b/src/components/onboarding/usePermissions.tsindex a0fbc340..505ad282 100644--- a/src/components/onboarding/usePermissions.ts+++ b/src/components/onboarding/usePermissions.ts@@ -8,7 +8,7 @@ import {requestAccessibilityPermission,requestMicrophonePermission,} from "tauri-plugin-macos-permissions-api";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import { commands } from "@/bindings";import { useSettingsStore } from "@/stores/settingsStore";@@ -117,7 +117,7 @@ export const usePermissions = (preview: boolean): Permissions => {if (acc && mic) await onAllGranted();} catch (error) {console.error("Failed to check macOS permissions:", error);- toast.error(t("onboarding.permissions.errors.checkFailed"));+ notify({ title: t("onboarding.permissions.errors.checkFailed") });setAccessibility("needed");setMicrophone("needed");setNeeded(true);@@ -169,7 +169,7 @@ export const usePermissions = (preview: boolean): Permissions => {errorCountRef.current += 1;if (errorCountRef.current >= MAX_POLLING_ERRORS) {stopPolling();- toast.error(t("onboarding.permissions.errors.checkFailed"));+ notify({ title: t("onboarding.permissions.errors.checkFailed") });}}}, 1000);@@ -224,7 +224,7 @@ export const usePermissions = (preview: boolean): Permissions => {startPolling();} catch (error) {console.error("Failed to request accessibility permission:", error);- toast.error(t("onboarding.permissions.errors.requestFailed"));+ notify({ title: t("onboarding.permissions.errors.requestFailed") });}};@@ -247,7 +247,7 @@ export const usePermissions = (preview: boolean): Permissions => {startPolling();} catch (error) {console.error("Failed to request microphone permission:", error);- toast.error(t("onboarding.permissions.errors.requestFailed"));+ notify({ title: t("onboarding.permissions.errors.requestFailed") });}};diff --git a/src/components/onboarding/useTryEngine.ts b/src/components/onboarding/useTryEngine.tsindex c69587bb..e72739df 100644--- a/src/components/onboarding/useTryEngine.ts+++ b/src/components/onboarding/useTryEngine.ts@@ -163,7 +163,7 @@ export const useTryEngine = ({ os }: { os: OSType }) => {setWaiting(false);setPhase("idle");setWay(null);- // Failures already get the app's error toast.+ // Failures already get the app's notice.if (payload.outcome === "failed") {setResult({ kind: "none" });return;diff --git a/src/components/settings/CustomWords.tsx b/src/components/settings/CustomWords.tsxindex 25755dea..a4f310b3 100644--- a/src/components/settings/CustomWords.tsx+++ b/src/components/settings/CustomWords.tsx@@ -1,6 +1,6 @@import React, { useState } from "react";import { useTranslation } from "react-i18next";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import { useSettings } from "../../hooks/useSettings";import { Input } from "../ui/Input";import { Button } from "../ui/Button";@@ -28,11 +28,11 @@ export const CustomWords: React.FC<CustomWordsProps> = React.memo(const handleAddWord = () => {if (normalizedWord && normalizedWord.length <= 50) {if (customWords.includes(normalizedWord)) {- toast.error(- t("settings.advanced.customWords.duplicate", {+ notify({+ title: t("settings.advanced.customWords.duplicate", {word: normalizedWord,}),- );+ });return;}updateSetting("custom_words", [...customWords, normalizedWord]);diff --git a/src/components/settings/debug/KeyboardImplementationSelector.tsx b/src/components/settings/debug/KeyboardImplementationSelector.tsxindex f992b639..1aad0698 100644--- a/src/components/settings/debug/KeyboardImplementationSelector.tsx+++ b/src/components/settings/debug/KeyboardImplementationSelector.tsx@@ -4,7 +4,7 @@ import { SettingContainer } from "../../ui/SettingContainer";import { Dropdown, type DropdownOption } from "../../ui/Dropdown";import { useSettings } from "../../../hooks/useSettings";import { commands } from "@/bindings";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";const KEYBOARD_IMPLEMENTATION_OPTIONS: DropdownOption[] = [{ value: "tauri", label: "Tauri Global Shortcut" },@@ -35,19 +35,22 @@ export const KeyboardImplementationSelector: React.FC<"Failed to update keyboard implementation:",result.error,);- toast.error(String(result.error));+ notify({ title: String(result.error) });return;}// If any bindings were reset due to incompatibility, notify the userif (result.data.reset_bindings.length > 0) {- toast.warning(t("settings.debug.keyboardImplementation.bindingsReset"));+ notify({+ title: t("settings.debug.keyboardImplementation.bindingsReset"),+ level: "warning",+ });}await refreshSettings();} catch (error) {console.error("Failed to update keyboard implementation:", error);- toast.error(String(error));+ notify({ title: String(error) });}};diff --git a/src/components/settings/debug/WhatsNewPreview.tsx b/src/components/settings/debug/WhatsNewPreview.tsxindex 965137cf..2bbee14f 100644--- a/src/components/settings/debug/WhatsNewPreview.tsx+++ b/src/components/settings/debug/WhatsNewPreview.tsx@@ -1,6 +1,5 @@import React, { useState } from "react";import { useTranslation } from "react-i18next";-import { toast } from "sonner";import { Button } from "../../ui/Button";import { SettingContainer } from "../../ui/SettingContainer";import { WhatsNewModal } from "../../whats-new/WhatsNewModal";@@ -27,14 +26,13 @@ export const WhatsNewPreview: React.FC<WhatsNewPreviewProps> = ({const releaseNote = findLatestReleaseNote();if (!releaseNote) {- toast.info(t("settings.debug.whatsNewPreview.noNotes"));+ console.info("What's New preview: no bundled release notes");return;}setNote(releaseNote);} catch (error) {console.error("Failed to preview release notes:", error);- toast.error(t("settings.debug.whatsNewPreview.error"));} finally {setIsLoading(false);}diff --git a/src/components/settings/history/HistorySettings.tsx b/src/components/settings/history/HistorySettings.tsxindex cf3bc7a9..e99fcbad 100644--- a/src/components/settings/history/HistorySettings.tsx+++ b/src/components/settings/history/HistorySettings.tsx@@ -19,7 +19,7 @@ import {X,} from "lucide-react";import { useTranslation } from "react-i18next";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import {commands,events,@@ -249,7 +249,7 @@ export const HistorySettings: React.FC = () => {await pickAndTranscribeFiles();} catch (error) {console.error("Failed to pick a file to transcribe:", error);- toast.error(t("settings.history.transcribeFailed"));+ notify({ title: t("settings.history.transcribeFailed") });}};@@ -394,7 +394,7 @@ const HistoryEntryComponent: React.FC<HistoryEntryProps> = ({const copied = await onCopyText();if (!copied) {- toast.error(t("settings.history.copyError"));+ notify({ title: t("settings.history.copyError") });return;}@@ -407,7 +407,7 @@ const HistoryEntryComponent: React.FC<HistoryEntryProps> = ({await deleteAudio(entry.id);} catch (error) {console.error("Failed to delete entry:", error);- toast.error(t("settings.history.deleteError"));+ notify({ title: t("settings.history.deleteError") });}};diff --git a/src/components/settings/history/transcribeFiles.ts b/src/components/settings/history/transcribeFiles.tsindex 759e26db..e4163d2d 100644--- a/src/components/settings/history/transcribeFiles.ts+++ b/src/components/settings/history/transcribeFiles.ts@@ -1,5 +1,5 @@import { open } from "@tauri-apps/plugin-dialog";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import i18n from "@/i18n";import { commands } from "@/bindings";@@ -27,22 +27,18 @@ export const transcribeFiles = async (paths: string[]): Promise<number> => {let added = 0;for (const path of paths) {// Its audio is read in full before it appears in History.- const reading = toast.loading(- i18n.t("settings.history.readingFile", { name: fileName(path) }),- );- let result;- try {- result = await commands.transcribeFile(path);- } finally {- toast.dismiss(reading);- }+ const result = await commands.transcribeFile(path);if (result.status === "ok") {added += 1;} else {console.error(`Failed to transcribe ${path}:`, result.error);- toast.error(- i18n.t("settings.history.fileUnsupported", { name: fileName(path) }),- );+ // Keyed by file, so each bad file keeps its own row.+ notify({+ title: i18n.t("settings.history.fileUnsupported", {+ name: fileName(path),+ }),+ key: `file:${path}`,+ });}}return added;diff --git a/src/components/settings/models/RetiredModelsNotice.tsx b/src/components/settings/models/RetiredModelsNotice.tsxindex d6627f4c..8108d50e 100644--- a/src/components/settings/models/RetiredModelsNotice.tsx+++ b/src/components/settings/models/RetiredModelsNotice.tsx@@ -1,6 +1,6 @@import React, { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import { Loader2, Trash2, TriangleAlert } from "lucide-react";import { Button } from "../../ui/Button";import { commands, type RetiredModel } from "@/bindings";@@ -40,10 +40,8 @@ const RetiredModelsNotice: React.FC = () => {setOnDisk(await commands.getRetiredModels());setDeleting(false);- if (deleted === retired.length) {- toast(t("settings.models.retiredNotice.deleted"));- } else {- toast.error(t("settings.models.retiredNotice.deleteFailed"));+ if (deleted < retired.length) {+ notify({ title: t("settings.models.retiredNotice.deleteFailed") });}};diff --git a/src/hooks/useLanguageDetector.ts b/src/hooks/useLanguageDetector.tsindex 733400ab..d14152f4 100644--- a/src/hooks/useLanguageDetector.ts+++ b/src/hooks/useLanguageDetector.ts@@ -39,7 +39,7 @@ export const useLanguageDetector = () => {const download = useCallback(async () => {setStarting(true);try {- // Failure toasts from the model store's download-failed listener.+ // Failure notices come from the model store's download-failed listener.await commands.downloadLanguageDetector();} finally {setStarting(false);diff --git a/src/hooks/useShortcutCapture.ts b/src/hooks/useShortcutCapture.tsindex 237ae73b..f0c2c851 100644--- a/src/hooks/useShortcutCapture.ts+++ b/src/hooks/useShortcutCapture.ts@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react";import { listen } from "@tauri-apps/api/event";import { openUrl } from "@tauri-apps/plugin-opener";import { useTranslation } from "react-i18next";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";import { commands } from "@/bindings";import { SECURE_INPUT_HELP_URL } from "@/components/SecureInputWarning";import { useSettings } from "@/hooks/useSettings";@@ -73,9 +73,11 @@ export const useShortcutCapture = (if (!inert) await updateBinding(bindingId, binding);} catch (error) {console.error("Failed to change binding:", error);- toast.error(- t("settings.general.shortcut.errors.set", { error: String(error) }),- );+ notify({+ title: t("settings.general.shortcut.errors.set", {+ error: String(error),+ }),+ });}await finish();},@@ -87,22 +89,25 @@ export const useShortcutCapture = (if (held.current) return false;if (handyKeys) {// Refused while macOS Secure Input is on (no key events would arrive);- // the backend also shows the warning banner the toast points at.+ // the backend also shows the warning banner the notice points at.const result = await commands.startHandyKeysRecording(bindingId).catch((error) => ({ status: "error" as const, error: String(error) }));if (result.status === "error") {if (String(result.error).includes("secure-input-active")) {- toast.error(t("secureInput.recorderBlocked"), {+ notify({+ title: t("secureInput.recorderBlocked"),action: {label: t("secureInput.learnMore"),onClick: () => openUrl(SECURE_INPUT_HELP_URL),},});} else {- toast.error(- t("settings.general.shortcut.errors.set", { error: result.error }),- );+ notify({+ title: t("settings.general.shortcut.errors.set", {+ error: result.error,+ }),+ });}return false;}diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.jsonindex fd7d5330..32cf3890 100644--- a/src/i18n/locales/ar/translation.json+++ b/src/i18n/locales/ar/translation.json@@ -423,7 +423,6 @@"title": "النماذج القديمة لم تعد تعمل مع Handy","description": "إنها تشغل {{size}} على جهاز الكمبيوتر الخاص بك.","delete": "حذف النماذج",- "deleted": "تم حذف النماذج القديمة","deleteFailed": "تعذّر حذف بعض النماذج القديمة. تحقق من السجل لمزيد من التفاصيل."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "نسخ ملف","mediaFiles": "الصوت والفيديو","fileUnsupported": "تعذّرت قراءة الصوت من {{name}}.",- "readingFile": "جارٍ قراءة {{name}}...","transcribeFailed": "فشل النسخ. يرجى المحاولة مرة أخرى.","waiting": "في انتظار النسخ","transcribingPercent": "جارٍ النسخ، {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "معاينة الجديد","description": "افتح أحدث ملاحظات إصدار مضمنة دون وضع علامة عليها كمقروءة",- "button": "معاينة",- "noNotes": "لم يتم العثور على ملاحظات إصدار مضمنة",- "error": "تعذرت معاينة ملاحظات الإصدار"+ "button": "معاينة"},"onboardingPreview": {"title": "معاينة الإعداد الأولي",@@ -767,8 +763,7 @@"modelMigration": {"title": "ترحيل النماذج","description": "افتح شاشة تحديث النماذج ذات الصيغة القديمة فعليًا: تنزّل البدائل، وتبدّل النماذج، وتحذف الملفات القديمة",- "button": "فتح",- "noRetired": "لا توجد نماذج بالصيغة القديمة على القرص"+ "button": "فتح"},"soundTheme": {"label": "سمة الصوت",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "لم يتم العثور على ميكروفون","noInputDevice": "لم يتم اكتشاف أي جهاز إدخال صوتي. يرجى توصيل ميكروفون أو سماعة رأس والمحاولة مرة أخرى.",- "recordingFailed": "فشل في بدء التسجيل: {{error}}",- "modelLoadFailed": "فشل في تحميل النموذج: {{model}}",- "modelLoadFailedUnknown": "نموذج غير معروف",+ "recordingFailedTitle": "فشل في بدء التسجيل",+ "modelLoadFailed": "تعذر على Handy تحميل هذا النموذج. حاول مرة أخرى أو اختر نموذجًا آخر.",+ "modelLoadFailedTitle": "فشل في تحميل النموذج",+ "modelDownloadFailed": "فشل التنزيل","pasteFailedTitle": "فشل لصق النص","pasteFailed": "تعذر لصق النص في التطبيق النشط.",+ "postProcessFailedTitle": "لُصق بدون معالجة لاحقة",+ "postProcessFailed": "لم تكتمل المعالجة اللاحقة، لذا لُصق النص المنسوخ كما هو.",+ "filePostProcessFailedTitle": "نُسخ بدون معالجة لاحقة",+ "filePostProcessFailed": "لم تكتمل المعالجة اللاحقة، لذا حُفظ النص المنسوخ كما هو.",+ "fileTranscriptionFailedTitle": "فشل التفريغ النصي للملف","transcriptionFailedTitle": "فشل التفريغ النصي"},+ "notices": {+ "errorOne": "{{n}} خطأ",+ "errorMany": "{{n}} أخطاء",+ "warningOne": "{{n}} تحذير",+ "warningMany": "{{n}} تحذيرات",+ "errorsAndWarnings": "{{errors}}، {{warnings}}"+ },"appLanguage": {"title": "لغة التطبيق","description": "تغيير لغة واجهة Handy"diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.jsonindex f353f087..4e7a160b 100644--- a/src/i18n/locales/bg/translation.json+++ b/src/i18n/locales/bg/translation.json@@ -423,7 +423,6 @@"title": "Старите модели вече не работят с Handy","description": "Заемат {{size}} на компютъра ви.","delete": "Изтрий моделите",- "deleted": "Старите модели са изтрити","deleteFailed": "Някои стари модели не можаха да бъдат изтрити. Проверете журнала за подробности."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Транскрибиране на файл","mediaFiles": "Аудио и видео","fileUnsupported": "Не може да се прочете аудио от {{name}}.",- "readingFile": "Четене на {{name}}...","transcribeFailed": "Транскрипцията не бе успешна. Моля, опитайте отново.","waiting": "Изчаква транскрибиране","transcribingPercent": "Транскрибиране, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Преглед на новостите","description": "Отваря последните включени бележки към изданието, без да ги маркира като видени",- "button": "Преглед",- "noNotes": "Не са намерени включени бележки към изданието",- "error": "Неуспешен преглед на бележките към изданието"+ "button": "Преглед"},"onboardingPreview": {"title": "Преглед на първоначалната настройка",@@ -767,8 +763,7 @@"modelMigration": {"title": "Миграция на модели","description": "Отворете наистина екрана за обновяване на модели в стар формат: изтегля заместители, превключва моделите и изтрива старите файлове",- "button": "Отвори",- "noRetired": "Няма модели в стар формат на диска"+ "button": "Отвори"},"soundTheme": {"label": "Звукова тема",@@ -927,7 +922,7 @@},"errors": {"loadDirectory": "Грешка при зареждане на папката: {{error}}",- "micPermissionDeniedTitle": "Достъпът до микрофона е отказан",+ "micPermissionDeniedTitle": "Няма достъп до микрофона","micPermissionDenied": {"generic": "Операционната система отказа достъп до микрофона. Моля, дайте разрешение за микрофон в системните настройки.","windows": "Включете достъп до микрофона в Настройки → Поверителност и сигурност → Микрофон (включително за настолни приложения).",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Не е намерен микрофон","noInputDevice": "Не е открито аудио входно устройство. Свържете микрофон или слушалки и опитайте отново.",- "recordingFailed": "Стартирането на записа не бе успешно: {{error}}",- "modelLoadFailed": "Зареждането на модела не бе успешно: {{model}}",- "modelLoadFailedUnknown": "неизвестен модел",+ "recordingFailedTitle": "Записът не стартира",+ "modelLoadFailed": "Handy не можа да зареди този модел. Опитайте отново или изберете друг.",+ "modelLoadFailedTitle": "Моделът не се зареди",+ "modelDownloadFailed": "Изтеглянето е неуспешно","pasteFailedTitle": "Неуспешно поставяне на текст","pasteFailed": "Текстът не можа да бъде поставен в активното приложение.",+ "postProcessFailedTitle": "Поставено без постобработка",+ "postProcessFailed": "Постобработката не завърши, затова транскрипцията беше поставена без промени.",+ "filePostProcessFailedTitle": "Транскрибирано без постобработка",+ "filePostProcessFailed": "Постобработката не завърши, затова транскрипцията беше запазена без промени.",+ "fileTranscriptionFailedTitle": "Неуспешна транскрипция на файла","transcriptionFailedTitle": "Неуспешна транскрипция"},+ "notices": {+ "errorOne": "{{n}} грешка",+ "errorMany": "{{n}} грешки",+ "warningOne": "{{n}} предупреждение",+ "warningMany": "{{n}} предупреждения",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Език на приложението","description": "Промяна на езика на интерфейса на Handy"diff --git a/src/i18n/locales/ca/translation.json b/src/i18n/locales/ca/translation.jsonindex 18ac612f..f016184f 100644--- a/src/i18n/locales/ca/translation.json+++ b/src/i18n/locales/ca/translation.json@@ -423,7 +423,6 @@"title": "Els models antics ja no funcionen amb Handy","description": "Ocupen {{size}} a l'ordinador.","delete": "Suprimeix els models",- "deleted": "S'han suprimit els models antics","deleteFailed": "No s'han pogut suprimir alguns models antics. Consulteu el registre per a més detalls."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transcriu un fitxer","mediaFiles": "Àudio i vídeo","fileUnsupported": "No s'ha pogut llegir l'àudio de {{name}}.",- "readingFile": "S'està llegint {{name}}...","transcribeFailed": "La transcripció ha fallat. Torna-ho a provar.","waiting": "Esperant per transcriure","transcribingPercent": "Transcrivint, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Previsualització de les novetats","description": "Obre les últimes notes de la versió incloses sense marcar-les com a llegides",- "button": "Previsualitzeu",- "noNotes": "No s'han trobat notes de la versió incloses",- "error": "No s'han pogut previsualitzar les notes de la versió"+ "button": "Previsualitzeu"},"onboardingPreview": {"title": "Previsualització de la configuració inicial",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migració de models","description": "Obre de debò la pantalla d'actualització de models de format antic: baixa els substituts, canvia de model i elimina els fitxers antics",- "button": "Obre",- "noRetired": "No hi ha models de format antic al disc"+ "button": "Obre"},"soundTheme": {"label": "Tema de so",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "No s'ha trobat cap micròfon","noInputDevice": "No s'ha detectat cap dispositiu d'entrada d'àudio. Connecteu un micròfon o uns auriculars amb micròfon i torneu-ho a provar.",- "recordingFailed": "No s'ha pogut iniciar l'enregistrament: {{error}}",- "modelLoadFailed": "No s'ha pogut carregar el model: {{model}}",- "modelLoadFailedUnknown": "model desconegut",+ "recordingFailedTitle": "No s'ha pogut iniciar l'enregistrament",+ "modelLoadFailed": "Handy no ha pogut carregar aquest model. Torna-ho a provar o tria'n un altre.",+ "modelLoadFailedTitle": "No s'ha pogut carregar el model",+ "modelDownloadFailed": "Ha fallat la baixada","pasteFailedTitle": "No s'ha pogut enganxar el text","pasteFailed": "No s'ha pogut enganxar el text a l'aplicació activa.",+ "postProcessFailedTitle": "Enganxat sense postprocessament",+ "postProcessFailed": "El postprocessament no ha acabat, així que la transcripció s'ha enganxat tal qual.",+ "filePostProcessFailedTitle": "Transcrit sense postprocessament",+ "filePostProcessFailed": "El postprocessament no ha acabat, així que la transcripció s'ha desat tal qual.",+ "fileTranscriptionFailedTitle": "La transcripció del fitxer ha fallat","transcriptionFailedTitle": "La transcripció ha fallat"},+ "notices": {+ "errorOne": "{{n}} error",+ "errorMany": "{{n}} errors",+ "warningOne": "{{n}} avís",+ "warningMany": "{{n}} avisos",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Llengua de l'aplicació","description": "Canvia la llengua de la interfície del Handy"diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.jsonindex 6da507f8..23d7ae7a 100644--- a/src/i18n/locales/cs/translation.json+++ b/src/i18n/locales/cs/translation.json@@ -423,7 +423,6 @@"title": "Staré modely už s Handy nefungují","description": "Zabírají {{size}} na vašem počítači.","delete": "Smazat modely",- "deleted": "Staré modely byly smazány","deleteFailed": "Některé staré modely se nepodařilo smazat. Podrobnosti najdete v protokolu."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Přepsat soubor","mediaFiles": "Zvuk a video","fileUnsupported": "Ze souboru {{name}} se nepodařilo načíst zvuk.",- "readingFile": "Načítání {{name}}...","transcribeFailed": "Přepis se nezdařil. Zkuste to prosím znovu.","waiting": "Čeká na přepis","transcribingPercent": "Přepisuji, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Náhled novinek","description": "Otevřít nejnovější přibalené poznámky k vydání bez označení jako zobrazené",- "button": "Náhled",- "noNotes": "Nebyly nalezeny žádné přibalené poznámky k vydání",- "error": "Nepodařilo se zobrazit náhled poznámek k vydání"+ "button": "Náhled"},"onboardingPreview": {"title": "Náhled úvodního nastavení",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migrace modelů","description": "Doopravdy otevře obrazovku aktualizace modelů starého formátu: stáhne náhrady, přepne modely a smaže staré soubory",- "button": "Otevřít",- "noRetired": "Na disku nejsou žádné modely starého formátu"+ "button": "Otevřít"},"soundTheme": {"label": "Zvukový motiv",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Mikrofon nebyl nalezen","noInputDevice": "Nebylo detekováno žádné zvukové vstupní zařízení. Připojte mikrofon nebo sluchátka a zkuste to znovu.",- "recordingFailed": "Nepodařilo se spustit nahrávání: {{error}}",- "modelLoadFailed": "Nepodařilo se načíst model: {{model}}",- "modelLoadFailedUnknown": "neznámý model",+ "recordingFailedTitle": "Nepodařilo se spustit nahrávání",+ "modelLoadFailed": "Handy nemohl načíst tento model. Zkuste to znovu nebo vyberte jiný.",+ "modelLoadFailedTitle": "Nepodařilo se načíst model",+ "modelDownloadFailed": "Stahování selhalo","pasteFailedTitle": "Vložení textu se nezdařilo","pasteFailed": "Text nebylo možné vložit do aktivní aplikace.",+ "postProcessFailedTitle": "Vloženo bez následného zpracování",+ "postProcessFailed": "Následné zpracování se nedokončilo, takže byl přepis vložen beze změn.",+ "filePostProcessFailedTitle": "Přepsáno bez následného zpracování",+ "filePostProcessFailed": "Následné zpracování se nedokončilo, takže byl přepis uložen beze změn.",+ "fileTranscriptionFailedTitle": "Přepis souboru selhal","transcriptionFailedTitle": "Přepis selhal"},+ "notices": {+ "errorOne": "{{n}} chyba",+ "errorMany": "{{n}} chyby",+ "warningOne": "{{n}} upozornění",+ "warningMany": "{{n}} upozornění",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Jazyk aplikace","description": "Změňte jazyk rozhraní Handy"diff --git a/src/i18n/locales/da/translation.json b/src/i18n/locales/da/translation.jsonindex 275505dc..6040c93e 100644--- a/src/i18n/locales/da/translation.json+++ b/src/i18n/locales/da/translation.json@@ -423,7 +423,6 @@"title": "Gamle modeller virker ikke længere med Handy","description": "De fylder {{size}} på din computer.","delete": "Slet modeller",- "deleted": "Gamle modeller er slettet","deleteFailed": "Nogle gamle modeller kunne ikke slettes. Se loggen for detaljer."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transskriber fil","mediaFiles": "Lyd og video","fileUnsupported": "Kunne ikke læse lyd fra {{name}}.",- "readingFile": "Læser {{name}}...","transcribeFailed": "Transskriptionen mislykkedes. Prøv igen.","waiting": "Venter på transskription","transcribingPercent": "Transskriberer, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Forhåndsvisning af nyheder","description": "Åbn de seneste medfølgende udgivelsesnoter uden at markere dem som set",- "button": "Forhåndsvisning",- "noNotes": "Ingen medfølgende udgivelsesnoter fundet",- "error": "Kunne ikke forhåndsvise udgivelsesnoter"+ "button": "Forhåndsvisning"},"onboardingPreview": {"title": "Forhåndsvis introduktion",@@ -767,8 +763,7 @@"modelMigration": {"title": "Modelmigrering","description": "Åbn opdateringsskærmen for modeller i det gamle format for alvor: den downloader erstatninger, skifter model og sletter gamle filer",- "button": "Åbn",- "noRetired": "Ingen modeller i det gamle format på disken"+ "button": "Åbn"},"soundTheme": {"label": "Lydtema",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Ingen mikrofon fundet","noInputDevice": "Ingen lydinputenhed blev registreret. Tilslut en mikrofon eller et headset, og prøv igen.",- "recordingFailed": "Kunne ikke starte optagelse: {{error}}",- "modelLoadFailed": "Kunne ikke indlæse model: {{model}}",- "modelLoadFailedUnknown": "ukendt model",+ "recordingFailedTitle": "Kunne ikke starte optagelse",+ "modelLoadFailed": "Handy kunne ikke indlæse denne model. Prøv igen, eller vælg en anden.",+ "modelLoadFailedTitle": "Kunne ikke indlæse model",+ "modelDownloadFailed": "Download mislykkedes","pasteFailedTitle": "Kunne ikke indsætte tekst","pasteFailed": "Teksten kunne ikke indsættes i det aktive program.",+ "postProcessFailedTitle": "Indsat uden efterbehandling",+ "postProcessFailed": "Efterbehandlingen blev ikke færdig, så transskriptionen blev indsat, som den er.",+ "filePostProcessFailedTitle": "Transskriberet uden efterbehandling",+ "filePostProcessFailed": "Efterbehandlingen blev ikke færdig, så transskriptionen blev gemt, som den er.",+ "fileTranscriptionFailedTitle": "Transskription af fil mislykkedes","transcriptionFailedTitle": "Transskription mislykkedes"},+ "notices": {+ "errorOne": "{{n}} fejl",+ "errorMany": "{{n}} fejl",+ "warningOne": "{{n}} advarsel",+ "warningMany": "{{n}} advarsler",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Applikationssprog","description": "Skift sproget for Handy-grænsefladen"diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.jsonindex 72d1d69c..9cdc55c6 100644--- a/src/i18n/locales/de/translation.json+++ b/src/i18n/locales/de/translation.json@@ -423,7 +423,6 @@"title": "Alte Modelle funktionieren nicht mehr mit Handy","description": "Sie belegen {{size}} auf deinem Computer.","delete": "Modelle löschen",- "deleted": "Alte Modelle gelöscht","deleteFailed": "Einige alte Modelle konnten nicht gelöscht werden. Details findest du im Protokoll."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Datei transkribieren","mediaFiles": "Audio und Video","fileUnsupported": "Audio aus {{name}} konnte nicht gelesen werden.",- "readingFile": "{{name}} wird gelesen...","transcribeFailed": "Transkription fehlgeschlagen. Bitte versuche es erneut.","waiting": "Wartet auf Transkription","transcribingPercent": "Transkribiere, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Vorschau der Neuerungen","description": "Die neuesten gebündelten Versionshinweise öffnen, ohne sie als gesehen zu markieren",- "button": "Vorschau",- "noNotes": "Keine gebündelten Versionshinweise gefunden",- "error": "Versionshinweise konnten nicht angezeigt werden"+ "button": "Vorschau"},"onboardingPreview": {"title": "Ersteinrichtung ansehen",@@ -767,8 +763,7 @@"modelMigration": {"title": "Modellmigration","description": "Den Update-Bildschirm für Modelle im alten Format echt öffnen: Er lädt Ersatzmodelle herunter, wechselt Modelle und löscht alte Dateien",- "button": "Öffnen",- "noRetired": "Keine Modelle im alten Format auf dem Datenträger"+ "button": "Öffnen"},"soundTheme": {"label": "Sound-Thema",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Kein Mikrofon gefunden","noInputDevice": "Es wurde kein Audio-Eingabegerät erkannt. Bitte schließe ein Mikrofon oder Headset an und versuche es erneut.",- "recordingFailed": "Aufnahme konnte nicht gestartet werden: {{error}}",- "modelLoadFailed": "Modell konnte nicht geladen werden: {{model}}",- "modelLoadFailedUnknown": "unbekanntes Modell",+ "recordingFailedTitle": "Aufnahmestart fehlgeschlagen",+ "modelLoadFailed": "Handy konnte dieses Modell nicht laden. Versuche es erneut oder wähle ein anderes.",+ "modelLoadFailedTitle": "Modell konnte nicht geladen werden",+ "modelDownloadFailed": "Download fehlgeschlagen","pasteFailedTitle": "Text konnte nicht eingefügt werden","pasteFailed": "Der Text konnte nicht in die aktive Anwendung eingefügt werden.",+ "postProcessFailedTitle": "Ohne Nachbearbeitung eingefügt",+ "postProcessFailed": "Die Nachbearbeitung wurde nicht abgeschlossen, daher wurde das Transkript unverändert eingefügt.",+ "filePostProcessFailedTitle": "Ohne Nachbearbeitung transkribiert",+ "filePostProcessFailed": "Die Nachbearbeitung wurde nicht abgeschlossen, daher wurde das Transkript unverändert gespeichert.",+ "fileTranscriptionFailedTitle": "Dateitranskription fehlgeschlagen","transcriptionFailedTitle": "Transkription fehlgeschlagen"},+ "notices": {+ "errorOne": "{{n}} Fehler",+ "errorMany": "{{n}} Fehler",+ "warningOne": "{{n}} Warnung",+ "warningMany": "{{n}} Warnungen",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Anwendungssprache","description": "Sprache der Handy-Oberfläche ändern"diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.jsonindex a7272179..09b81c0b 100644--- a/src/i18n/locales/en/translation.json+++ b/src/i18n/locales/en/translation.json@@ -423,7 +423,6 @@"title": "Old models no longer work with Handy","description": "They're taking up {{size}} on your computer.","delete": "Delete models",- "deleted": "Deleted old models","deleteFailed": "Some old models couldn't be deleted. Check the log for details."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transcribe File","mediaFiles": "Audio and video","fileUnsupported": "Couldn't read audio from {{name}}.",- "readingFile": "Reading {{name}}...","transcribeFailed": "Transcription failed. Please try again.","waiting": "Waiting to transcribe","transcribingPercent": "Transcribing, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Preview What's New","description": "Open the latest bundled release note without marking it as seen",- "button": "Preview",- "noNotes": "No bundled release notes found",- "error": "Failed to preview release notes"+ "button": "Preview"},"onboardingPreview": {"title": "Preview Onboarding",@@ -767,8 +763,7 @@"modelMigration": {"title": "Model Migration","description": "Open the old-format model update screen for real: it downloads replacements, switches models and deletes old files",- "button": "Open",- "noRetired": "No old-format models on disk"+ "button": "Open"},"soundTheme": {"label": "Sound Theme",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "No Microphone Found","noInputDevice": "No audio input device was detected. Please connect a microphone or headset and try again.",- "recordingFailed": "Failed to start recording: {{error}}",- "modelLoadFailed": "Failed to load model: {{model}}",- "modelLoadFailedUnknown": "unknown model",+ "recordingFailedTitle": "Failed to Start Recording",+ "modelLoadFailed": "Handy couldn't load this model. Try again or choose a different one.",+ "modelLoadFailedTitle": "Failed to Load Model",+ "modelDownloadFailed": "Download failed","pasteFailedTitle": "Failed to Paste Text","pasteFailed": "Text could not be pasted into the active application.",+ "postProcessFailedTitle": "Pasted Without Post-Processing",+ "postProcessFailed": "Post Process didn't finish, so the transcript was pasted as is.",+ "filePostProcessFailedTitle": "Transcribed Without Post-Processing",+ "filePostProcessFailed": "Post Process didn't finish, so the transcript was saved as is.",+ "fileTranscriptionFailedTitle": "File Transcription Failed","transcriptionFailedTitle": "Transcription Failed"},+ "notices": {+ "errorOne": "{{n}} error",+ "errorMany": "{{n}} errors",+ "warningOne": "{{n}} warning",+ "warningMany": "{{n}} warnings",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Application Language","description": "Change the language of the Handy interface"diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.jsonindex 2650ed24..8adf4e48 100644--- a/src/i18n/locales/es/translation.json+++ b/src/i18n/locales/es/translation.json@@ -423,7 +423,6 @@"title": "Los modelos antiguos ya no funcionan con Handy","description": "Ocupan {{size}} en tu equipo.","delete": "Eliminar modelos",- "deleted": "Modelos antiguos eliminados","deleteFailed": "No se pudieron eliminar algunos modelos antiguos. Consulta el registro para más detalles."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transcribir archivo","mediaFiles": "Audio y vídeo","fileUnsupported": "No se pudo leer el audio de {{name}}.",- "readingFile": "Leyendo {{name}}...","transcribeFailed": "La transcripción falló. Inténtalo de nuevo.","waiting": "Esperando para transcribir","transcribingPercent": "Transcribiendo, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Vista previa de novedades","description": "Abrir la nota de la versión incluida más reciente sin marcarla como vista",- "button": "Vista previa",- "noNotes": "No se encontraron notas de la versión incluidas",- "error": "No se pudo mostrar la vista previa de las notas de la versión"+ "button": "Vista previa"},"onboardingPreview": {"title": "Vista previa de la configuración inicial",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migración de modelos","description": "Abre de verdad la pantalla de actualización de modelos de formato antiguo: descarga reemplazos, cambia de modelo y elimina los archivos antiguos",- "button": "Abrir",- "noRetired": "No hay modelos de formato antiguo en el disco"+ "button": "Abrir"},"soundTheme": {"label": "Tema de sonido",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "No se encontró micrófono","noInputDevice": "No se detectó ningún dispositivo de entrada de audio. Conecta un micrófono o auriculares e inténtalo de nuevo.",- "recordingFailed": "Error al iniciar la grabación: {{error}}",- "modelLoadFailed": "Error al cargar el modelo: {{model}}",- "modelLoadFailedUnknown": "modelo desconocido",+ "recordingFailedTitle": "Error al iniciar la grabación",+ "modelLoadFailed": "Handy no pudo cargar este modelo. Inténtalo de nuevo o elige otro.",+ "modelLoadFailedTitle": "Error al cargar el modelo",+ "modelDownloadFailed": "Error en la descarga","pasteFailedTitle": "Error al pegar el texto","pasteFailed": "No se pudo pegar el texto en la aplicación activa.",+ "postProcessFailedTitle": "Pegado sin post proceso",+ "postProcessFailed": "El post proceso no terminó, así que la transcripción se pegó tal cual.",+ "filePostProcessFailedTitle": "Transcrito sin post proceso",+ "filePostProcessFailed": "El post proceso no terminó, así que la transcripción se guardó tal cual.",+ "fileTranscriptionFailedTitle": "Error al transcribir el archivo","transcriptionFailedTitle": "Error de transcripción"},+ "notices": {+ "errorOne": "{{n}} error",+ "errorMany": "{{n}} errores",+ "warningOne": "{{n}} advertencia",+ "warningMany": "{{n}} advertencias",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Idioma de la aplicación","description": "Cambia el idioma de la interfaz de Handy"diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.jsonindex 4e772ed6..75f21526 100644--- a/src/i18n/locales/fr/translation.json+++ b/src/i18n/locales/fr/translation.json@@ -423,7 +423,6 @@"title": "Les anciens modèles ne fonctionnent plus avec Handy","description": "Ils occupent {{size}} sur votre ordinateur.","delete": "Supprimer les modèles",- "deleted": "Anciens modèles supprimés","deleteFailed": "Certains anciens modèles n'ont pas pu être supprimés. Consultez le journal pour plus de détails."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transcrire un fichier","mediaFiles": "Audio et vidéo","fileUnsupported": "Impossible de lire l'audio de {{name}}.",- "readingFile": "Lecture de {{name}}...","transcribeFailed": "La transcription a échoué. Veuillez réessayer.","waiting": "En attente de transcription","transcribingPercent": "Transcription, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Aperçu des nouveautés","description": "Ouvrir la dernière note de version intégrée sans la marquer comme vue",- "button": "Aperçu",- "noNotes": "Aucune note de version intégrée trouvée",- "error": "Impossible d’afficher l’aperçu des notes de version"+ "button": "Aperçu"},"onboardingPreview": {"title": "Aperçu de la configuration initiale",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migration des modèles","description": "Ouvrir pour de vrai l'écran de mise à jour des modèles à l'ancien format : il télécharge les remplacements, change de modèle et supprime les anciens fichiers",- "button": "Ouvrir",- "noRetired": "Aucun modèle à l'ancien format sur le disque"+ "button": "Ouvrir"},"soundTheme": {"label": "Thème sonore",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Aucun microphone trouvé","noInputDevice": "Aucun périphérique d'entrée audio n'a été détecté. Veuillez connecter un microphone ou un casque et réessayer.",- "recordingFailed": "Échec du démarrage de l'enregistrement : {{error}}",- "modelLoadFailed": "Échec du chargement du modèle : {{model}}",- "modelLoadFailedUnknown": "modèle inconnu",+ "recordingFailedTitle": "Échec de l'enregistrement",+ "modelLoadFailed": "Handy n'a pas pu charger ce modèle. Réessayez ou choisissez-en un autre.",+ "modelLoadFailedTitle": "Échec du chargement du modèle",+ "modelDownloadFailed": "Échec du téléchargement","pasteFailedTitle": "Échec du collage du texte","pasteFailed": "Le texte n'a pas pu être collé dans l'application active.",+ "postProcessFailedTitle": "Collé sans post-traitement",+ "postProcessFailed": "Le post-traitement n'a pas abouti, la transcription a donc été collée telle quelle.",+ "filePostProcessFailedTitle": "Transcrit sans post-traitement",+ "filePostProcessFailed": "Le post-traitement n'a pas abouti, la transcription a donc été enregistrée telle quelle.",+ "fileTranscriptionFailedTitle": "Échec de la transcription du fichier","transcriptionFailedTitle": "Échec de la transcription"},+ "notices": {+ "errorOne": "{{n}} erreur",+ "errorMany": "{{n}} erreurs",+ "warningOne": "{{n}} avertissement",+ "warningMany": "{{n}} avertissements",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Langue de l'application","description": "Changer la langue de l'interface de Handy"diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.jsonindex 1fa47390..2f31e33e 100644--- a/src/i18n/locales/he/translation.json+++ b/src/i18n/locales/he/translation.json@@ -423,7 +423,6 @@"title": "מודלים ישנים כבר לא עובדים עם Handy","description": "הם תופסים {{size}} במחשב שלך.","delete": "מחיקת מודלים",- "deleted": "המודלים הישנים נמחקו","deleteFailed": "לא ניתן היה למחוק חלק מהמודלים הישנים. פרטים נוספים ביומן."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "תמלול קובץ","mediaFiles": "שמע ווידאו","fileUnsupported": "לא ניתן לקרוא שמע מ-{{name}}.",- "readingFile": "קורא את {{name}}...","transcribeFailed": "התמלול נכשל. נסו שוב.","waiting": "ממתין לתמלול","transcribingPercent": "מתמלל, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "תצוגה מקדימה של מה חדש","description": "פתח את הערת הגרסה המצורפת האחרונה בלי לסמן אותה כנצפתה",- "button": "תצוגה מקדימה",- "noNotes": "לא נמצאו הערות גרסה מצורפות",- "error": "הצגת התצוגה המקדימה של הערות הגרסה נכשלה"+ "button": "תצוגה מקדימה"},"onboardingPreview": {"title": "תצוגה מקדימה של ההגדרה הראשונית",@@ -767,8 +763,7 @@"modelMigration": {"title": "העברת מודלים","description": "פתח באמת את מסך עדכון המודלים בפורמט הישן: הוא מוריד תחליפים, מחליף מודלים ומוחק קבצים ישנים",- "button": "פתח",- "noRetired": "אין מודלים בפורמט ישן בדיסק"+ "button": "פתח"},"soundTheme": {"label": "ערכת צלילים",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "לא נמצא מיקרופון","noInputDevice": "לא זוהה התקן קלט שמע. חבר מיקרופון או אוזנייה ונסה שוב.",- "recordingFailed": "הפעלת ההקלטה נכשלה: {{error}}",- "modelLoadFailed": "טעינת המודל נכשלה: {{model}}",- "modelLoadFailedUnknown": "מודל לא ידוע",+ "recordingFailedTitle": "הפעלת ההקלטה נכשלה",+ "modelLoadFailed": "Handy לא הצליח לטעון את המודל הזה. נסו שוב או בחרו מודל אחר.",+ "modelLoadFailedTitle": "טעינת המודל נכשלה",+ "modelDownloadFailed": "ההורדה נכשלה","pasteFailedTitle": "ההדבקה נכשלה","pasteFailed": "לא ניתן היה להדביק את הטקסט ביישום הפעיל.",+ "postProcessFailedTitle": "הודבק ללא עיבוד משלים",+ "postProcessFailed": "העיבוד המשלים לא הסתיים, ולכן התמלול הודבק כפי שהוא.",+ "filePostProcessFailedTitle": "תומלל ללא עיבוד משלים",+ "filePostProcessFailed": "העיבוד המשלים לא הסתיים, ולכן התמלול נשמר כפי שהוא.",+ "fileTranscriptionFailedTitle": "תמלול הקובץ נכשל","transcriptionFailedTitle": "התמלול נכשל"},+ "notices": {+ "errorOne": "{{n}} שגיאה",+ "errorMany": "{{n}} שגיאות",+ "warningOne": "{{n}} אזהרה",+ "warningMany": "{{n}} אזהרות",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "שפת האפליקציה","description": "שנה את שפת הממשק של Handy"diff --git a/src/i18n/locales/hi/translation.json b/src/i18n/locales/hi/translation.jsonindex 70439594..ef1727d1 100644--- a/src/i18n/locales/hi/translation.json+++ b/src/i18n/locales/hi/translation.json@@ -423,7 +423,6 @@"title": "पुराने मॉडल अब Handy के साथ काम नहीं करते","description": "ये आपके कंप्यूटर पर {{size}} जगह घेर रहे हैं.","delete": "मॉडल हटाएं",- "deleted": "पुराने मॉडल हटा दिए गए","deleteFailed": "कुछ पुराने मॉडल हटाए नहीं जा सके. विवरण के लिए लॉग देखें."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "फ़ाइल ट्रांसक्राइब करें","mediaFiles": "ऑडियो और वीडियो","fileUnsupported": "{{name}} से ऑडियो नहीं पढ़ा जा सका।",- "readingFile": "{{name}} पढ़ा जा रहा है...","transcribeFailed": "ट्रांसक्रिप्शन विफल रहा। कृपया फिर से प्रयास करें।","waiting": "ट्रांसक्राइब होने की प्रतीक्षा में","transcribingPercent": "ट्रांसक्राइब हो रहा है, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "'नया क्या है' की झलक देखें","description": "बंडल की गई सबसे नई रिलीज़ नोट को 'देखा गया' मार्क किए बिना खोलें",- "button": "झलक देखें",- "noNotes": "बंडल की गई कोई रिलीज़ नोट नहीं मिली",- "error": "रिलीज़ नोट की झलक नहीं दिखाई जा सकी"+ "button": "झलक देखें"},"onboardingPreview": {"title": "शुरुआती सेटअप की झलक",@@ -767,8 +763,7 @@"modelMigration": {"title": "मॉडल माइग्रेशन","description": "पुराने फ़ॉर्मेट वाले मॉडल की अपडेट स्क्रीन असली तरह खोलें: यह बदले हुए मॉडल डाउनलोड करती है, मॉडल बदलती है और पुरानी फ़ाइलें हटाती है",- "button": "खोलें",- "noRetired": "डिस्क पर पुराने फ़ॉर्मेट वाले कोई मॉडल नहीं हैं"+ "button": "खोलें"},"soundTheme": {"label": "साउंड थीम",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "कोई माइक्रोफ़ोन नहीं मिला","noInputDevice": "कोई ऑडियो इनपुट डिवाइस नहीं मिला. कृपया माइक्रोफ़ोन या हेडसेट कनेक्ट करके फिर से कोशिश करें.",- "recordingFailed": "रिकॉर्डिंग शुरू नहीं हो सकी: {{error}}",- "modelLoadFailed": "मॉडल लोड नहीं हो सका: {{model}}",- "modelLoadFailedUnknown": "अज्ञात मॉडल",+ "recordingFailedTitle": "रिकॉर्डिंग शुरू नहीं हो सकी",+ "modelLoadFailed": "Handy इस मॉडल को लोड नहीं कर सका। फिर से कोशिश करें या कोई दूसरा मॉडल चुनें।",+ "modelLoadFailedTitle": "मॉडल लोड नहीं हो सका",+ "modelDownloadFailed": "डाउनलोड विफल रहा","pasteFailedTitle": "टेक्स्ट पेस्ट नहीं हो सका","pasteFailed": "खुले हुए ऐप्लिकेशन में टेक्स्ट पेस्ट नहीं किया जा सका.",+ "postProcessFailedTitle": "पोस्ट प्रोसेस के बिना पेस्ट किया गया",+ "postProcessFailed": "पोस्ट प्रोसेस पूरा नहीं हुआ, इसलिए ट्रांसक्रिप्ट जैसा था वैसा ही पेस्ट किया गया।",+ "filePostProcessFailedTitle": "पोस्ट प्रोसेस के बिना ट्रांसक्राइब किया गया",+ "filePostProcessFailed": "पोस्ट प्रोसेस पूरा नहीं हुआ, इसलिए ट्रांसक्रिप्ट जैसा था वैसा ही सहेजा गया।",+ "fileTranscriptionFailedTitle": "फ़ाइल का ट्रांसक्रिप्शन नहीं हो सका","transcriptionFailedTitle": "ट्रांसक्रिप्शन नहीं हो सका"},+ "notices": {+ "errorOne": "{{n}} त्रुटि",+ "errorMany": "{{n}} त्रुटियां",+ "warningOne": "{{n}} चेतावनी",+ "warningMany": "{{n}} चेतावनियां",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "ऐप्लिकेशन की भाषा","description": "Handy इंटरफ़ेस की भाषा बदलें"diff --git a/src/i18n/locales/id/translation.json b/src/i18n/locales/id/translation.jsonindex a26ea67a..708572ea 100644--- a/src/i18n/locales/id/translation.json+++ b/src/i18n/locales/id/translation.json@@ -423,7 +423,6 @@"title": "Model lama tidak lagi berfungsi dengan Handy","description": "Model tersebut memakan {{size}} di komputer Anda.","delete": "Hapus model",- "deleted": "Model lama telah dihapus","deleteFailed": "Beberapa model lama tidak dapat dihapus. Periksa log untuk detailnya."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transkripsikan File","mediaFiles": "Audio dan video","fileUnsupported": "Tidak dapat membaca audio dari {{name}}.",- "readingFile": "Membaca {{name}}...","transcribeFailed": "Transkripsi gagal. Silakan coba lagi.","waiting": "Menunggu untuk ditranskripsi","transcribingPercent": "Mentranskripsi, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Pratinjau Yang Baru","description": "Buka catatan rilis terbaru yang disertakan tanpa menandainya sebagai telah dilihat",- "button": "Pratinjau",- "noNotes": "Tidak ada catatan rilis yang disertakan",- "error": "Gagal menampilkan pratinjau catatan rilis"+ "button": "Pratinjau"},"onboardingPreview": {"title": "Pratinjau Penyiapan Awal",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migrasi Model","description": "Buka layar pembaruan model format lama secara sungguhan: mengunduh pengganti, beralih model, dan menghapus file lama",- "button": "Buka",- "noRetired": "Tidak ada model format lama di disk"+ "button": "Buka"},"soundTheme": {"label": "Tema Suara",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Mikrofon Tidak Ditemukan","noInputDevice": "Tidak ada perangkat masukan audio yang terdeteksi. Hubungkan mikrofon atau headset lalu coba lagi.",- "recordingFailed": "Gagal memulai perekaman: {{error}}",- "modelLoadFailed": "Gagal memuat model: {{model}}",- "modelLoadFailedUnknown": "model tidak dikenal",+ "recordingFailedTitle": "Gagal Memulai Perekaman",+ "modelLoadFailed": "Handy tidak dapat memuat model ini. Coba lagi atau pilih model lain.",+ "modelLoadFailedTitle": "Gagal Memuat Model",+ "modelDownloadFailed": "Unduhan gagal","pasteFailedTitle": "Gagal Menempelkan Teks","pasteFailed": "Teks tidak dapat ditempelkan ke aplikasi aktif.",+ "postProcessFailedTitle": "Ditempel Tanpa Pascaproses",+ "postProcessFailed": "Pascaproses tidak selesai, jadi transkrip ditempelkan apa adanya.",+ "filePostProcessFailedTitle": "Ditranskripsi Tanpa Pascaproses",+ "filePostProcessFailed": "Pascaproses tidak selesai, jadi transkrip disimpan apa adanya.",+ "fileTranscriptionFailedTitle": "Transkripsi File Gagal","transcriptionFailedTitle": "Transkripsi Gagal"},+ "notices": {+ "errorOne": "{{n}} kesalahan",+ "errorMany": "{{n}} kesalahan",+ "warningOne": "{{n}} peringatan",+ "warningMany": "{{n}} peringatan",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Bahasa Aplikasi","description": "Ubah bahasa antarmuka Handy"diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.jsonindex bb23bebe..873a4ab3 100644--- a/src/i18n/locales/it/translation.json+++ b/src/i18n/locales/it/translation.json@@ -423,7 +423,6 @@"title": "I modelli precedenti non funzionano più con Handy","description": "Occupano {{size}} sul tuo computer.","delete": "Elimina modelli",- "deleted": "Modelli precedenti eliminati","deleteFailed": "Non è stato possibile eliminare alcuni modelli precedenti. Controlla il log per i dettagli."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Trascrivi file","mediaFiles": "Audio e video","fileUnsupported": "Impossibile leggere l'audio da {{name}}.",- "readingFile": "Lettura di {{name}}...","transcribeFailed": "Trascrizione non riuscita. Riprova.","waiting": "In attesa di trascrizione","transcribingPercent": "Trascrizione, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Anteprima delle novità","description": "Apri le note di rilascio incluse più recenti senza segnarle come viste",- "button": "Anteprima",- "noNotes": "Nessuna nota di rilascio inclusa trovata",- "error": "Impossibile mostrare l'anteprima delle note di rilascio"+ "button": "Anteprima"},"onboardingPreview": {"title": "Anteprima della configurazione iniziale",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migrazione dei modelli","description": "Apri davvero la schermata di aggiornamento dei modelli in formato precedente: scarica le sostituzioni, cambia modello ed elimina i vecchi file",- "button": "Apri",- "noRetired": "Nessun modello in formato precedente su disco"+ "button": "Apri"},"soundTheme": {"label": "Tema Sonoro",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Nessun microfono trovato","noInputDevice": "Non è stato rilevato alcun dispositivo di ingresso audio. Collega un microfono o delle cuffie e riprova.",- "recordingFailed": "Impossibile avviare la registrazione: {{error}}",- "modelLoadFailed": "Impossibile caricare il modello: {{model}}",- "modelLoadFailedUnknown": "modello sconosciuto",+ "recordingFailedTitle": "Impossibile avviare la registrazione",+ "modelLoadFailed": "Handy non è riuscito a caricare questo modello. Riprova o scegline un altro.",+ "modelLoadFailedTitle": "Impossibile caricare il modello",+ "modelDownloadFailed": "Download non riuscito","pasteFailedTitle": "Impossibile incollare il testo","pasteFailed": "Non è stato possibile incollare il testo nell'applicazione attiva.",+ "postProcessFailedTitle": "Incollato senza post-elaborazione",+ "postProcessFailed": "La post-elaborazione non è terminata, quindi la trascrizione è stata incollata così com'è.",+ "filePostProcessFailedTitle": "Trascritto senza post-elaborazione",+ "filePostProcessFailed": "La post-elaborazione non è terminata, quindi la trascrizione è stata salvata così com'è.",+ "fileTranscriptionFailedTitle": "Trascrizione del file non riuscita","transcriptionFailedTitle": "Trascrizione non riuscita"},+ "notices": {+ "errorOne": "{{n}} errore",+ "errorMany": "{{n}} errori",+ "warningOne": "{{n}} avviso",+ "warningMany": "{{n}} avvisi",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Lingua Applicazione","description": "Cambia la lingua dell'interfaccia di Handy"diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.jsonindex 29bade33..e1b25f4d 100644--- a/src/i18n/locales/ja/translation.json+++ b/src/i18n/locales/ja/translation.json@@ -423,7 +423,6 @@"title": "古いモデルは Handy で使用できなくなりました","description": "コンピューター上で {{size}} を使用しています。","delete": "モデルを削除",- "deleted": "古いモデルを削除しました","deleteFailed": "一部の古いモデルを削除できませんでした。詳細はログを確認してください。"},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "ファイルを文字起こし","mediaFiles": "音声と動画","fileUnsupported": "{{name}} から音声を読み込めませんでした。",- "readingFile": "{{name}} を読み込み中...","transcribeFailed": "文字起こしに失敗しました。もう一度お試しください。","waiting": "文字起こし待ち","transcribingPercent": "文字起こし中… {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "新機能をプレビュー","description": "最新の同梱リリースノートを既読にせずに開く",- "button": "プレビュー",- "noNotes": "同梱リリースノートが見つかりません",- "error": "リリースノートのプレビューに失敗しました"+ "button": "プレビュー"},"onboardingPreview": {"title": "オンボーディングをプレビュー",@@ -767,8 +763,7 @@"modelMigration": {"title": "モデル移行","description": "旧形式モデルの更新画面を実際に開きます。置き換えモデルのダウンロード、モデルの切り替え、古いファイルの削除が行われます",- "button": "開く",- "noRetired": "ディスク上に旧形式のモデルはありません"+ "button": "開く"},"soundTheme": {"label": "サウンドテーマ",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "マイクが見つかりません","noInputDevice": "オーディオ入力デバイスが検出されませんでした。マイクまたはヘッドセットを接続してから再試行してください。",- "recordingFailed": "録音の開始に失敗しました: {{error}}",- "modelLoadFailed": "モデルの読み込みに失敗しました: {{model}}",- "modelLoadFailedUnknown": "不明なモデル",+ "recordingFailedTitle": "録音の開始に失敗しました",+ "modelLoadFailed": "このモデルを読み込めませんでした。もう一度試すか、別のモデルを選択してください。",+ "modelLoadFailedTitle": "モデルの読み込みに失敗しました",+ "modelDownloadFailed": "ダウンロードに失敗しました","pasteFailedTitle": "テキストの貼り付けに失敗しました","pasteFailed": "アクティブなアプリにテキストを貼り付けられませんでした。",+ "postProcessFailedTitle": "後処理なしで貼り付けました",+ "postProcessFailed": "後処理が完了しなかったため、文字起こしをそのまま貼り付けました。",+ "filePostProcessFailedTitle": "後処理なしで文字起こししました",+ "filePostProcessFailed": "後処理が完了しなかったため、文字起こしをそのまま保存しました。",+ "fileTranscriptionFailedTitle": "ファイルの文字起こしに失敗しました","transcriptionFailedTitle": "文字起こしに失敗しました"},+ "notices": {+ "errorOne": "エラー {{n}} 件",+ "errorMany": "エラー {{n}} 件",+ "warningOne": "警告 {{n}} 件",+ "warningMany": "警告 {{n}} 件",+ "errorsAndWarnings": "{{errors}}、{{warnings}}"+ },"appLanguage": {"title": "アプリの言語","description": "Handy インターフェースの言語を変更"diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.jsonindex 21c5fae6..7b7791c8 100644--- a/src/i18n/locales/ko/translation.json+++ b/src/i18n/locales/ko/translation.json@@ -423,7 +423,6 @@"title": "이전 모델은 더 이상 Handy에서 작동하지 않습니다","description": "컴퓨터에서 {{size}}을(를) 차지하고 있습니다.","delete": "모델 삭제",- "deleted": "이전 모델을 삭제했습니다","deleteFailed": "일부 이전 모델을 삭제할 수 없습니다. 자세한 내용은 로그를 확인하세요."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "파일 받아쓰기","mediaFiles": "오디오 및 비디오","fileUnsupported": "{{name}}에서 오디오를 읽을 수 없습니다.",- "readingFile": "{{name}} 읽는 중...","transcribeFailed": "받아쓰기에 실패했습니다. 다시 시도해 주세요.","waiting": "받아쓰기 대기 중","transcribingPercent": "받아쓰는 중, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "새 소식 미리보기","description": "최신 내장 릴리스 노트를 본 것으로 표시하지 않고 엽니다",- "button": "미리보기",- "noNotes": "내장 릴리스 노트를 찾을 수 없습니다",- "error": "릴리스 노트를 미리 볼 수 없습니다"+ "button": "미리보기"},"onboardingPreview": {"title": "온보딩 미리보기",@@ -767,8 +763,7 @@"modelMigration": {"title": "모델 마이그레이션","description": "이전 형식 모델 업데이트 화면을 실제로 엽니다. 대체 모델을 다운로드하고, 모델을 전환하고, 이전 파일을 삭제합니다",- "button": "열기",- "noRetired": "디스크에 이전 형식 모델이 없습니다"+ "button": "열기"},"soundTheme": {"label": "사운드 테마",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "마이크를 찾을 수 없음","noInputDevice": "오디오 입력 장치가 감지되지 않았습니다. 마이크 또는 헤드셋을 연결한 후 다시 시도해 주세요.",- "recordingFailed": "녹음을 시작하지 못했습니다: {{error}}",- "modelLoadFailed": "모델을 불러오지 못했습니다: {{model}}",- "modelLoadFailedUnknown": "알 수 없는 모델",+ "recordingFailedTitle": "녹음을 시작하지 못했습니다",+ "modelLoadFailed": "이 모델을 불러오지 못했습니다. 다시 시도하거나 다른 모델을 선택하세요.",+ "modelLoadFailedTitle": "모델을 불러오지 못했습니다",+ "modelDownloadFailed": "다운로드 실패","pasteFailedTitle": "텍스트 붙여넣기 실패","pasteFailed": "활성 애플리케이션에 텍스트를 붙여넣을 수 없습니다.",+ "postProcessFailedTitle": "후처리 없이 붙여넣음",+ "postProcessFailed": "후처리가 완료되지 않아 받아쓰기 결과를 그대로 붙여넣었습니다.",+ "filePostProcessFailedTitle": "후처리 없이 받아씀",+ "filePostProcessFailed": "후처리가 완료되지 않아 받아쓰기 결과를 그대로 저장했습니다.",+ "fileTranscriptionFailedTitle": "파일 음성 인식 실패","transcriptionFailedTitle": "음성 인식 실패"},+ "notices": {+ "errorOne": "오류 {{n}}개",+ "errorMany": "오류 {{n}}개",+ "warningOne": "경고 {{n}}개",+ "warningMany": "경고 {{n}}개",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "애플리케이션 언어","description": "Handy 인터페이스의 언어를 변경하세요"diff --git a/src/i18n/locales/ne/translation.json b/src/i18n/locales/ne/translation.jsonindex d506f8c4..1b0e90c6 100644--- a/src/i18n/locales/ne/translation.json+++ b/src/i18n/locales/ne/translation.json@@ -423,7 +423,6 @@"title": "पुराना मोडेलहरूले अब Handy सँग काम गर्दैनन्","description": "तिनीहरूले तपाईंको कम्प्युटरमा {{size}} ठाउँ ओगटेका छन्।","delete": "मोडेलहरू मेटाउनुहोस्",- "deleted": "पुराना मोडेलहरू मेटाइए","deleteFailed": "केही पुराना मोडेलहरू मेटाउन सकिएन। विवरणका लागि लग हेर्नुहोस्।"},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "फाइल ट्रान्सक्राइब गर्नुहोस्","mediaFiles": "अडियो र भिडियो","fileUnsupported": "{{name}} बाट अडियो पढ्न सकिएन।",- "readingFile": "{{name}} पढ्दै...","transcribeFailed": "ट्रान्सक्रिप्सन असफल भयो। कृपया फेरि प्रयास गर्नुहोस्।","waiting": "ट्रान्सक्राइब हुन पर्खँदै","transcribingPercent": "ट्रान्सक्राइब हुँदै, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "नयाँ के छ पूर्वावलोकन","description": "पछिल्लो बन्डल गरिएको रिलिज नोट हेरिएको चिन्ह नलगाई खोल्नुहोस्",- "button": "पूर्वावलोकन",- "noNotes": "कुनै बन्डल गरिएको रिलिज नोट भेटिएन",- "error": "रिलिज नोट पूर्वावलोकन गर्न सकिएन"+ "button": "पूर्वावलोकन"},"onboardingPreview": {"title": "प्रारम्भिक सेटअप पूर्वावलोकन",@@ -767,8 +763,7 @@"modelMigration": {"title": "मोडेल माइग्रेसन","description": "पुरानो ढाँचाका मोडेलको अपडेट स्क्रिन साँचो रूपमा खोल्नुहोस्: यसले प्रतिस्थापन डाउनलोड गर्छ, मोडेल बदल्छ र पुराना फाइल मेटाउँछ",- "button": "खोल्नुहोस्",- "noRetired": "डिस्कमा पुरानो ढाँचाका मोडेल छैनन्"+ "button": "खोल्नुहोस्"},"soundTheme": {"label": "साउन्ड थिम",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "कुनै माइक्रोफोन भेटिएन","noInputDevice": "कुनै अडियो इनपुट डिभाइस भेटिएन। कृपया माइक्रोफोन वा हेडसेट जोडेर फेरि प्रयास गर्नुहोस्।",- "recordingFailed": "रेकर्डिङ सुरु गर्न सकिएन: {{error}}",- "modelLoadFailed": "मोडेल लोड गर्न सकिएन: {{model}}",- "modelLoadFailedUnknown": "अज्ञात मोडेल",+ "recordingFailedTitle": "रेकर्डिङ सुरु गर्न सकिएन",+ "modelLoadFailed": "Handy ले यो मोडेल लोड गर्न सकेन। फेरि प्रयास गर्नुहोस् वा अर्को मोडेल छान्नुहोस्।",+ "modelLoadFailedTitle": "मोडेल लोड गर्न सकिएन",+ "modelDownloadFailed": "डाउनलोड असफल भयो","pasteFailedTitle": "टेक्स्ट पेस्ट गर्न सकिएन","pasteFailed": "सक्रिय एपमा टेक्स्ट पेस्ट गर्न सकिएन।",+ "postProcessFailedTitle": "पोस्ट प्रोसेस बिना पेस्ट गरियो",+ "postProcessFailed": "पोस्ट प्रोसेस पूरा भएन, त्यसैले ट्रान्सक्रिप्ट जस्तो थियो त्यस्तै पेस्ट गरियो।",+ "filePostProcessFailedTitle": "पोस्ट प्रोसेस बिना ट्रान्सक्राइब गरियो",+ "filePostProcessFailed": "पोस्ट प्रोसेस पूरा भएन, त्यसैले ट्रान्सक्रिप्ट जस्तो थियो त्यस्तै सुरक्षित गरियो।",+ "fileTranscriptionFailedTitle": "फाइल ट्रान्सक्रिप्सन गर्न सकिएन","transcriptionFailedTitle": "ट्रान्सक्रिप्सन गर्न सकिएन"},+ "notices": {+ "errorOne": "{{n}} त्रुटि",+ "errorMany": "{{n}} त्रुटिहरू",+ "warningOne": "{{n}} चेतावनी",+ "warningMany": "{{n}} चेतावनीहरू",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "एपको भाषा","description": "Handy इन्टरफेसको भाषा परिवर्तन गर्नुहोस्"diff --git a/src/i18n/locales/nl/translation.json b/src/i18n/locales/nl/translation.jsonindex 6ea30f50..f16912a9 100644--- a/src/i18n/locales/nl/translation.json+++ b/src/i18n/locales/nl/translation.json@@ -423,7 +423,6 @@"title": "Oude modellen werken niet meer met Handy","description": "Ze nemen {{size}} in beslag op je computer.","delete": "Modellen verwijderen",- "deleted": "Oude modellen verwijderd","deleteFailed": "Sommige oude modellen konden niet worden verwijderd. Bekijk het logboek voor details."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Bestand transcriberen","mediaFiles": "Audio en video","fileUnsupported": "Kon geen audio lezen uit {{name}}.",- "readingFile": "{{name}} wordt gelezen...","transcribeFailed": "Transcriptie mislukt. Probeer het opnieuw.","waiting": "Wacht op transcriptie","transcribingPercent": "Transcriberen, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Voorbeeld van release-notes","description": "Open de nieuwste meegeleverde release-notes zonder deze als gelezen te markeren",- "button": "Voorbeeld",- "noNotes": "Geen meegeleverde release-notes gevonden",- "error": "Voorbeeld van release-notes laden mislukt"+ "button": "Voorbeeld"},"onboardingPreview": {"title": "Voorbeeld van onboarding",@@ -767,8 +763,7 @@"modelMigration": {"title": "Modelmigratie","description": "Open het updatescherm voor modellen in het oude formaat echt: het downloadt vervangers, wisselt van model en verwijdert oude bestanden",- "button": "Openen",- "noRetired": "Geen modellen in het oude formaat op schijf"+ "button": "Openen"},"soundTheme": {"label": "Geluidsthema",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Geen microfoon gevonden","noInputDevice": "Er is geen audio-invoerapparaat gedetecteerd. Sluit een microfoon of headset aan en probeer het opnieuw.",- "recordingFailed": "Opname starten mislukt: {{error}}",- "modelLoadFailed": "Model laden mislukt: {{model}}",- "modelLoadFailedUnknown": "onbekend model",+ "recordingFailedTitle": "Opname starten mislukt",+ "modelLoadFailed": "Handy kon dit model niet laden. Probeer het opnieuw of kies een ander model.",+ "modelLoadFailedTitle": "Model laden mislukt",+ "modelDownloadFailed": "Downloaden mislukt","pasteFailedTitle": "Tekst plakken mislukt","pasteFailed": "Tekst kon niet worden geplakt in de actieve applicatie.",+ "postProcessFailedTitle": "Geplakt zonder naverwerking",+ "postProcessFailed": "De naverwerking is niet voltooid, dus de transcriptie is ongewijzigd geplakt.",+ "filePostProcessFailedTitle": "Getranscribeerd zonder naverwerking",+ "filePostProcessFailed": "De naverwerking is niet voltooid, dus de transcriptie is ongewijzigd opgeslagen.",+ "fileTranscriptionFailedTitle": "Transcriptie van bestand mislukt","transcriptionFailedTitle": "Transcriptie mislukt"},+ "notices": {+ "errorOne": "{{n}} fout",+ "errorMany": "{{n}} fouten",+ "warningOne": "{{n}} waarschuwing",+ "warningMany": "{{n}} waarschuwingen",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Interfacetaal","description": "Wijzig de taal van de Handy-interface"diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.jsonindex e6b41662..023d62ee 100644--- a/src/i18n/locales/pl/translation.json+++ b/src/i18n/locales/pl/translation.json@@ -423,7 +423,6 @@"title": "Stare modele nie działają już z Handy","description": "Zajmują {{size}} na Twoim komputerze.","delete": "Usuń modele",- "deleted": "Usunięto stare modele","deleteFailed": "Nie udało się usunąć niektórych starych modeli. Szczegóły znajdziesz w dzienniku."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transkrybuj plik","mediaFiles": "Audio i wideo","fileUnsupported": "Nie udało się odczytać dźwięku z {{name}}.",- "readingFile": "Wczytywanie {{name}}...","transcribeFailed": "Transkrypcja nie powiodła się. Spróbuj ponownie.","waiting": "Oczekuje na transkrypcję","transcribingPercent": "Transkrypcja, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Podgląd nowości","description": "Otwórz najnowsze dołączone informacje o wydaniu bez oznaczania ich jako wyświetlone",- "button": "Podgląd",- "noNotes": "Nie znaleziono dołączonych informacji o wydaniu",- "error": "Nie udało się wyświetlić podglądu informacji o wydaniu"+ "button": "Podgląd"},"onboardingPreview": {"title": "Podgląd konfiguracji początkowej",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migracja modeli","description": "Otwórz naprawdę ekran aktualizacji modeli w starym formacie: pobierze zamienniki, przełączy modele i usunie stare pliki",- "button": "Otwórz",- "noRetired": "Brak modeli w starym formacie na dysku"+ "button": "Otwórz"},"soundTheme": {"label": "Motyw dźwiękowy",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Nie znaleziono mikrofonu","noInputDevice": "Nie wykryto żadnego urządzenia wejściowego audio. Podłącz mikrofon lub słuchawki i spróbuj ponownie.",- "recordingFailed": "Nie udało się rozpocząć nagrywania: {{error}}",- "modelLoadFailed": "Nie udało się załadować modelu: {{model}}",- "modelLoadFailedUnknown": "nieznany model",+ "recordingFailedTitle": "Nie udało się rozpocząć nagrywania",+ "modelLoadFailed": "Handy nie mógł załadować tego modelu. Spróbuj ponownie lub wybierz inny.",+ "modelLoadFailedTitle": "Nie udało się załadować modelu",+ "modelDownloadFailed": "Pobieranie nie powiodło się","pasteFailedTitle": "Nie udało się wkleić tekstu","pasteFailed": "Nie można było wkleić tekstu do aktywnej aplikacji.",+ "postProcessFailedTitle": "Wklejono bez postprocesu",+ "postProcessFailed": "Postproces nie został ukończony, więc transkrypcja została wklejona bez zmian.",+ "filePostProcessFailedTitle": "Przetranskrybowano bez postprocesu",+ "filePostProcessFailed": "Postproces nie został ukończony, więc transkrypcja została zapisana bez zmian.",+ "fileTranscriptionFailedTitle": "Transkrypcja pliku nie powiodła się","transcriptionFailedTitle": "Transkrypcja nie powiodła się"},+ "notices": {+ "errorOne": "{{n}} błąd",+ "errorMany": "{{n}} błędy",+ "warningOne": "{{n}} ostrzeżenie",+ "warningMany": "{{n}} ostrzeżenia",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Język aplikacji","description": "Zmień język interfejsu Handy"diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.jsonindex 52652cd0..566fe728 100644--- a/src/i18n/locales/pt/translation.json+++ b/src/i18n/locales/pt/translation.json@@ -423,7 +423,6 @@"title": "Os modelos antigos não funcionam mais com o Handy","description": "Eles estão ocupando {{size}} no seu computador.","delete": "Excluir modelos",- "deleted": "Modelos antigos excluídos","deleteFailed": "Não foi possível excluir alguns modelos antigos. Verifique o log para mais detalhes."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transcrever arquivo","mediaFiles": "Áudio e vídeo","fileUnsupported": "Não foi possível ler o áudio de {{name}}.",- "readingFile": "Lendo {{name}}...","transcribeFailed": "A transcrição falhou. Tente novamente.","waiting": "Aguardando transcrição","transcribingPercent": "Transcrevendo, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Pré-visualizar novidades","description": "Abrir a nota de versão incorporada mais recente sem marcá-la como vista",- "button": "Pré-visualizar",- "noNotes": "Nenhuma nota de versão incorporada encontrada",- "error": "Falha ao pré-visualizar as notas de versão"+ "button": "Pré-visualizar"},"onboardingPreview": {"title": "Pré-visualizar configuração inicial",@@ -767,8 +763,7 @@"modelMigration": {"title": "Migração de modelos","description": "Abre de verdade a tela de atualização de modelos do formato antigo: baixa os substitutos, troca de modelo e exclui os arquivos antigos",- "button": "Abrir",- "noRetired": "Nenhum modelo do formato antigo no disco"+ "button": "Abrir"},"soundTheme": {"label": "Tema de Som",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Nenhum microfone encontrado","noInputDevice": "Nenhum dispositivo de entrada de áudio foi detectado. Conecte um microfone ou fone de ouvido e tente novamente.",- "recordingFailed": "Falha ao iniciar a gravação: {{error}}",- "modelLoadFailed": "Falha ao carregar o modelo: {{model}}",- "modelLoadFailedUnknown": "modelo desconhecido",+ "recordingFailedTitle": "Falha ao iniciar a gravação",+ "modelLoadFailed": "O Handy não conseguiu carregar este modelo. Tente novamente ou escolha outro.",+ "modelLoadFailedTitle": "Falha ao carregar o modelo",+ "modelDownloadFailed": "Falha no download","pasteFailedTitle": "Falha ao colar o texto","pasteFailed": "Não foi possível colar o texto no aplicativo ativo.",+ "postProcessFailedTitle": "Colado sem pós-processamento",+ "postProcessFailed": "O pós-processamento não terminou, então a transcrição foi colada como está.",+ "filePostProcessFailedTitle": "Transcrito sem pós-processamento",+ "filePostProcessFailed": "O pós-processamento não terminou, então a transcrição foi salva como está.",+ "fileTranscriptionFailedTitle": "Falha na transcrição do arquivo","transcriptionFailedTitle": "Falha na transcrição"},+ "notices": {+ "errorOne": "{{n}} erro",+ "errorMany": "{{n}} erros",+ "warningOne": "{{n}} aviso",+ "warningMany": "{{n}} avisos",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Idioma da Aplicação","description": "Alterar o idioma da interface do Handy"diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.jsonindex 265af25b..ce631d8e 100644--- a/src/i18n/locales/ru/translation.json+++ b/src/i18n/locales/ru/translation.json@@ -423,7 +423,6 @@"title": "Старые модели больше не работают с Handy","description": "Они занимают {{size}} на вашем компьютере.","delete": "Удалить модели",- "deleted": "Старые модели удалены","deleteFailed": "Не удалось удалить некоторые старые модели. Подробности см. в журнале."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Расшифровать файл","mediaFiles": "Аудио и видео","fileUnsupported": "Не удалось прочитать аудио из {{name}}.",- "readingFile": "Чтение {{name}}...","transcribeFailed": "Не удалось выполнить расшифровку. Попробуйте ещё раз.","waiting": "Ожидает расшифровки","transcribingPercent": "Расшифровка, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Предпросмотр новинок","description": "Открыть последние встроенные примечания к выпуску, не отмечая их как просмотренные",- "button": "Предпросмотр",- "noNotes": "Встроенные примечания к выпуску не найдены",- "error": "Не удалось показать предварительный просмотр примечаний к выпуску"+ "button": "Предпросмотр"},"onboardingPreview": {"title": "Предпросмотр первоначальной настройки",@@ -767,8 +763,7 @@"modelMigration": {"title": "Миграция моделей","description": "По-настоящему открыть экран обновления моделей старого формата: загружаются замены, переключаются модели и удаляются старые файлы",- "button": "Открыть",- "noRetired": "На диске нет моделей старого формата"+ "button": "Открыть"},"soundTheme": {"label": "Звуковая тема",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Микрофон не найден","noInputDevice": "Аудиоустройство ввода не обнаружено. Подключите микрофон или гарнитуру и попробуйте снова.",- "recordingFailed": "Не удалось начать запись: {{error}}",- "modelLoadFailed": "Не удалось загрузить модель: {{model}}",- "modelLoadFailedUnknown": "неизвестная модель",+ "recordingFailedTitle": "Не удалось начать запись",+ "modelLoadFailed": "Handy не удалось загрузить эту модель. Повторите попытку или выберите другую.",+ "modelLoadFailedTitle": "Не удалось загрузить модель",+ "modelDownloadFailed": "Ошибка загрузки","pasteFailedTitle": "Не удалось вставить текст","pasteFailed": "Не удалось вставить текст в активное приложение.",+ "postProcessFailedTitle": "Вставлено без постобработки",+ "postProcessFailed": "Постобработка не завершилась, поэтому расшифровка вставлена как есть.",+ "filePostProcessFailedTitle": "Расшифровано без постобработки",+ "filePostProcessFailed": "Постобработка не завершилась, поэтому расшифровка сохранена как есть.",+ "fileTranscriptionFailedTitle": "Ошибка транскрипции файла","transcriptionFailedTitle": "Ошибка транскрипции"},+ "notices": {+ "errorOne": "{{n}} ошибка",+ "errorMany": "{{n}} ошибки",+ "warningOne": "{{n}} предупреждение",+ "warningMany": "{{n}} предупреждения",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Язык приложения","description": "Изменить язык интерфейса Handy"diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.jsonindex 27fef096..71ff9e75 100644--- a/src/i18n/locales/sv/translation.json+++ b/src/i18n/locales/sv/translation.json@@ -423,7 +423,6 @@"title": "Gamla modeller fungerar inte längre med Handy","description": "De tar upp {{size}} på din dator.","delete": "Ta bort modeller",- "deleted": "Gamla modeller borttagna","deleteFailed": "Vissa gamla modeller kunde inte tas bort. Se loggen för mer information."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Transkribera fil","mediaFiles": "Ljud och video","fileUnsupported": "Kunde inte läsa ljud från {{name}}.",- "readingFile": "Läser {{name}}...","transcribeFailed": "Transkriberingen misslyckades. Försök igen.","waiting": "Väntar på transkribering","transcribingPercent": "Transkriberar, {{percent}} %",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Förhandsvisa nyheter","description": "Öppna den senaste medföljande versionsinformationen utan att markera den som visad",- "button": "Förhandsvisa",- "noNotes": "Ingen medföljande versionsinformation hittades",- "error": "Det gick inte att förhandsvisa versionsinformationen"+ "button": "Förhandsvisa"},"onboardingPreview": {"title": "Förhandsvisa introduktionen",@@ -767,8 +763,7 @@"modelMigration": {"title": "Modellmigrering","description": "Öppna uppdateringsskärmen för modeller i gammalt format på riktigt: den laddar ner ersättare, byter modell och tar bort gamla filer",- "button": "Öppna",- "noRetired": "Inga modeller i gammalt format på disken"+ "button": "Öppna"},"soundTheme": {"label": "Ljudtema",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Ingen mikrofon hittades","noInputDevice": "Ingen ljudenhet hittades. Anslut en mikrofon eller ett headset och försök igen.",- "recordingFailed": "Misslyckades med att starta inspelning: {{error}}",- "modelLoadFailed": "Misslyckades med att ladda modell: {{model}}",- "modelLoadFailedUnknown": "okänd modell",+ "recordingFailedTitle": "Inspelningen kunde inte starta",+ "modelLoadFailed": "Handy kunde inte läsa in den här modellen. Försök igen eller välj en annan.",+ "modelLoadFailedTitle": "Misslyckades med att ladda modell",+ "modelDownloadFailed": "Nedladdningen misslyckades","pasteFailedTitle": "Det gick inte att klistra in texten","pasteFailed": "Texten kunde inte klistras in i det aktiva programmet.",+ "postProcessFailedTitle": "Inklistrat utan efterbearbetning",+ "postProcessFailed": "Efterbearbetningen slutfördes inte, så transkriptionen klistrades in som den är.",+ "filePostProcessFailedTitle": "Transkriberat utan efterbearbetning",+ "filePostProcessFailed": "Efterbearbetningen slutfördes inte, så transkriptionen sparades som den är.",+ "fileTranscriptionFailedTitle": "Transkriptionen av filen misslyckades","transcriptionFailedTitle": "Transkriptionen misslyckades"},+ "notices": {+ "errorOne": "{{n}} fel",+ "errorMany": "{{n}} fel",+ "warningOne": "{{n}} varning",+ "warningMany": "{{n}} varningar",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Applikationsspråk","description": "Ändra språket i Handy-gränssnittet"diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.jsonindex 4ba89384..982dc2e3 100644--- a/src/i18n/locales/tr/translation.json+++ b/src/i18n/locales/tr/translation.json@@ -423,7 +423,6 @@"title": "Eski modeller artık Handy ile çalışmıyor","description": "Bilgisayarınızda {{size}} yer kaplıyorlar.","delete": "Modelleri sil",- "deleted": "Eski modeller silindi","deleteFailed": "Bazı eski modeller silinemedi. Ayrıntılar için günlüğe bakın."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Dosyayı Yazıya Dök","mediaFiles": "Ses ve video","fileUnsupported": "{{name}} dosyasından ses okunamadı.",- "readingFile": "{{name}} okunuyor...","transcribeFailed": "Yazıya dökme başarısız oldu. Lütfen tekrar deneyin.","waiting": "Yazıya dökülmeyi bekliyor","transcribingPercent": "Yazıya dökülüyor, %{{percent}}",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Yenilikleri Önizle","description": "En son paketlenmiş sürüm notunu görüldü olarak işaretlemeden aç",- "button": "Önizle",- "noNotes": "Paketlenmiş sürüm notu bulunamadı",- "error": "Sürüm notları önizlenemedi"+ "button": "Önizle"},"onboardingPreview": {"title": "İlk kurulum önizlemesi",@@ -767,8 +763,7 @@"modelMigration": {"title": "Model Geçişi","description": "Eski biçimli model güncelleme ekranını gerçekten açın: yedekleri indirir, modelleri değiştirir ve eski dosyaları siler",- "button": "Aç",- "noRetired": "Diskte eski biçimli model yok"+ "button": "Aç"},"soundTheme": {"label": "Ses Teması",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Mikrofon bulunamadı","noInputDevice": "Ses giriş aygıtı algılanamadı. Lütfen bir mikrofon veya kulaklık bağlayın ve tekrar deneyin.",- "recordingFailed": "Kayıt başlatılamadı: {{error}}",- "modelLoadFailed": "Model yüklenemedi: {{model}}",- "modelLoadFailedUnknown": "bilinmeyen model",+ "recordingFailedTitle": "Kayıt başlatılamadı",+ "modelLoadFailed": "Handy bu modeli yükleyemedi. Yeniden deneyin veya başka bir model seçin.",+ "modelLoadFailedTitle": "Model yüklenemedi",+ "modelDownloadFailed": "İndirme başarısız oldu","pasteFailedTitle": "Metin yapıştırılamadı","pasteFailed": "Metin etkin uygulamaya yapıştırılamadı.",+ "postProcessFailedTitle": "Son işlem olmadan yapıştırıldı",+ "postProcessFailed": "Son işlem tamamlanmadı, bu yüzden metin olduğu gibi yapıştırıldı.",+ "filePostProcessFailedTitle": "Son işlem olmadan yazıya döküldü",+ "filePostProcessFailed": "Son işlem tamamlanmadı, bu yüzden metin olduğu gibi kaydedildi.",+ "fileTranscriptionFailedTitle": "Dosya transkripsiyonu başarısız oldu","transcriptionFailedTitle": "Transkripsiyon başarısız oldu"},+ "notices": {+ "errorOne": "{{n}} hata",+ "errorMany": "{{n}} hata",+ "warningOne": "{{n}} uyarı",+ "warningMany": "{{n}} uyarı",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Uygulama Dili","description": "Handy arayüzünün dilini değiştirin"diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.jsonindex 1ec2d82a..1535b4c4 100644--- a/src/i18n/locales/uk/translation.json+++ b/src/i18n/locales/uk/translation.json@@ -423,7 +423,6 @@"title": "Старі моделі більше не працюють з Handy","description": "Вони займають {{size}} на вашому комп'ютері.","delete": "Видалити моделі",- "deleted": "Старі моделі видалено","deleteFailed": "Не вдалося видалити деякі старі моделі. Подробиці дивіться в журналі."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Розшифрувати файл","mediaFiles": "Аудіо та відео","fileUnsupported": "Не вдалося прочитати аудіо з {{name}}.",- "readingFile": "Читання {{name}}...","transcribeFailed": "Не вдалося розшифрувати. Спробуйте ще раз.","waiting": "Очікує на розшифрування","transcribingPercent": "Розшифрування, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Попередній перегляд новин","description": "Відкрити останні вбудовані примітки до випуску, не позначаючи їх як переглянуті",- "button": "Перегляд",- "noNotes": "Вбудовані примітки до випуску не знайдено",- "error": "Не вдалося переглянути примітки до випуску"+ "button": "Перегляд"},"onboardingPreview": {"title": "Попередній перегляд початкового налаштування",@@ -767,8 +763,7 @@"modelMigration": {"title": "Міграція моделей","description": "По-справжньому відкрити екран оновлення моделей старого формату: він завантажує заміни, перемикає моделі й видаляє старі файли",- "button": "Відкрити",- "noRetired": "На диску немає моделей старого формату"+ "button": "Відкрити"},"soundTheme": {"label": "Звукова тема",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Мікрофон не знайдено","noInputDevice": "Не виявлено жодного пристрою введення звуку. Підключіть мікрофон або гарнітуру та спробуйте знову.",- "recordingFailed": "Не вдалося розпочати запис: {{error}}",- "modelLoadFailed": "Не вдалося завантажити модель: {{model}}",- "modelLoadFailedUnknown": "невідома модель",+ "recordingFailedTitle": "Не вдалося розпочати запис",+ "modelLoadFailed": "Handy не вдалося завантажити цю модель. Спробуйте ще раз або виберіть іншу.",+ "modelLoadFailedTitle": "Не вдалося завантажити модель",+ "modelDownloadFailed": "Помилка завантаження","pasteFailedTitle": "Не вдалося вставити текст","pasteFailed": "Не вдалося вставити текст до активної програми.",+ "postProcessFailedTitle": "Вставлено без постобробки",+ "postProcessFailed": "Постобробка не завершилася, тому розшифровку вставлено як є.",+ "filePostProcessFailedTitle": "Розшифровано без постобробки",+ "filePostProcessFailed": "Постобробка не завершилася, тому розшифровку збережено як є.",+ "fileTranscriptionFailedTitle": "Помилка транскрипції файлу","transcriptionFailedTitle": "Помилка транскрипції"},+ "notices": {+ "errorOne": "{{n}} помилка",+ "errorMany": "{{n}} помилки",+ "warningOne": "{{n}} попередження",+ "warningMany": "{{n}} попередження",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Мова інтерфейсу","description": "Змінити мову інтерфейсу Handy"diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.jsonindex e5a632eb..5064f86b 100644--- a/src/i18n/locales/vi/translation.json+++ b/src/i18n/locales/vi/translation.json@@ -423,7 +423,6 @@"title": "Các mô hình cũ không còn hoạt động với Handy","description": "Chúng đang chiếm {{size}} trên máy tính của bạn.","delete": "Xóa mô hình",- "deleted": "Đã xóa các mô hình cũ","deleteFailed": "Không thể xóa một số mô hình cũ. Hãy kiểm tra nhật ký để biết chi tiết."},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "Chép lời tệp","mediaFiles": "Âm thanh và video","fileUnsupported": "Không thể đọc âm thanh từ {{name}}.",- "readingFile": "Đang đọc {{name}}...","transcribeFailed": "Chép lời thất bại. Vui lòng thử lại.","waiting": "Đang chờ chép lời","transcribingPercent": "Đang chép lời, {{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "Xem trước điểm mới","description": "Mở ghi chú phát hành mới nhất được đóng gói mà không đánh dấu là đã xem",- "button": "Xem trước",- "noNotes": "Không tìm thấy ghi chú phát hành được đóng gói",- "error": "Không thể xem trước ghi chú phát hành"+ "button": "Xem trước"},"onboardingPreview": {"title": "Xem trước thiết lập ban đầu",@@ -767,8 +763,7 @@"modelMigration": {"title": "Chuyển đổi mô hình","description": "Mở thật màn hình cập nhật mô hình định dạng cũ: nó sẽ tải xuống bản thay thế, chuyển mô hình và xóa các tệp cũ",- "button": "Mở",- "noRetired": "Không có mô hình định dạng cũ trên ổ đĩa"+ "button": "Mở"},"soundTheme": {"label": "Chủ đề âm thanh",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "Không tìm thấy micrô","noInputDevice": "Không phát hiện thiết bị đầu vào âm thanh nào. Vui lòng kết nối micrô hoặc tai nghe và thử lại.",- "recordingFailed": "Không thể bắt đầu ghi âm: {{error}}",- "modelLoadFailed": "Không thể tải mô hình: {{model}}",- "modelLoadFailedUnknown": "mô hình không xác định",+ "recordingFailedTitle": "Không thể bắt đầu ghi âm",+ "modelLoadFailed": "Handy không thể tải mô hình này. Hãy thử lại hoặc chọn mô hình khác.",+ "modelLoadFailedTitle": "Không thể tải mô hình",+ "modelDownloadFailed": "Tải xuống thất bại","pasteFailedTitle": "Không thể dán văn bản","pasteFailed": "Không thể dán văn bản vào ứng dụng đang hoạt động.",+ "postProcessFailedTitle": "Đã dán không qua xử lý sau",+ "postProcessFailed": "Xử lý sau chưa hoàn tất nên bản chép lời được dán nguyên trạng.",+ "filePostProcessFailedTitle": "Đã chép lời không qua xử lý sau",+ "filePostProcessFailed": "Xử lý sau chưa hoàn tất nên bản chép lời được lưu nguyên trạng.",+ "fileTranscriptionFailedTitle": "Phiên âm tệp thất bại","transcriptionFailedTitle": "Phiên âm thất bại"},+ "notices": {+ "errorOne": "{{n}} lỗi",+ "errorMany": "{{n}} lỗi",+ "warningOne": "{{n}} cảnh báo",+ "warningMany": "{{n}} cảnh báo",+ "errorsAndWarnings": "{{errors}}, {{warnings}}"+ },"appLanguage": {"title": "Ngôn ngữ ứng dụng","description": "Thay đổi ngôn ngữ giao diện của Handy"diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.jsonindex a41e9d66..2cffb8b1 100644--- a/src/i18n/locales/zh-TW/translation.json+++ b/src/i18n/locales/zh-TW/translation.json@@ -423,7 +423,6 @@"title": "舊模型已無法在 Handy 中使用","description": "它們佔用了您電腦上 {{size}} 的空間。","delete": "刪除模型",- "deleted": "已刪除舊模型","deleteFailed": "部分舊模型無法刪除。請查看記錄檔以了解詳情。"},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "轉錄檔案","mediaFiles": "音訊和影片","fileUnsupported": "無法讀取 {{name}} 中的音訊。",- "readingFile": "正在讀取 {{name}}...","transcribeFailed": "轉錄失敗,請重試。","waiting": "等待轉錄","transcribingPercent": "正在轉錄,{{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "預覽新功能","description": "開啟最新內建版本資訊,且不標記為已看過",- "button": "預覽",- "noNotes": "找不到內建版本資訊",- "error": "無法預覽版本資訊"+ "button": "預覽"},"onboardingPreview": {"title": "預覽新手引導",@@ -767,8 +763,7 @@"modelMigration": {"title": "模型遷移","description": "實際開啟舊格式模型更新畫面:會下載替代模型、切換模型並刪除舊檔案",- "button": "開啟",- "noRetired": "磁碟上沒有舊格式模型"+ "button": "開啟"},"soundTheme": {"label": "聲音主題",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "找不到麥克風","noInputDevice": "未偵測到音訊輸入裝置。請連接麥克風或耳機後重試。",- "recordingFailed": "錄音啟動失敗: {{error}}",- "modelLoadFailed": "載入模型失敗: {{model}}",- "modelLoadFailedUnknown": "未知模型",+ "recordingFailedTitle": "錄音啟動失敗",+ "modelLoadFailed": "Handy 無法載入此模型。請再試一次或選擇其他模型。",+ "modelLoadFailedTitle": "載入模型失敗",+ "modelDownloadFailed": "下載失敗","pasteFailedTitle": "貼上文字失敗","pasteFailed": "無法將文字貼上至目前作用中的應用程式。",+ "postProcessFailedTitle": "已貼上,未經後處理",+ "postProcessFailed": "後處理未完成,因此按原樣貼上轉錄內容。",+ "filePostProcessFailedTitle": "已轉錄,未經後處理",+ "filePostProcessFailed": "後處理未完成,因此按原樣儲存轉錄內容。",+ "fileTranscriptionFailedTitle": "檔案轉錄失敗","transcriptionFailedTitle": "轉錄失敗"},+ "notices": {+ "errorOne": "{{n}} 個錯誤",+ "errorMany": "{{n}} 個錯誤",+ "warningOne": "{{n}} 個警告",+ "warningMany": "{{n}} 個警告",+ "errorsAndWarnings": "{{errors}},{{warnings}}"+ },"appLanguage": {"title": "應用程式語言","description": "變更 Handy 介面的語言"diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.jsonindex 4e268533..6c239927 100644--- a/src/i18n/locales/zh/translation.json+++ b/src/i18n/locales/zh/translation.json@@ -423,7 +423,6 @@"title": "旧模型已无法在 Handy 中使用","description": "它们占用了您电脑上 {{size}} 的空间。","delete": "删除模型",- "deleted": "已删除旧模型","deleteFailed": "部分旧模型无法删除。请查看日志了解详情。"},"rescan": {@@ -703,7 +702,6 @@"transcribeFile": "转录文件","mediaFiles": "音频和视频","fileUnsupported": "无法读取 {{name}} 中的音频。",- "readingFile": "正在读取 {{name}}...","transcribeFailed": "转录失败,请重试。","waiting": "等待转录","transcribingPercent": "正在转录,{{percent}}%",@@ -741,9 +739,7 @@"whatsNewPreview": {"title": "预览新功能","description": "打开最新内置发行说明,且不标记为已查看",- "button": "预览",- "noNotes": "未找到内置发行说明",- "error": "无法预览发行说明"+ "button": "预览"},"onboardingPreview": {"title": "预览新手引导",@@ -767,8 +763,7 @@"modelMigration": {"title": "模型迁移","description": "真实打开旧格式模型更新界面:会下载替代模型、切换模型并删除旧文件",- "button": "打开",- "noRetired": "磁盘上没有旧格式模型"+ "button": "打开"},"soundTheme": {"label": "声音主题",@@ -936,13 +931,26 @@},"noInputDeviceTitle": "未找到麦克风","noInputDevice": "未检测到音频输入设备。请连接麦克风或耳机后重试。",- "recordingFailed": "录音启动失败: {{error}}",- "modelLoadFailed": "加载模型失败: {{model}}",- "modelLoadFailedUnknown": "未知模型",+ "recordingFailedTitle": "录音启动失败",+ "modelLoadFailed": "Handy 无法加载此模型。请重试或选择其他模型。",+ "modelLoadFailedTitle": "加载模型失败",+ "modelDownloadFailed": "下载失败","pasteFailedTitle": "粘贴文本失败","pasteFailed": "无法将文本粘贴到当前活动的应用程序中。",+ "postProcessFailedTitle": "已粘贴,未经后处理",+ "postProcessFailed": "后处理未完成,因此按原样粘贴转录内容。",+ "filePostProcessFailedTitle": "已转录,未经后处理",+ "filePostProcessFailed": "后处理未完成,因此按原样保存转录内容。",+ "fileTranscriptionFailedTitle": "文件转录失败","transcriptionFailedTitle": "转录失败"},+ "notices": {+ "errorOne": "{{n}} 个错误",+ "errorMany": "{{n}} 个错误",+ "warningOne": "{{n}} 个警告",+ "warningMany": "{{n}} 个警告",+ "errorsAndWarnings": "{{errors}},{{warnings}}"+ },"appLanguage": {"title": "应用语言","description": "更改 Handy 界面的语言"diff --git a/src/lib/notices.ts b/src/lib/notices.tsnew file mode 100644index 00000000..082326a4--- /dev/null+++ b/src/lib/notices.ts@@ -0,0 +1,51 @@+import type { TFunction } from "i18next";+import { platform } from "@tauri-apps/plugin-os";+import type { NoticeCode } from "@/bindings";++interface NoticeDisplay {+ title: string;+ // Without one, the Live overlay shows the notice's detail instead.+ explanation?: (t: TFunction) => string;+}++// See "Error notices" in AGENTS.md for how to add a code.+const NOTICE_DISPLAY: Record<NoticeCode, NoticeDisplay> = {+ TranscriptionFailed: {+ title: "errors.transcriptionFailedTitle",+ },+ PasteFailed: {+ title: "errors.pasteFailedTitle",+ explanation: (t) => t("errors.pasteFailed"),+ },+ NoMicrophone: {+ title: "errors.noInputDeviceTitle",+ explanation: (t) => t("errors.noInputDevice"),+ },+ MicPermissionDenied: {+ title: "errors.micPermissionDeniedTitle",+ explanation: (t) =>+ t(`errors.micPermissionDenied.${platform()}`, {+ defaultValue: t("errors.micPermissionDenied.generic"),+ }),+ },+ RecordingFailed: {+ title: "errors.recordingFailedTitle",+ },+ ModelLoadFailed: {+ title: "errors.modelLoadFailedTitle",+ explanation: (t) => t("errors.modelLoadFailed"),+ },+ PostProcessFailed: {+ title: "errors.postProcessFailedTitle",+ explanation: (t) => t("errors.postProcessFailed"),+ },+ FileTranscriptionFailed: {+ title: "errors.fileTranscriptionFailedTitle",+ },+ FilePostProcessFailed: {+ title: "errors.filePostProcessFailedTitle",+ explanation: (t) => t("errors.filePostProcessFailed"),+ },+};++export const noticeDisplay = (code: NoticeCode) => NOTICE_DISPLAY[code];diff --git a/src/lib/types/events.ts b/src/lib/types/events.tsindex dcc16e3b..a1fb00d2 100644--- a/src/lib/types/events.ts+++ b/src/lib/types/events.ts@@ -4,8 +4,3 @@ export interface ModelStateEvent {model_name?: string;error?: string;}--export interface RecordingErrorEvent {- error_type: string;- detail?: string;-}diff --git a/src/main.tsx b/src/main.tsxindex e0de72b2..6eb579ce 100644--- a/src/main.tsx+++ b/src/main.tsx@@ -24,9 +24,11 @@ import "./i18n";// Initialize model store (loads models and sets up event listeners)import { useModelStore } from "./stores/modelStore";+import { useNoticeStore } from "./stores/noticeStore";import { useTranscriptionJobsStore } from "./stores/transcriptionJobsStore";useModelStore.getState().initialize();useTranscriptionJobsStore.getState().initialize();+useNoticeStore.getState().initialize();ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(<React.StrictMode>diff --git a/src/overlay/RecordingOverlay.css b/src/overlay/RecordingOverlay.cssindex bc3c880d..61973845 100644--- a/src/overlay/RecordingOverlay.css+++ b/src/overlay/RecordingOverlay.css@@ -149,7 +149,9 @@width transition (intrinsic max-content can't be transitioned, and every labelis short enough to fit the resting pill, so content-sizing produced no visiblegrow). The resting pill hugs the waveform; the working pill is roomy enough to- center the longest label — the .swork-label ellipsis is only a safety net past it. */+ center the longest label — the .swork-label ellipsis is only a safety net past it.+ A notice hugs its title instead, so RecordingOverlay.tsx measures that width and+ sets it inline, which keeps it animatable. */.scard.compact {animation: none;width: var(--ov-rest-w);@@ -158,6 +160,54 @@width: var(--ov-work-w);}+/* Notice: badge and title, in the pill and the Live panel. */+.scard.cnotice {+ cursor: pointer;+}+.scard.cnotice:not(.open) {+ border-radius: 24px;+}+.scard.level-error {+ --notice: var(--color-error);+}+.scard.level-warning {+ --notice: var(--color-warning);+}+.sbase.snotice {+ grid-template-columns: auto minmax(0, max-content);+ justify-content: center;+ gap: 7px;+ padding: 0 13px;+}+.nglyph {+ display: block;+ width: 16px;+ height: 16px;+ flex: none;+ color: var(--notice);+}+.nlabel {+ font-size: 12px;+ color: var(--color-text);+ white-space: nowrap;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+}+/* Measures the full title, since the visible one can be cut off. */+.nlabel.nprobe {+ position: absolute;+ visibility: hidden;+ overflow: visible;+}+.stext-cap .ndetail {+ display: block;+ color: var(--s-muted);+ font-style: normal;+ font-size: 13px;+ line-height: 1.4;+}+/* text region — auto-height open via grid-rows trick; region fades as a whole */.stext {display: grid;diff --git a/src/overlay/RecordingOverlay.tsx b/src/overlay/RecordingOverlay.tsxindex 4deb7ee4..f90e7822 100644--- a/src/overlay/RecordingOverlay.tsx+++ b/src/overlay/RecordingOverlay.tsx@@ -4,16 +4,28 @@ import { useTranslation } from "react-i18next";import "./RecordingOverlay.css";import { commands, events } from "@/bindings";import type {+ Notice,StreamPhase,StreamPhaseEvent,StreamTextEvent,StreamWorkKind,} from "@/bindings";+import { NoticeBadgeIcon } from "@/components/icons/NoticeBadgeIcon";import i18n, { syncLanguageFromSettings } from "@/i18n";+import { noticeDisplay } from "@/lib/notices";import type { ModelStateEvent } from "@/lib/types/events";import { getLanguageDirection } from "@/lib/utils/rtl";-type OverlayState = "recording" | "streaming" | "transcribing" | "processing";+type OverlayState =+ | "recording"+ | "streaming"+ | "transcribing"+ | "processing"+ | "notice"+ | "live_notice";++const isNoticeState = (state: OverlayState) =>+ state === "notice" || state === "live_notice";// Number of reactive bars in the waveform (the simple, smoothed style shared by// every overlay form). Mic levels arrive as 16 FFT buckets; we take the first N.@@ -25,6 +37,12 @@ const WAVE_BARS = 9;// the user is speaking; cold loads can take 40s+.const SLOW_MODEL_LOAD_MS = 2000;+// Matches the delay in `hide_recording_overlay`, so a notice can fade out.+const OVERLAY_FADE_MS = 300;++// 13px padding on each side, the 16px badge and its 7px gap.+const NOTICE_PILL_CHROME = 49;+const RecordingOverlay: React.FC = () => {const { t } = useTranslation();const [isVisible, setIsVisible] = useState(false);@@ -61,6 +79,10 @@ const RecordingOverlay: React.FC = () => {// True once live text overflows the cap. A top overlay fades its top edge only// while overflowing, so the resting first line stays crisp flush under the pill.const [overflowing, setOverflowing] = useState(false);+ const [notice, setNotice] = useState<Notice | null>(null);+ const [noticeWidth, setNoticeWidth] = useState<number>();+ const noticeProbeRef = useRef<HTMLSpanElement>(null);+ const fadeTimerRef = useRef<ReturnType<typeof setTimeout>>();const smoothedLevelsRef = useRef<number[]>(Array(16).fill(0));// Live-text scroll-back: the text region "sticks" to the newest line while the@@ -72,8 +94,15 @@ const RecordingOverlay: React.FC = () => {useEffect(() => {const setupEventListeners = async () => {+ const unlistenNotice = await listen<Notice>("overlay-notice", (event) => {+ clearTimeout(fadeTimerRef.current);+ setNotice(event.payload);+ });+const unlistenShow = await listen("show-overlay", async (event) => {const overlayState = event.payload as OverlayState;+ clearTimeout(fadeTimerRef.current);+ if (!isNoticeState(overlayState)) setNotice(null);// Reset synchronously before settings I/O. A fast microphone can emit// recording-ready while the awaits below are in flight; resetting after// them would overwrite that event and leave the overlay stuck arming.@@ -111,6 +140,13 @@ const RecordingOverlay: React.FC = () => {const unlistenHide = await listen("hide-overlay", () => {setIsVisible(false);setCaptureReady(false);+ // A notice keeps rendering while it fades. Dropping the transcript here+ // stops a later notice from showing an old session's text.+ clearTimeout(fadeTimerRef.current);+ fadeTimerRef.current = setTimeout(() => {+ setNotice(null);+ setStreamText({ committed: "", tentative: "" });+ }, OVERLAY_FADE_MS);});const unlistenReady = await listen("recording-ready", () => {@@ -168,6 +204,7 @@ const RecordingOverlay: React.FC = () => {);return () => {+ unlistenNotice();unlistenShow();unlistenHide();unlistenReady();@@ -176,6 +213,7 @@ const RecordingOverlay: React.FC = () => {unlistenPhase();unlistenModel();clearTimeout(modelLoadTimerRef.current);+ clearTimeout(fadeTimerRef.current);};};@@ -211,7 +249,21 @@ const RecordingOverlay: React.FC = () => {setOverflowing(false);}, [session]);- if (!isVisible) return null;+ const shownNotice = notice && isNoticeState(state) ? notice : null;+ const noticeTitle = shownNotice+ ? t(noticeDisplay(shownNotice.code).title)+ : "";++ // CSS can't animate to an intrinsic width, so a notice pill gets a measured one.+ useLayoutEffect(() => {+ const probe = noticeProbeRef.current;+ if (!probe) return;+ setNoticeWidth(+ Math.ceil(probe.getBoundingClientRect().width) + NOTICE_PILL_CHROME,+ );+ }, [noticeTitle, isVisible]);++ if (!isVisible && !shownNotice) return null;// Re-pin when the user is within ~a line of the bottom; unpin otherwise.const handleStreamScroll = () => {@@ -285,28 +337,55 @@ const RecordingOverlay: React.FC = () => {</div>);+ const noticeRow = (+ <div className="sbase snotice">+ <NoticeBadgeIcon className="nglyph" />+ <span className="nlabel">{noticeTitle}</span>+ </div>+ );+ const noticeProbe = shownNotice && (+ <span ref={noticeProbeRef} className="nlabel nprobe" aria-hidden="true">+ {noticeTitle}+ </span>+ );+ const noticeClass = shownNotice ? `cnotice level-${shownNotice.level}` : "";+ const dismissNotice = shownNotice+ ? () => commands.dismissOverlayNotice()+ : undefined;+// ---- Live overlay: a pill that sculpts open into a panel ----- if (state === "streaming") {+ const liveNotice = state === "live_notice" ? shownNotice : null;+ if (state === "streaming" || liveNotice) {const hasText =streamText.committed.length > 0 || streamText.tentative.length > 0;- const working = phase === "working";+ const working = !liveNotice && phase === "working";+ // A notice keeps the transcript; with none, the panel explains the notice.+ const noticeText =+ liveNotice && !hasText+ ? (noticeDisplay(liveNotice.code).explanation?.(t) ?? liveNotice.detail)+ : null;// While listening, a slow model load opens the panel with a notice where the// text would be, so speech that isn't transcribing yet doesn't look ignored.- const loadingNotice = modelLoadSlow && !working && !hasText;+ const loadingNotice = !liveNotice && modelLoadSlow && !working && !hasText;// Keep the panel open whenever there's text — even while finalizing — so the// transcript stays put under a working spinner instead of collapsing and// squishing the text mid-stream. Only fall back to the small working pill// when there was no text to preserve.- const open = hasText || loadingNotice || (loadNoticeShown && !working);+ const open = liveNotice+ ? hasText || !!noticeText+ : hasText || loadingNotice || (loadNoticeShown && !working);const collapsed = working && !hasText;return (<div dir={direction} className={`ov-stage ${position}`}>+ {noticeProbe}<divkey={session}className={`scard ${open ? "open" : ""} ${collapsed ? "working" : ""} ${isVisible ? "" : "leaving"- }`}+ } ${noticeClass}`}+ style={liveNotice && !open ? { width: noticeWidth } : undefined}+ onClick={dismissNotice}><div className="stext"><div className="stext-clip">@@ -321,25 +400,30 @@ const RecordingOverlay: React.FC = () => {{t("overlay.loadingModel")}</span>)}+ {noticeText && <span className="ndetail">{noticeText}</span>}<span className="committed">{streamText.committed ? streamText.committed + " " : ""}</span><span className="tentative">{streamText.tentative}</span>{/* Drop the blinking caret once finalizing — it's no longercapturing, and a static spinner conveys the work. */}- {!working && !loadingNotice && <span className="scaret" />}+ {!working && !loadingNotice && !liveNotice && (+ <span className="scaret" />+ )}</p></div></div></div>- {working- ? workingRow(- workKind === "polishing"- ? t("overlay.processing")- : transcribingLabel,- true,- )- : listeningRow(open, true)}+ {liveNotice+ ? noticeRow+ : working+ ? workingRow(+ workKind === "polishing"+ ? t("overlay.processing")+ : transcribingLabel,+ true,+ )+ : listeningRow(open, true)}</div></div>);@@ -357,10 +441,17 @@ const RecordingOverlay: React.FC = () => {dir={direction}className={`ov-stage ${position} ov-fade ${isVisible ? "show" : ""}`}>+ {noticeProbe}<div- className={`scard compact ${working && isVisible ? "cworking" : ""}`}+ className={`scard compact ${working && isVisible ? "cworking" : ""} ${noticeClass}`}+ style={shownNotice ? { width: noticeWidth } : undefined}+ onClick={dismissNotice}>- {working ? workingRow(workLabel, true) : listeningRow(false, true)}+ {shownNotice+ ? noticeRow+ : working+ ? workingRow(workLabel, true)+ : listeningRow(false, true)}</div></div>);diff --git a/src/stores/modelStore.ts b/src/stores/modelStore.tsindex d8784837..fc0e6e64 100644--- a/src/stores/modelStore.ts+++ b/src/stores/modelStore.ts@@ -3,7 +3,10 @@ import { subscribeWithSelector } from "zustand/middleware";import { produce } from "immer";import { listen } from "@tauri-apps/api/event";import { commands, type ModelInfo } from "@/bindings";-import { toast } from "sonner";+import i18n from "@/i18n";+import { notify, useNoticeStore } from "@/stores/noticeStore";++const downloadNoticeKey = (modelId: string) => `model-download:${modelId}`;export interface DownloadProgress {model_id: string;@@ -151,6 +154,7 @@ export const useModelStore = create<ModelsStore>()(downloadModel: async (modelId: string) => {try {+ useNoticeStore.getState().clearLocal(downloadNoticeKey(modelId));set({ error: null });set(produce((state) => {@@ -290,7 +294,11 @@ export const useModelStore = create<ModelsStore>()(state.error = error;}),);- toast.error(error);+ notify({+ title: i18n.t("errors.modelDownloadFailed"),+ detail: error,+ key: downloadNoticeKey(modelId),+ });},);diff --git a/src/stores/noticeStore.ts b/src/stores/noticeStore.tsnew file mode 100644index 00000000..761f0834--- /dev/null+++ b/src/stores/noticeStore.ts@@ -0,0 +1,143 @@+import { create } from "zustand";+import {+ commands,+ events,+ type Notice,+ type NoticeLevel,+ type NoticeSource,+} from "@/bindings";++/** A message from the frontend, so the backend doesn't hold it. */+export interface LocalNotice {+ id: string;+ level: NoticeLevel;+ title: string;+ detail?: string;+ action?: { label: string; onClick: () => void };+ /** Waits in the footer after its toast, like a backend notice. */+ kept: boolean;+}++export interface NotifyOptions {+ title: string;+ detail?: string;+ level?: NoticeLevel;+ action?: LocalNotice["action"];+ /**+ * Keeps the notice in the footer until it's dismissed or cleared with this+ * key. Without one it's a click's result, and ends with its toast.+ */+ key?: string;+}++// The one place the frontend handles notices. A new one pops up as a toast.+// Dismissing it ends it; otherwise the toast times out and a kept notice waits+// in the footer, which can open the full list.+interface NoticeStore {+ // Mirrors the backend's active notices, newest first.+ notices: Notice[];+ // Newest first.+ local: LocalNotice[];+ // What's popped up right now: a notice's source, or a local notice's id.+ toasts: string[];+ panelOpen: boolean;+ // Decides where the card sits: there's no footer during onboarding.+ footerShown: boolean;+ initialized: boolean;+ initialize: () => Promise<void>;+ notify: (options: NotifyOptions) => void;+ openPanel: () => void;+ /** Takes everything off screen. Kept notices wait in the footer. */+ hide: () => void;+ /** Ends a backend notice: here, in the tray and in the footer. */+ dismiss: (notice: Notice) => void;+ clearLocal: (id: string) => void;+ setFooterShown: (shown: boolean) => void;+}++// Drops toasts whose notice has ended, and closes the panel once it's empty.+const prune = (+ state: Pick<NoticeStore, "notices" | "local" | "toasts" | "panelOpen">,+) => ({+ ...state,+ toasts: state.toasts.filter(+ (id) =>+ state.local.some((notice) => notice.id === id) ||+ state.notices.some((notice) => notice.source === id),+ ),+ panelOpen: state.panelOpen && state.notices.length + state.local.length > 0,+});++export const useNoticeStore = create<NoticeStore>()((set, get) => ({+ notices: [],+ local: [],+ toasts: [],+ panelOpen: false,+ footerShown: false,+ initialized: false,++ initialize: async () => {+ if (get().initialized) return;+ set({ initialized: true });++ // Listen first so nothing is missed. An event then outranks the snapshot,+ // which may have been read before it.+ let changed = false;+ await events.noticesChanged.listen(({ payload: { notices, raised } }) => {+ changed = true;+ set(({ toasts, panelOpen, local }) => {+ // The open panel is already showing it.+ const popped: NoticeSource[] =+ raised && !panelOpen ? [raised.source] : [];+ return prune({+ notices,+ local,+ toasts: [...new Set([...toasts, ...popped])],+ panelOpen,+ });+ });+ });+ const notices = await commands.getActiveNotices();+ if (!changed) set({ notices });+ },++ notify: ({ title, detail, level = "error", action, key }) =>+ set(({ local, toasts, panelOpen }) => {+ // The same failure twice is one row.+ const id = key ?? `${title}|${detail ?? ""}`;+ return {+ local: [+ { id, level, title, detail, action, kept: key !== undefined },+ ...local.filter((notice) => notice.id !== id),+ ],+ toasts: panelOpen ? toasts : [...new Set([...toasts, id])],+ };+ }),++ openPanel: () => set({ panelOpen: true, toasts: [] }),++ hide: () =>+ set(({ local }) => ({+ panelOpen: false,+ toasts: [],+ local: local.filter((notice) => notice.kept),+ })),++ dismiss: (notice) => {+ commands.dismissNotice(notice.source, notice.code);+ },++ clearLocal: (id) =>+ set((state) =>+ prune({+ ...state,+ local: state.local.filter((notice) => notice.id !== id),+ }),+ ),++ setFooterShown: (footerShown) => set({ footerShown }),+}));++/** Shows a message from the frontend. It's the app's only toast. */+export const notify = (options: NotifyOptions) =>+ useNoticeStore.getState().notify(options);diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 1baff40a..44e46e92 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -12,7 +12,7 @@ import type {LanguageDetectionMode,} from "@/bindings";import { commands } from "@/bindings";-import { toast } from "sonner";+import { notify } from "@/stores/noticeStore";interface SettingsStore {settings: Settings | null;@@ -185,8 +185,8 @@ const settingUpdaters: {const result = await commands.changeVadBackendSetting(value as VadBackend);if (result.status === "error") {// Rejected switches (e.g. mid-recording) roll the dropdown back via the- // throw below; the toast tells the user why.- toast.error(result.error);+ // throw below; the notice tells the user why.+ notify({ title: result.error });throw new Error(result.error);}},diff --git a/src/stores/transcriptionJobsStore.ts b/src/stores/transcriptionJobsStore.tsindex 9d59438b..48febd5a 100644--- a/src/stores/transcriptionJobsStore.ts+++ b/src/stores/transcriptionJobsStore.ts@@ -1,6 +1,4 @@import { create } from "zustand";-import { toast } from "sonner";-import i18n from "@/i18n";import { events, type TranscriptionJobStatus } from "@/bindings";export type ActiveJobStatus = Extract<@@ -38,7 +36,6 @@ export const useTranscriptionJobsStore = create<TranscriptionJobsStore>()(});if (status.state === "failed") {console.error(`Transcription of entry ${entryId} failed:`, status);- toast.error(i18n.t("settings.history.transcribeFailed"));}});},