Skip to content

Commit 65e8a9d

Browse files
committed
consistency with the messages
1 parent 49db995 commit 65e8a9d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 3 additions & 3 deletions
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

@@ -64,11 +64,11 @@ const HomeInput: React.FC<HomeInputProps> = ({
6464
} else {
6565
// plan_id is not valid, handle accordingly
6666
console.log('Invalid plan:', response.status);
67-
showToast("Failed to create plan", "error");
67+
showToast("Failed to create plan.", "error");
6868
}
6969
} catch (error) {
7070
console.error("Failed to create plan:", error);
71-
showToast("Something went wrong", "error");
71+
showToast("Something went wrong.", "error");
7272
} finally {
7373
setSubmitting(false);
7474
}

src/frontend_react/src/pages/PlanPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const PlanPage: React.FC = () => {
102102
setInput("");
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
if (!planData?.plan) return;
@@ -115,10 +115,10 @@ const PlanPage: React.FC = () => {
115115
chatInput
116116
);
117117
setInput("");
118-
showToast("Clarification submitted successfully", "success");
118+
showToast("Clarification submitted successfully.", "success");
119119
await loadPlanData(false);
120120
} catch (error) {
121-
showToast("Failed to submit clarification", "error");
121+
showToast("Failed to submit clarification.", "error");
122122
console.error("Failed to submit clarification:", error);
123123
} finally {
124124
setInput("");
@@ -135,10 +135,10 @@ const PlanPage: React.FC = () => {
135135
setSubmitting(true);
136136
try {
137137
await PlanDataService.stepStatus(step, true);
138-
showToast("Step approved successfully", "success");
138+
showToast("Step approved successfully.", "success");
139139
await loadPlanData(false);
140140
} catch (error) {
141-
showToast("Failed to approve step", "error");
141+
showToast("Failed to approve step.", "error");
142142
console.error("Failed to reject step:", error);
143143
} finally {
144144
setProcessingSubtaskId(null);
@@ -155,10 +155,10 @@ const PlanPage: React.FC = () => {
155155
setSubmitting(true);
156156
try {
157157
await PlanDataService.stepStatus(step, false);
158-
showToast("Step rejected successfully", "success");
158+
showToast("Step rejected successfully.", "success");
159159
await loadPlanData(false);
160160
} catch (error) {
161-
showToast("Failed to reject step", "error");
161+
showToast("Failed to reject step.", "error");
162162
console.error("Failed to reject step:", error);
163163
} finally {
164164
setProcessingSubtaskId(null);

0 commit comments

Comments
 (0)