fix: AI Writer index slashCommands corrigé
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 1m4s
CI / Deploy production (on server) (push) Has been skipped

L'item 'Écrire avec l'IA' était inséré au milieu du tableau, décalant tous les index. Déplacé à la fin (index 37).
This commit is contained in:
Antigravity
2026-06-14 20:36:46 +00:00
parent 82f87b65cb
commit 4750686b9f

View File

@@ -176,9 +176,6 @@ const slashCommands: SlashItem[] = [
{
title: 'Développer', description: 'Élaborer et enrichir le texte', icon: Expand, category: 'IA Note', isAi: true, aiOption: 'clarify', command: () => { }
},
{
title: 'Écrire avec l\'IA', description: 'Générer du contenu au curseur', icon: Sparkles, category: 'IA Note', isAi: true, aiOption: 'write', command: () => { }
},
// Formatting extensions
{ title: 'Bold', description: 'Make text bold', icon: Bold, category: 'Formatting', command: (e) => e.chain().focus().toggleBold().run() },
{ title: 'Italic', description: 'Make text italic', icon: Italic, category: 'Formatting', command: (e) => e.chain().focus().toggleItalic().run() },
@@ -241,6 +238,9 @@ const slashCommands: SlashItem[] = [
title: 'Columns', description: 'Side-by-side layout', icon: Columns3, category: 'Basic blocks', shortcut: '/cols',
command: (e) => { insertColumnsBlock(e, 2) },
},
{
title: 'Écrire avec l\'IA', description: 'Générer du contenu au curseur', icon: Sparkles, category: 'IA Note', isAi: true, aiOption: 'write', command: () => { }
},
]
async function aiReformulate(text: string, option: string, t: any, language?: string): Promise<string> {