From 3fff7a1475b748f80a4e5879d870229217136dc2 Mon Sep 17 00:00:00 2001 From: Nelson Pires Date: Mon, 9 Feb 2026 11:52:54 -0300 Subject: [PATCH] feat: Remove notifications when comments are added/edited/removed (#369) * fix: remove comment toast notifications Remove success toasts after updating a comment Remove success toasts after saving a comment draft Keep saving logic and line reset intact without toast feedback * fix(ui): remove success toast on draft save Remove success toast after saving a draft Suppress toast when updating an existing draft * fix(planview): suppress toast on save and reset state Remove toast notification after saving or updating a draft Clear comment input and line selection after commit Preserve draft save/update logic without triggering toast --- packages/ui/src/components/views/FilesView.tsx | 2 -- packages/ui/src/components/views/PierreDiffViewer.tsx | 2 -- packages/ui/src/components/views/PlanView.tsx | 2 -- 3 files changed, 6 deletions(-) diff --git a/packages/ui/src/components/views/FilesView.tsx b/packages/ui/src/components/views/FilesView.tsx index aef44a7a..1867fd59 100644 --- a/packages/ui/src/components/views/FilesView.tsx +++ b/packages/ui/src/components/views/FilesView.tsx @@ -745,7 +745,6 @@ export const FilesView: React.FC = () => { startLine: finalRange.start, endLine: finalRange.end, }); - toast.success('Comment updated'); } else { addDraft({ sessionKey, @@ -757,7 +756,6 @@ export const FilesView: React.FC = () => { language: getLanguageFromExtension(selectedFile.path) || 'text', text: text.trim(), }); - toast.success('Comment saved'); } setLineSelection(null); diff --git a/packages/ui/src/components/views/PierreDiffViewer.tsx b/packages/ui/src/components/views/PierreDiffViewer.tsx index ceada607..678fdd7c 100644 --- a/packages/ui/src/components/views/PierreDiffViewer.tsx +++ b/packages/ui/src/components/views/PierreDiffViewer.tsx @@ -299,8 +299,6 @@ export const PierreDiffViewer: React.FC = ({ setCommentText(''); setSelection(null); setEditingDraftId(null); - - toast.success(editingDraftId ? 'Comment updated' : 'Comment saved'); }, [selection, fileName, language, original, modified, addDraft, updateDraft, getSessionKey, editingDraftId]); diff --git a/packages/ui/src/components/views/PlanView.tsx b/packages/ui/src/components/views/PlanView.tsx index 6e81d174..2b6f4f18 100644 --- a/packages/ui/src/components/views/PlanView.tsx +++ b/packages/ui/src/components/views/PlanView.tsx @@ -267,8 +267,6 @@ export const PlanView: React.FC = () => { setCommentText(''); setLineSelection(null); setEditingDraftId(null); - - toast.success(editingDraftId ? 'Comment updated' : 'Comment saved'); }, [lineSelection, content, displayPath, resolvedPath, addDraft, updateDraft, getSessionKey, extractSelectedCode, editingDraftId]);