Fix desktop app reliability: YouTube embeds, panel failures, circuit breakers

- Fix YouTube Error 153 by serving embed bridge from cloud URL (origin match)
- Fix channel switching when playerContainer detached from DOM
- Fix Fires panel infinite spinner when API returns 0 or fails
- Make TECH variant button open web URL instead of being disabled
- Fix circuit breaker caching empty results as success in 6 services
  (polymarket, wingbits, military-flights, outages, conflicts, protests)
- Improve sidecar: cloud-preferred routing, failed import caching, log dedup
- Add FINNHUB_API_KEY and NASA_FIRMS_API_KEY to Tauri secret keys
- Add early 503 for missing ACLED token in risk-scores
This commit is contained in:
Elie Habib
2026-02-14 00:25:02 +04:00
parent ad4e52caee
commit 75a85ebafc
13 changed files with 118 additions and 104 deletions

View File

@@ -20,7 +20,7 @@ const DESKTOP_LOG_FILE: &str = "desktop.log";
const MENU_FILE_SETTINGS_ID: &str = "file.settings";
const MENU_DEBUG_OPEN_LOGS_ID: &str = "debug.open_logs";
const MENU_DEBUG_OPEN_SIDECAR_LOG_ID: &str = "debug.open_sidecar_log";
const SUPPORTED_SECRET_KEYS: [&str; 13] = [
const SUPPORTED_SECRET_KEYS: [&str; 15] = [
"GROQ_API_KEY",
"OPENROUTER_API_KEY",
"FRED_API_KEY",
@@ -34,6 +34,8 @@ const SUPPORTED_SECRET_KEYS: [&str; 13] = [
"OPENSKY_CLIENT_SECRET",
"AISSTREAM_API_KEY",
"VITE_WS_RELAY_URL",
"FINNHUB_API_KEY",
"NASA_FIRMS_API_KEY",
];
#[derive(Default)]