Skip to content

Commit 941abb7

Browse files
committed
remove punctuation to the toasts
1 parent 1e2ab68 commit 941abb7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/frontend_react/src/components/content/HomeInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const HomeInput: React.FC<HomeInputProps> = ({
4646
const handleSubmit = async () => {
4747
if (input.trim()) {
4848
setSubmitting(true);
49-
showToast("Creating a plan...", "progress");
49+
showToast("Creating a plan", "progress");
5050
try {
5151
const response = await TaskService.submitInputTask(input.trim());
5252

src/frontend_react/src/pages/PlanPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)