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": "Transforming...",
"transformSuccess": "Text transformed to Markdown successfully!",
"transformError": "Error during transformation",
"convertToRichtext": "Convert to Rich Text",
"convertingToRichtext": "Converting...",
"assistant": "AI Assistant",
"generating": "Generating...",
"generateTitles": "Generate titles",
@@ -920,6 +922,9 @@
},
"admin": {
"title": "Admin Dashboard",
"adminConsole": "Admin console",
"navSection": "Navigation",
"backToApp": "Back to Memento",
"userManagement": "User Management",
"chat": "AI Chat",
"lab": "The Lab",
@@ -962,6 +967,11 @@
"providerEmbeddingRequired": "AI_PROVIDER_EMBEDDING is required",
"providerOllamaOption": "🦙 Ollama (Local & Free)",
"providerOpenAIOption": "🤖 OpenAI (GPT-5, GPT-4)",
"providerAnthropicOption": "🧠 Anthropic (Claude API)",
"providerAnthropicCustomOption": "🧩 Anthropic custom (Messages API — MiniMax, etc.)",
"anthropicModelHint": "Pick a Claude model ID from the suggestions or enter one manually (no remote model list for the official API).",
"anthropicCustomModelHint": "Anthropic-compatible Messages API (e.g. MiniMax): base URL https://api.minimax.io/anthropic (China: https://api.minimaxi.com/anthropic), model MiniMax-M2.7. Embeddings: use provider « Custom » + OpenAI URL https://api.minimax.io/v1.",
"anthropicCustomNoModelList": "This gateway does not expose an OpenAI-style /models list — pick the model from the suggestions or type it (e.g. MiniMax-M2.7).",
"providerCustomOption": "🔧 Custom OpenAI-Compatible",
"providerDeepSeekOption": "🔍 DeepSeek",
"providerOpenRouterOption": "🌐 OpenRouter",