From e80a8be9888852449857d1dc0e39443c53034a8a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 16:56:48 +0530 Subject: [PATCH 01/12] feat: run finished notify --- src/components/molecules/InterpretationButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/InterpretationButtons.tsx b/src/components/molecules/InterpretationButtons.tsx index 0723bac2..c4e68789 100644 --- a/src/components/molecules/InterpretationButtons.tsx +++ b/src/components/molecules/InterpretationButtons.tsx @@ -105,7 +105,7 @@ export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsP const finished = await interpretCurrentRecording(); setInfo({ ...info, running: false }); if (finished) { - notify('info', 'Interpretation finished'); + notify('info', 'Run finished'); } else { notify('error', 'Interpretation failed to start'); } From 07a14f5dac6085789932dbf01f76145dda9b9f03 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 16:57:21 +0530 Subject: [PATCH 02/12] feat: run failed to start notify --- src/components/molecules/InterpretationButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/InterpretationButtons.tsx b/src/components/molecules/InterpretationButtons.tsx index c4e68789..bb83cdb4 100644 --- a/src/components/molecules/InterpretationButtons.tsx +++ b/src/components/molecules/InterpretationButtons.tsx @@ -107,7 +107,7 @@ export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsP if (finished) { notify('info', 'Run finished'); } else { - notify('error', 'Interpretation failed to start'); + notify('error', 'Run failed to start'); } } }; From db2bb6f5217351f7e97b6d7e2d32815f74d57e0a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 16:58:36 +0530 Subject: [PATCH 03/12] feat: cannot delete robots notify --- src/components/molecules/RecordingsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index e9f0aebc..48ce48ec 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -253,7 +253,7 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl checkRunsForRecording(row.id).then((result: boolean) => { if (result) { - notify('warning', 'Cannot delete recording as it has active runs'); + notify('warning', 'Cannot delete robot as it has active runs'); } }) From 4ce3bd640857d083bd41e593c4fda0f0ce7d577c Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 16:59:01 +0530 Subject: [PATCH 04/12] feat: cannot delete robots notify --- src/components/molecules/RecordingsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 48ce48ec..24b7d5d0 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -253,7 +253,7 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl checkRunsForRecording(row.id).then((result: boolean) => { if (result) { - notify('warning', 'Cannot delete robot as it has active runs'); + notify('warning', 'Cannot delete robot as it has associated runs'); } }) From a1ec35e8f2b8841668b8ee83c3d17ba12521a0d0 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 16:59:21 +0530 Subject: [PATCH 05/12] feat: delete robot notify --- src/components/molecules/RecordingsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 24b7d5d0..66888c96 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -260,7 +260,7 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl deleteRecordingFromStorage(row.id).then((result: boolean) => { if (result) { setRows([]); - notify('success', 'Recording deleted successfully'); + notify('success', 'Robot deleted successfully'); fetchRecordings(); } }) From 5c1666cd2416b0f222d22606b81d435cad357e0d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:00:31 +0530 Subject: [PATCH 06/12] feat: save robot notify --- src/components/molecules/SaveRecording.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/SaveRecording.tsx b/src/components/molecules/SaveRecording.tsx index 60ef3fa6..cfebc867 100644 --- a/src/components/molecules/SaveRecording.tsx +++ b/src/components/molecules/SaveRecording.tsx @@ -46,7 +46,7 @@ export const SaveRecording = ({ fileName }: SaveRecordingProps) => { }; const exitRecording = useCallback(async () => { - notify('success', 'Recording saved successfully'); + notify('success', 'Robot saved successfully'); if (browserId) { await stopRecording(browserId); } From 834e87c413246ec64d176827826e330c31ad4ed1 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:01:35 +0530 Subject: [PATCH 07/12] feat: api key copy notify --- src/components/organisms/ApiKey.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/organisms/ApiKey.tsx b/src/components/organisms/ApiKey.tsx index 675edb72..0b0b4083 100644 --- a/src/components/organisms/ApiKey.tsx +++ b/src/components/organisms/ApiKey.tsx @@ -88,7 +88,7 @@ const ApiKeyManager = () => { navigator.clipboard.writeText(apiKey); setCopySuccess(true); setTimeout(() => setCopySuccess(false), 2000); - notify('info', 'Copied to clipboard'); + notify('info', 'Copied API Key successfully'); } }; From 46641a285a37b8f9d4a8ea501def491425d5dc81 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:03:10 +0530 Subject: [PATCH 08/12] feat: robot interpretation notify --- src/pages/MainPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index 6ce7efe8..55647950 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -49,10 +49,10 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { aborted = true; notifyAboutAbort(runId).then(async (response) => { if (response) { - notify('success', `Interpretation of ${runningRecordingName} aborted successfully`); + notify('success', `Interpretation of robot ${runningRecordingName} aborted successfully`); await stopRecording(ids.browserId); } else { - notify('error', `Failed to abort the interpretation ${runningRecordingName} recording`); + notify('error', `Failed to abort the interpretation of ${runningRecordingName} robot`); } }) } From 74c4abee21c73aa703ecddb4e13906150cbc4de2 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:03:43 +0530 Subject: [PATCH 09/12] feat: robot interpretation notify --- src/pages/MainPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index 55647950..abec5929 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -67,9 +67,9 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { interpretStoredRecording(runId).then(async (interpretation: boolean) => { if (!aborted) { if (interpretation) { - notify('success', `Interpretation of ${runningRecordingName} succeeded`); + notify('success', `Interpretation of robot ${runningRecordingName} succeeded`); } else { - notify('success', `Failed to interpret ${runningRecordingName} recording`); + notify('success', `Failed to interpret ${runningRecordingName} robot`); // destroy the created browser await stopRecording(browserId); } From 428034f48cb41a235c41826d5048af501b86212e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:04:09 +0530 Subject: [PATCH 10/12] feat: robot run notify --- src/pages/MainPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index abec5929..752a17ea 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -98,9 +98,9 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { socket.on('debugMessage', debugMessageHandler); setContent('runs'); if (browserId) { - notify('info', `Running recording: ${runningRecordingName}`); + notify('info', `Running robot: ${runningRecordingName}`); } else { - notify('error', `Failed to run recording: ${runningRecordingName}`); + notify('error', `Failed to run robot: ${runningRecordingName}`); } }) return (socket: Socket, browserId: string, runId: string) => { From e195f9e7da2b05581f2b1660a11bae7ec0548553 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:04:34 +0530 Subject: [PATCH 11/12] feat: robot schedule notify --- src/pages/MainPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index 752a17ea..8af3d3c5 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -113,9 +113,9 @@ export const MainPage = ({ handleEditRecording }: MainPageProps) => { scheduleStoredRecording(runningRecordingId, settings) .then(({ message, runId }: ScheduleRunResponse) => { if (message === 'success') { - notify('success', `Recording ${runningRecordingName} scheduled successfully`); + notify('success', `Robot ${runningRecordingName} scheduled successfully`); } else { - notify('error', `Failed to schedule recording ${runningRecordingName}`); + notify('error', `Failed to schedule robot ${runningRecordingName}`); } }); } From 3e1794bf49505896259b89051d3bbde3485aebf7 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 29 Nov 2024 17:05:35 +0530 Subject: [PATCH 12/12] feat: show error if regristration fails --- src/pages/Register.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Register.tsx b/src/pages/Register.tsx index b2a3eebf..c64de4ae 100644 --- a/src/pages/Register.tsx +++ b/src/pages/Register.tsx @@ -44,7 +44,7 @@ const Register = () => { window.localStorage.setItem("user", JSON.stringify(data)); navigate("/"); } catch (error:any) { - notify("error", error.response.data || "Registration Failed. Please try again."); + notify("error", `Registration Failed. Please try again. ${error.response.data}`); setLoading(false); } };