fix: console.log retirés du code production + i18n slash menu
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 5m31s
CI / Deploy production (on server) (push) Successful in 21s

- Retiré tous les console.log de rich-text-editor.tsx (2)
- Retiré console.log qui fuitait le contenu utilisateur dans chart-suggestions-dialog.tsx
- Commenté tous les console.log dans notes.ts (9 appels)
- i18n: slashCharts, slashLivingBlock, frequentCommands traduits
This commit is contained in:
Antigravity
2026-06-20 16:18:27 +00:00
parent e07af2084b
commit af277f418a
3 changed files with 10 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ export function ChartSuggestionsDialog({
suggestCharts({ content, selection, noteId })
.then(data => {
if (aborted) return
console.log('[ChartSuggestionsDialog] Response:', data)
// [debug removed — was logging user content]
setResponse(data)
setLoading(false)
})

View File

@@ -595,6 +595,7 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
}
},
onUpdate: ({ editor: e }) => {
// Debounce getHTML() — it's expensive on long notes
emitContentChange(e.getHTML())
if (!e.isEditable) return
const { from, empty } = e.state.selection
@@ -857,7 +858,7 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
if (!editor || !editor.isEditable) return
try {
console.log('[handleSelectChart] Inserting chart type:', chartContent.split('\n')[0])
// [debug removed]
// Get current selection
const { from, to, empty } = editor.state.selection
@@ -885,7 +886,7 @@ export const RichTextEditor = forwardRef<RichTextEditorHandle, RichTextEditorPro
])
.run()
console.log('[handleSelectChart] Chart inserted after selection')
// [debug removed]
} catch (error) {
console.error('[handleSelectChart] Failed:', error)
toast.error('Failed to insert chart: ' + (error as Error).message)