@@ -102,24 +102,24 @@ const PlanPage: React.FC = () => {
102102
103103 console . log ( "handleOnchatSubmit called with input:" , chatInput ) ;
104104 if ( ! chatInput . trim ( ) ) {
105- showToast ( "Please enter a clarification. " , "error" ) ;
105+ showToast ( "Please enter a clarification" , "error" ) ;
106106 return ;
107107 }
108108 setInput ( "" ) ;
109109 if ( ! planData ?. plan ) return ;
110110 setSubmitting ( true ) ;
111- showToast ( "Submitting clarification... " , "progress" ) ;
111+ showToast ( "Submitting clarification" , "progress" ) ;
112112 try {
113113 await PlanDataService . submitClarification (
114114 planData . plan . id ,
115115 planData . plan . session_id ,
116116 chatInput
117117 ) ;
118118 setInput ( "" ) ;
119- showToast ( "Clarification submitted successfully. " , "success" ) ;
119+ showToast ( "Clarification submitted successfully" , "success" ) ;
120120 await loadPlanData ( false ) ;
121121 } catch ( error ) {
122- showToast ( "Failed to submit clarification. " , "error" ) ;
122+ showToast ( "Failed to submit clarification" , "error" ) ;
123123 console . error ( "Failed to submit clarification:" , error ) ;
124124 } finally {
125125 setInput ( "" ) ;
@@ -132,20 +132,20 @@ const PlanPage: React.FC = () => {
132132 const handleApproveStep = useCallback (
133133 async ( step : Step , total : number , completed : number , approve : boolean ) => {
134134 setProcessingSubtaskId ( step . id ) ;
135- const toastMessage = approve ? "Approving step... " : "Rejecting step... " ;
135+ const toastMessage = approve ? "Approving step" : "Rejecting step" ;
136136 showToast ( toastMessage , "progress" ) ;
137137 setSubmitting ( true ) ;
138138 try {
139139 await PlanDataService . stepStatus ( step , approve ) ;
140- showToast ( `Step ${ approve ? "approved" : "rejected" } successfully. ` , "success" ) ;
140+ showToast ( `Step ${ approve ? "approved" : "rejected" } successfully` , "success" ) ;
141141 if ( total === completed ) {
142142 setReloadLeftList ( true ) ;
143143 } else {
144144 setReloadLeftList ( false ) ;
145145 }
146146 await loadPlanData ( false ) ;
147147 } catch ( error ) {
148- showToast ( `Failed to ${ approve ? "approve" : "reject" } step. ` , "error" ) ;
148+ showToast ( `Failed to ${ approve ? "approve" : "reject" } step` , "error" ) ;
149149 console . error ( `Failed to ${ approve ? "approve" : "reject" } step:` , error ) ;
150150 } finally {
151151 setProcessingSubtaskId ( null ) ;
0 commit comments