feat(ai-note): ajouter boutons Générer slides/diagramme dans le panneau IA
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 3s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 3s
- Nouveau endpoint POST /api/agents/run-for-note : crée un agent one-shot (slide-generator ou excalidraw-generator) avec la note courante comme source et l'exécute immédiatement - ContextualAIChat : prop noteId + section "Générer depuis cette note" avec deux boutons gradient (violet=slides, cyan=diagramme), spinner pendant la génération, bouton de téléchargement .pptx ou lien "Ouvrir dans le Lab" après succès - note-editor.tsx : passage de note.id à ContextualAIChat - i18n fr/en : nouvelles clés ai.generate.* Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -436,6 +436,18 @@
|
||||
"translate": "Translate",
|
||||
"explain": "Explain"
|
||||
},
|
||||
"generate": {
|
||||
"sectionLabel": "Generate from this note",
|
||||
"slides": "Generate a presentation",
|
||||
"diagram": "Generate a diagram",
|
||||
"loading": "Generating…",
|
||||
"slidesReady": "Presentation generated!",
|
||||
"diagramReady": "Diagram generated!",
|
||||
"downloadPptx": "Download .pptx",
|
||||
"openDiagram": "Open in Lab",
|
||||
"error": "Error during generation",
|
||||
"noNoteId": "Save the note first"
|
||||
},
|
||||
"openAssistant": "Open AI Assistant",
|
||||
"poweredByMomento": "Powered by Momento AI",
|
||||
"welcomeMsg": "Hello! I'm your AI assistant. How can I help you with your notes today? I can help refine tone, expand messaging, or summarize content.",
|
||||
|
||||
@@ -436,6 +436,18 @@
|
||||
"translate": "Traduire",
|
||||
"explain": "Expliquer"
|
||||
},
|
||||
"generate": {
|
||||
"sectionLabel": "Générer depuis cette note",
|
||||
"slides": "Générer une présentation",
|
||||
"diagram": "Générer un diagramme",
|
||||
"loading": "Génération en cours…",
|
||||
"slidesReady": "Présentation générée !",
|
||||
"diagramReady": "Diagramme généré !",
|
||||
"downloadPptx": "Télécharger le .pptx",
|
||||
"openDiagram": "Ouvrir dans le Lab",
|
||||
"error": "Erreur lors de la génération",
|
||||
"noNoteId": "Enregistrez d'abord la note"
|
||||
},
|
||||
"openAssistant": "Ouvrir IA Note",
|
||||
"poweredByMomento": "Propulsé par Momento AI",
|
||||
"welcomeMsg": "Bonjour ! Je suis votre assistant IA. Comment puis-je vous aider avec vos notes ? Je peux affiner le ton, développer un message ou résumer le contenu.",
|
||||
|
||||
Reference in New Issue
Block a user