feat: icon-only toolbar, versioning fixes, history modal, PanelRight repositioning

- Toolbar: remove text labels from all icon buttons (AI, Save, Preview, Convert)
  all buttons now icon-only with title tooltip for accessibility
- Toolbar: reposition PanelRight (info panel toggle) to far right after three-dot menu
- Versioning: decouple getNoteHistory/restoreNoteVersion from global userAISettings.noteHistory
  now checks note.historyEnabled directly — unblocks manual per-note history
- Versioning: add 'Sauvegarder cette version' button in Versions tab of info panel
  calls commitNoteHistory with visual feedback (spinner → success state)
- note-document-info-panel: import commitNoteHistory, add isSavingVersion state
- notes.ts: fix double guard that silently blocked all history operations
This commit is contained in:
Antigravity
2026-05-09 07:28:03 +00:00
parent 574c8b3166
commit 97b08e5d0b
65 changed files with 2991 additions and 2296 deletions

View File

@@ -339,6 +339,8 @@
"transforming": "Transformation...",
"transformSuccess": "Texte transformé en Markdown avec succès !",
"transformError": "Erreur lors de la transformation",
"convertToRichtext": "Convertir en texte enrichi",
"convertingToRichtext": "Conversion...",
"assistant": "IA Note",
"generating": "Génération...",
"generateTitles": "Générer des titres",
@@ -991,6 +993,9 @@
},
"admin": {
"title": "Tableau de bord Admin",
"adminConsole": "Console dadministration",
"navSection": "Navigation",
"backToApp": "Retour à Memento",
"userManagement": "Gestion des utilisateurs",
"chat": "Chat IA",
"lab": "Le Lab",
@@ -1033,6 +1038,11 @@
"providerEmbeddingRequired": "AI_PROVIDER_EMBEDDING est requis",
"providerOllamaOption": "🦙 Ollama (Local & Gratuit)",
"providerOpenAIOption": "🤖 OpenAI (GPT-5, GPT-4)",
"providerAnthropicOption": "🧠 Anthropic (API Claude)",
"providerAnthropicCustomOption": "🧩 Anthropic personnalisé (API Messages — MiniMax, etc.)",
"anthropicModelHint": "Choisissez un identifiant Claude parmi les suggestions ou saisissez-en un (pas de liste distante pour lAPI officielle).",
"anthropicCustomModelHint": "API Messages compatible Anthropic (ex. MiniMax) : URL de base https://api.minimax.io/anthropic (Chine : https://api.minimaxi.com/anthropic), modèle MiniMax-M2.7. Pour les embeddings, utilisez le fournisseur « Personnalisé » avec lURL OpenAI https://api.minimax.io/v1.",
"anthropicCustomNoModelList": "Cette passerelle nexpose pas de liste /models style OpenAI — choisissez le modèle dans les suggestions ou saisissez-le (ex. MiniMax-M2.7).",
"providerCustomOption": "🔧 Custom Compatible OpenAI",
"providerDeepSeekOption": "🔍 DeepSeek",
"providerOpenRouterOption": "🌐 OpenRouter",