From 2d0d18d0b2ce6a9887b3ab97ddb14e27b0651085 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Thu, 9 Jan 2025 20:09:46 +0530 Subject: [PATCH] feat: create recorder ui directory --- src/components/molecules/action-settings/scrapeSchema.tsx | 2 +- src/components/{molecules => recorder}/AddWhatCondModal.tsx | 0 src/components/{molecules => recorder}/AddWhereCondModal.tsx | 0 .../{molecules => recorder}/DisplayWhereConditionSettings.tsx | 0 src/components/{molecules => recorder}/KeyValueForm.tsx | 2 +- src/components/{atoms => recorder}/KeyValuePair.tsx | 0 src/components/recorder/LeftSidePanel.tsx | 4 ++-- .../{molecules => recorder}/LeftSidePanelContent.tsx | 0 .../{molecules => recorder}/LeftSidePanelSettings.tsx | 0 src/components/{molecules => recorder}/Pair.tsx | 2 +- src/components/{molecules => recorder}/PairDetail.tsx | 0 src/components/{atoms => recorder}/PairDisplayDiv.tsx | 0 src/components/{molecules => recorder}/PairEditForm.tsx | 0 src/components/robot/RobotDuplicate.tsx | 2 +- src/components/robot/RobotEdit.tsx | 2 +- src/components/robot/RobotSettings.tsx | 2 +- src/components/run/ColapsibleRow.tsx | 2 +- src/components/run/RunSettings.tsx | 2 +- 18 files changed, 10 insertions(+), 10 deletions(-) rename src/components/{molecules => recorder}/AddWhatCondModal.tsx (100%) rename src/components/{molecules => recorder}/AddWhereCondModal.tsx (100%) rename src/components/{molecules => recorder}/DisplayWhereConditionSettings.tsx (100%) rename src/components/{molecules => recorder}/KeyValueForm.tsx (96%) rename src/components/{atoms => recorder}/KeyValuePair.tsx (100%) rename src/components/{molecules => recorder}/LeftSidePanelContent.tsx (100%) rename src/components/{molecules => recorder}/LeftSidePanelSettings.tsx (100%) rename src/components/{molecules => recorder}/Pair.tsx (98%) rename src/components/{molecules => recorder}/PairDetail.tsx (100%) rename src/components/{atoms => recorder}/PairDisplayDiv.tsx (100%) rename src/components/{molecules => recorder}/PairEditForm.tsx (100%) diff --git a/src/components/molecules/action-settings/scrapeSchema.tsx b/src/components/molecules/action-settings/scrapeSchema.tsx index 548d0749..73510dc2 100644 --- a/src/components/molecules/action-settings/scrapeSchema.tsx +++ b/src/components/molecules/action-settings/scrapeSchema.tsx @@ -1,7 +1,7 @@ import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react'; import { WarningText } from "../../ui/texts"; import InfoIcon from "@mui/icons-material/Info"; -import { KeyValueForm } from "../KeyValueForm"; +import { KeyValueForm } from "../../recorder/KeyValueForm"; export const ScrapeSchemaSettings = forwardRef((props, ref) => { const keyValueFormRef = useRef<{ getObject: () => object }>(null); diff --git a/src/components/molecules/AddWhatCondModal.tsx b/src/components/recorder/AddWhatCondModal.tsx similarity index 100% rename from src/components/molecules/AddWhatCondModal.tsx rename to src/components/recorder/AddWhatCondModal.tsx diff --git a/src/components/molecules/AddWhereCondModal.tsx b/src/components/recorder/AddWhereCondModal.tsx similarity index 100% rename from src/components/molecules/AddWhereCondModal.tsx rename to src/components/recorder/AddWhereCondModal.tsx diff --git a/src/components/molecules/DisplayWhereConditionSettings.tsx b/src/components/recorder/DisplayWhereConditionSettings.tsx similarity index 100% rename from src/components/molecules/DisplayWhereConditionSettings.tsx rename to src/components/recorder/DisplayWhereConditionSettings.tsx diff --git a/src/components/molecules/KeyValueForm.tsx b/src/components/recorder/KeyValueForm.tsx similarity index 96% rename from src/components/molecules/KeyValueForm.tsx rename to src/components/recorder/KeyValueForm.tsx index 02d22d6a..3db70135 100644 --- a/src/components/molecules/KeyValueForm.tsx +++ b/src/components/recorder/KeyValueForm.tsx @@ -1,5 +1,5 @@ import React, { forwardRef, useImperativeHandle, useRef } from 'react'; -import { KeyValuePair } from "../atoms/KeyValuePair"; +import { KeyValuePair } from "./KeyValuePair"; import { AddButton } from "../ui/buttons/AddButton"; import { RemoveButton } from "../ui/buttons/RemoveButton"; diff --git a/src/components/atoms/KeyValuePair.tsx b/src/components/recorder/KeyValuePair.tsx similarity index 100% rename from src/components/atoms/KeyValuePair.tsx rename to src/components/recorder/KeyValuePair.tsx diff --git a/src/components/recorder/LeftSidePanel.tsx b/src/components/recorder/LeftSidePanel.tsx index 05834e6b..afe56ffe 100644 --- a/src/components/recorder/LeftSidePanel.tsx +++ b/src/components/recorder/LeftSidePanel.tsx @@ -5,11 +5,11 @@ import { useSocketStore } from '../../context/socket'; import { WhereWhatPair, WorkflowFile } from "maxun-core"; import { SidePanelHeader } from "./SidePanelHeader"; import { emptyWorkflow } from "../../shared/constants"; -import { LeftSidePanelContent } from "../molecules/LeftSidePanelContent"; +import { LeftSidePanelContent } from "./LeftSidePanelContent"; import { useBrowserDimensionsStore } from "../../context/browserDimensions"; import { useGlobalInfoStore } from "../../context/globalInfo"; import { TabContext, TabPanel } from "@mui/lab"; -import { LeftSidePanelSettings } from "../molecules/LeftSidePanelSettings"; +import { LeftSidePanelSettings } from "./LeftSidePanelSettings"; import { RunSettings } from "../run/RunSettings"; const fetchWorkflow = (id: string, callback: (response: WorkflowFile) => void) => { diff --git a/src/components/molecules/LeftSidePanelContent.tsx b/src/components/recorder/LeftSidePanelContent.tsx similarity index 100% rename from src/components/molecules/LeftSidePanelContent.tsx rename to src/components/recorder/LeftSidePanelContent.tsx diff --git a/src/components/molecules/LeftSidePanelSettings.tsx b/src/components/recorder/LeftSidePanelSettings.tsx similarity index 100% rename from src/components/molecules/LeftSidePanelSettings.tsx rename to src/components/recorder/LeftSidePanelSettings.tsx diff --git a/src/components/molecules/Pair.tsx b/src/components/recorder/Pair.tsx similarity index 98% rename from src/components/molecules/Pair.tsx rename to src/components/recorder/Pair.tsx index 643f296d..12d2eca7 100644 --- a/src/components/molecules/Pair.tsx +++ b/src/components/recorder/Pair.tsx @@ -5,7 +5,7 @@ import { WorkflowFile } from "maxun-core"; import { ClearButton } from "../ui/buttons/ClearButton"; import { GenericModal } from "../ui/GenericModal"; import { PairEditForm } from "./PairEditForm"; -import { PairDisplayDiv } from "../atoms/PairDisplayDiv"; +import { PairDisplayDiv } from "./PairDisplayDiv"; import { EditButton } from "../ui/buttons/EditButton"; import { BreakpointButton } from "../ui/buttons/BreakpointButton"; import VisibilityIcon from '@mui/icons-material/Visibility'; diff --git a/src/components/molecules/PairDetail.tsx b/src/components/recorder/PairDetail.tsx similarity index 100% rename from src/components/molecules/PairDetail.tsx rename to src/components/recorder/PairDetail.tsx diff --git a/src/components/atoms/PairDisplayDiv.tsx b/src/components/recorder/PairDisplayDiv.tsx similarity index 100% rename from src/components/atoms/PairDisplayDiv.tsx rename to src/components/recorder/PairDisplayDiv.tsx diff --git a/src/components/molecules/PairEditForm.tsx b/src/components/recorder/PairEditForm.tsx similarity index 100% rename from src/components/molecules/PairEditForm.tsx rename to src/components/recorder/PairEditForm.tsx diff --git a/src/components/robot/RobotDuplicate.tsx b/src/components/robot/RobotDuplicate.tsx index 6dea99e1..a78e523b 100644 --- a/src/components/robot/RobotDuplicate.tsx +++ b/src/components/robot/RobotDuplicate.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import { GenericModal } from "../ui/GenericModal"; import { TextField, Typography, Box, Button } from "@mui/material"; -import { modalStyle } from "../molecules/AddWhereCondModal"; +import { modalStyle } from "../recorder/AddWhereCondModal"; import { useGlobalInfoStore } from '../../context/globalInfo'; import { duplicateRecording, getStoredRecording } from '../../api/storage'; import { WhereWhatPair } from 'maxun-core'; diff --git a/src/components/robot/RobotEdit.tsx b/src/components/robot/RobotEdit.tsx index c0baaa85..946af330 100644 --- a/src/components/robot/RobotEdit.tsx +++ b/src/components/robot/RobotEdit.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { GenericModal } from "../ui/GenericModal"; import { TextField, Typography, Box, Button } from "@mui/material"; -import { modalStyle } from "../molecules/AddWhereCondModal"; +import { modalStyle } from "../recorder/AddWhereCondModal"; import { useGlobalInfoStore } from '../../context/globalInfo'; import { getStoredRecording, updateRecording } from '../../api/storage'; import { WhereWhatPair } from 'maxun-core'; diff --git a/src/components/robot/RobotSettings.tsx b/src/components/robot/RobotSettings.tsx index 57af9ca2..2dd7ebe3 100644 --- a/src/components/robot/RobotSettings.tsx +++ b/src/components/robot/RobotSettings.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { GenericModal } from "../ui/GenericModal"; import { TextField, Typography, Box } from "@mui/material"; -import { modalStyle } from "../molecules/AddWhereCondModal"; +import { modalStyle } from "../recorder/AddWhereCondModal"; import { useGlobalInfoStore } from '../../context/globalInfo'; import { getStoredRecording } from '../../api/storage'; import { WhereWhatPair } from 'maxun-core'; diff --git a/src/components/run/ColapsibleRow.tsx b/src/components/run/ColapsibleRow.tsx index 79e4e2d7..9612458b 100644 --- a/src/components/run/ColapsibleRow.tsx +++ b/src/components/run/ColapsibleRow.tsx @@ -8,7 +8,7 @@ import { deleteRunFromStorage } from "../../api/storage"; import { columns, Data } from "./RunsTable"; import { RunContent } from "./RunContent"; import { GenericModal } from "../ui/GenericModal"; -import { modalStyle } from "../molecules/AddWhereCondModal"; +import { modalStyle } from "../recorder/AddWhereCondModal"; import { getUserById } from "../../api/auth"; import { useTranslation } from "react-i18next"; diff --git a/src/components/run/RunSettings.tsx b/src/components/run/RunSettings.tsx index 1b764342..a35d2f28 100644 --- a/src/components/run/RunSettings.tsx +++ b/src/components/run/RunSettings.tsx @@ -3,7 +3,7 @@ import { GenericModal } from "../ui/GenericModal"; import { MenuItem, TextField, Typography, Switch, FormControlLabel } from "@mui/material"; import { Dropdown } from "../ui/DropdownMui"; import Button from "@mui/material/Button"; -import { modalStyle } from "../molecules/AddWhereCondModal"; +import { modalStyle } from "../recorder/AddWhereCondModal"; interface RunSettingsProps { isOpen: boolean;