chore #14740: remove claude config and customer selection

Summaries are not coming to the desktop app, and the customer is chosen
in the web UI after the upload:
- drop the Anthropic key (Service::Anthropic, Settings field) and delete
  a leftover keyring entry best-effort at startup
- drop the Summary model, the store's summary accessors and the
  "Zusammenfassung" tab; the transcript is the detail's only content
- drop the mocked customer accounts, list_accounts/set_account and the
  "Kunde" dropdown; calls.account_id and summaries stay in the schema

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 14:35:41 +01:00
co-authored by Claude Opus 5.5
parent eff07d2f59
commit 54a81e5ba0
16 changed files with 72 additions and 417 deletions
-16
View File
@@ -8,7 +8,6 @@
use std::thread;
use std::time::Duration;
use recorder_core::accounts::{self, Account};
use recorder_core::call_view::{CallDetail, CallListItem};
use recorder_core::capture::Devices;
use recorder_core::model::CallId;
@@ -186,21 +185,6 @@ pub fn rename_call(
Ok(())
}
#[tauri::command]
pub fn list_accounts() -> Vec<Account> {
accounts::list()
}
/// Assigns a call to a customer account, or to none.
#[tauri::command]
pub fn set_account(
state: State<'_, AppState>,
id: CallId,
account_id: Option<String>,
) -> CmdResult<()> {
state.set_account(id, account_id.as_deref())
}
/// Deletes a finished call's audio and row. Closes the prompt if no call
/// waits for it any more; otherwise the prompt reloads and shows the next.
/// While its DeepScript jobs are still on record, nothing is deleted and a
+2 -2
View File
@@ -83,6 +83,8 @@ pub fn run() {
&config_dir.join("last-version"),
&app.package_info().version.to_string(),
);
// Off the main thread: the keyring can be slow to answer.
std::thread::spawn(KeyringSecrets::remove_unused_keys);
// Before anything can start a run.
processing::clear_upload_dir(app.handle());
app.manage(state);
@@ -137,8 +139,6 @@ pub fn run() {
commands::merge_speakers,
commands::unmerge_speaker,
commands::rename_call,
commands::list_accounts,
commands::set_account,
updater::get_update,
updater::install_update,
])
-36
View File
@@ -17,7 +17,6 @@ use std::time::{Duration, Instant};
use chrono::{DateTime, Local};
use recorder_audio::RenderSession;
use recorder_core::accounts;
use recorder_core::call_view::{self, CallDetail, CallListItem};
use recorder_core::capture::{CaptureSource, OutputTarget};
use recorder_core::detect::{CallDetector, DetectorEvent, MicSession};
@@ -496,17 +495,6 @@ impl AppState {
self.store.set_title(id, title).map_err(|e| e.to_string())
}
/// Assigns call `id` to one of the [`accounts`], or to none.
pub fn set_account(&self, id: CallId, account_id: Option<&str>) -> Result<(), String> {
if account_id.is_some_and(|account| !accounts::exists(account)) {
return Err("Unbekannter Kunde".to_string());
}
self.find_call(id)?;
self.store
.set_account(id, account_id)
.map_err(|e| format!("Kunde konnte nicht gespeichert werden: {e}"))
}
fn find_call(&self, id: CallId) -> Result<Call, String> {
self.store
.get_call(id)
@@ -1244,30 +1232,6 @@ mod tests {
);
}
#[test]
fn the_account_is_set_and_cleared() {
let f = fixture();
let (id, _, _) = finished_call(&f, "a");
let account = |f: &Fixture| f.state.store.get_call(id).unwrap().unwrap().account_id;
f.state.set_account(id, Some("mock-2")).unwrap();
assert_eq!(account(&f).as_deref(), Some("mock-2"));
f.state.set_account(id, None).unwrap();
assert_eq!(account(&f), None);
}
#[test]
fn only_known_accounts_and_calls_are_assigned() {
let f = fixture();
let (id, _, _) = finished_call(&f, "a");
assert!(f.state.set_account(id, Some("mock-99")).is_err());
assert!(f.state.set_account(id + 1, Some("mock-1")).is_err());
assert_eq!(
f.state.store.get_call(id).unwrap().unwrap().account_id,
None
);
}
#[test]
fn invalid_detection_delays_are_not_saved() {
let f = fixture();