From 9379671082ffe1a9078111896a8d4867fc873448 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:46:54 +0530 Subject: [PATCH 01/10] feat: apply border --- src/components/molecules/IntegrationSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index 8eeb7727..24b0769e 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -182,7 +182,7 @@ export const IntegrationSettingsModal = ({ {recording && recording.google_sheet_id ? ( <> - + Google Sheet Integrated Successfully. Every time this robot creates a successful run, its captured data is appended to your {recording.google_sheet_name} Google Sheet. From 6e60b735d36e1005268756b23d9183ebac471d73 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:47:36 +0530 Subject: [PATCH 02/10] feat: apply margin top --- src/components/molecules/IntegrationSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index 24b0769e..b9385813 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -182,7 +182,7 @@ export const IntegrationSettingsModal = ({ {recording && recording.google_sheet_id ? ( <> - + Google Sheet Integrated Successfully. Every time this robot creates a successful run, its captured data is appended to your {recording.google_sheet_name} Google Sheet. From 8d50052984f025f047ebf62ca7c63ffbbbb3bd74 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:48:03 +0530 Subject: [PATCH 03/10] feat: remove beta tag --- src/components/molecules/IntegrationSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/IntegrationSettings.tsx b/src/components/molecules/IntegrationSettings.tsx index b9385813..c31605de 100644 --- a/src/components/molecules/IntegrationSettings.tsx +++ b/src/components/molecules/IntegrationSettings.tsx @@ -177,7 +177,7 @@ export const IntegrationSettingsModal = ({ > Integrate with Google Sheet{" "} - + {/* */} {recording && recording.google_sheet_id ? ( From aefd64e40d770a19a74664d12182f841067927e0 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:49:22 +0530 Subject: [PATCH 04/10] chore: remove console log --- src/components/molecules/RobotEdit.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/molecules/RobotEdit.tsx b/src/components/molecules/RobotEdit.tsx index 26317260..f68beee2 100644 --- a/src/components/molecules/RobotEdit.tsx +++ b/src/components/molecules/RobotEdit.tsx @@ -58,7 +58,6 @@ interface RobotSettingsProps { } export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { - console.log("robot edit"); const [robot, setRobot] = useState(null); const { recordingId, notify } = useGlobalInfoStore(); From 9733c0133453ed579650b7fb9b41d92b6d5cdd92 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:51:23 +0530 Subject: [PATCH 05/10] feat: add beta tag --- src/components/molecules/NavBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/molecules/NavBar.tsx b/src/components/molecules/NavBar.tsx index 30feef51..139583d0 100644 --- a/src/components/molecules/NavBar.tsx +++ b/src/components/molecules/NavBar.tsx @@ -3,7 +3,7 @@ import axios from 'axios'; import styled from "styled-components"; import { stopRecording } from "../../api/recording"; import { useGlobalInfoStore } from "../../context/globalInfo"; -import { IconButton, Menu, MenuItem, Typography, Avatar } from "@mui/material"; +import { IconButton, Menu, MenuItem, Typography, Avatar, Chip, } from "@mui/material"; import { AccountCircle, Logout, Clear } from "@mui/icons-material"; import { useNavigate } from 'react-router-dom'; import { AuthContext } from '../../context/auth'; @@ -58,6 +58,7 @@ export const NavBar: React.FC = ({ recordingName, isRecording }) => }}>
Maxun
+ { user ? ( From 907dea67de7849764fc453d39aba7b3b4a11553d Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:51:45 +0530 Subject: [PATCH 06/10] chore: lint --- src/components/molecules/NavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/NavBar.tsx b/src/components/molecules/NavBar.tsx index 139583d0..4c0b7296 100644 --- a/src/components/molecules/NavBar.tsx +++ b/src/components/molecules/NavBar.tsx @@ -58,7 +58,7 @@ export const NavBar: React.FC = ({ recordingName, isRecording }) => }}>
Maxun
- + { user ? ( From 96d5feb4dfd321a4b383a45bd7ad5248f2f50e33 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:55:52 +0530 Subject: [PATCH 07/10] feat: use MoreHoriz icon for options --- src/components/molecules/RecordingsTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 09ee2239..2a9febe2 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -13,7 +13,7 @@ import { WorkflowFile } from "maxun-core"; import SearchIcon from '@mui/icons-material/Search'; import { IconButton, Button, Box, Typography, TextField, MenuItem, Menu, ListItemIcon, ListItemText } from "@mui/material"; -import { Schedule, DeleteForever, Edit, PlayCircle, Settings, Power, ContentCopy, } from "@mui/icons-material"; +import { Schedule, DeleteForever, Edit, PlayCircle, Settings, Power, ContentCopy, MoreHoriz } from "@mui/icons-material"; import LinkIcon from '@mui/icons-material/Link'; import { useGlobalInfoStore } from "../../context/globalInfo"; @@ -417,7 +417,7 @@ const OptionsButton = ({ handleEdit, handleDelete, handleDuplicate }: OptionsBut size="small" onClick={handleClick} > - + Date: Fri, 22 Nov 2024 21:56:02 +0530 Subject: [PATCH 08/10] chore: lint --- src/components/molecules/RecordingsTable.tsx | 52 ++++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 2a9febe2..6021313d 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -161,7 +161,7 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl row.name.toLowerCase().includes(searchTerm.toLowerCase()) ); - + return ( @@ -254,33 +254,33 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl handleIntegrateRecording(row.id, row.name, row.params || [])} /> ); - case 'options': - return ( - - handleEditRobot(row.id, row.name, row.params || [])} - handleDelete={() => { + case 'options': + return ( + + handleEditRobot(row.id, row.name, row.params || [])} + handleDelete={() => { - checkRunsForRecording(row.id).then((result: boolean) => { - if (result) { - notify('warning', 'Cannot delete recording as it has active runs'); - } - }) + checkRunsForRecording(row.id).then((result: boolean) => { + if (result) { + notify('warning', 'Cannot delete recording as it has active runs'); + } + }) - deleteRecordingFromStorage(row.id).then((result: boolean) => { - if (result) { - setRows([]); - notify('success', 'Recording deleted successfully'); - fetchRecordings(); - } - }) - }} - handleDuplicate={() => { - handleDuplicateRobot(row.id, row.name, row.params || []); - }} - /> - - ); + deleteRecordingFromStorage(row.id).then((result: boolean) => { + if (result) { + setRows([]); + notify('success', 'Recording deleted successfully'); + fetchRecordings(); + } + }) + }} + handleDuplicate={() => { + handleDuplicateRobot(row.id, row.name, row.params || []); + }} + /> + + ); case 'settings': return ( From 426d02d649d0d142bfc7692f710ebfbdf3dbf093 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:56:46 +0530 Subject: [PATCH 09/10] chore: remove unused imports --- src/components/molecules/RecordingsTable.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index 6021313d..f6a9373b 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -9,13 +9,9 @@ import TablePagination from '@mui/material/TablePagination'; import TableRow from '@mui/material/TableRow'; import { useEffect } from "react"; import { WorkflowFile } from "maxun-core"; - - import SearchIcon from '@mui/icons-material/Search'; import { IconButton, Button, Box, Typography, TextField, MenuItem, Menu, ListItemIcon, ListItemText } from "@mui/material"; import { Schedule, DeleteForever, Edit, PlayCircle, Settings, Power, ContentCopy, MoreHoriz } from "@mui/icons-material"; - -import LinkIcon from '@mui/icons-material/Link'; import { useGlobalInfoStore } from "../../context/globalInfo"; import { checkRunsForRecording, deleteRecordingFromStorage, getStoredRecordings } from "../../api/storage"; import { Add } from "@mui/icons-material"; @@ -23,11 +19,6 @@ import { useNavigate } from 'react-router-dom'; import { stopRecording } from "../../api/recording"; import { GenericModal } from '../atoms/GenericModal'; -import axios from 'axios'; -import { apiUrl } from '../../apiConfig'; -import { Menu as MenuIcon } from '@mui/icons-material'; - - /** TODO: * 1. allow editing existing robot after persisting browser steps * 2. show robot settings: id, url, etc. From 483dcb02b3ca8ab847d70b8026f53c7aebd069c9 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Fri, 22 Nov 2024 21:56:59 +0530 Subject: [PATCH 10/10] chore: remove todo --- src/components/molecules/RecordingsTable.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/molecules/RecordingsTable.tsx b/src/components/molecules/RecordingsTable.tsx index f6a9373b..e9f0aebc 100644 --- a/src/components/molecules/RecordingsTable.tsx +++ b/src/components/molecules/RecordingsTable.tsx @@ -21,7 +21,6 @@ import { GenericModal } from '../atoms/GenericModal'; /** TODO: * 1. allow editing existing robot after persisting browser steps - * 2. show robot settings: id, url, etc. */ interface Column {