fix(itinerary): fix route optimization reactivity and replace api key provider dropdown with AI LLM providers

- fix optimizeDayOrder() dual-update: directly set days[dayIndex].items + days before
  saveReorderedItems() so it reads the correct post-optimization order synchronously
  (Svelte 4 batches reactive statements; days wasn't updated before save read it)
- also patch collection.itinerary order values so reactive rebuild uses new order
- replace single google_maps <option> with 8 AI LLM provider options
  (anthropic, openai, gemini, ollama, groq, mistral, github_models, openrouter)
- add getApiKeyProviderLabel() helper for saved key display with google_maps fallback
- add i18n keys for all new provider labels in en.json and de.json
This commit is contained in:
2026-03-08 17:45:44 +00:00
parent c5be09bcb9
commit d4e0ef14b8
4 changed files with 62 additions and 6 deletions

View File

@@ -745,6 +745,14 @@
"no_api_keys_saved": "No API keys saved yet.",
"add_api_key": "Add API Key",
"provider": "Provider",
"api_key_provider_anthropic": "Anthropic",
"api_key_provider_openai": "OpenAI",
"api_key_provider_gemini": "Google Gemini",
"api_key_provider_ollama": "Ollama (Local)",
"api_key_provider_groq": "Groq",
"api_key_provider_mistral": "Mistral AI",
"api_key_provider_github_models": "GitHub Models",
"api_key_provider_openrouter": "OpenRouter",
"api_key_provider_google_places": "Google Places API",
"api_key_value": "API Key",
"api_key_value_placeholder": "Enter your API key",