From a3de19a668c9674e4241b37af0eb0a2f1f211fd0 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Thu, 9 Jan 2025 20:05:12 +0530 Subject: [PATCH] feat: create run ui directory --- src/components/molecules/SidePanelHeader.tsx | 2 +- src/components/organisms/BrowserContent.tsx | 2 +- src/components/{molecules => run}/InterpretationButtons.tsx | 0 src/components/{molecules => run}/InterpretationLog.tsx | 2 +- src/pages/RecordingPage.tsx | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/components/{molecules => run}/InterpretationButtons.tsx (100%) rename src/components/{molecules => run}/InterpretationLog.tsx (99%) diff --git a/src/components/molecules/SidePanelHeader.tsx b/src/components/molecules/SidePanelHeader.tsx index 9e93f432..41b33ae7 100644 --- a/src/components/molecules/SidePanelHeader.tsx +++ b/src/components/molecules/SidePanelHeader.tsx @@ -1,5 +1,5 @@ import React, { FC, useState } from 'react'; -import { InterpretationButtons } from "./InterpretationButtons"; +import { InterpretationButtons } from "../run/InterpretationButtons"; import { useSocketStore } from "../../context/socket"; export const SidePanelHeader = () => { diff --git a/src/components/organisms/BrowserContent.tsx b/src/components/organisms/BrowserContent.tsx index f89bb0f4..0f01a70b 100644 --- a/src/components/organisms/BrowserContent.tsx +++ b/src/components/organisms/BrowserContent.tsx @@ -11,7 +11,7 @@ import { interpretCurrentRecording, } from "../../api/recording"; import { Box } from "@mui/material"; -import { InterpretationLog } from "../molecules/InterpretationLog"; +import { InterpretationLog } from "../run/InterpretationLog"; // TODO: Tab !show currentUrl after recordingUrl global state export const BrowserContent = () => { diff --git a/src/components/molecules/InterpretationButtons.tsx b/src/components/run/InterpretationButtons.tsx similarity index 100% rename from src/components/molecules/InterpretationButtons.tsx rename to src/components/run/InterpretationButtons.tsx diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/run/InterpretationLog.tsx similarity index 99% rename from src/components/molecules/InterpretationLog.tsx rename to src/components/run/InterpretationLog.tsx index 44d1e3b0..5c1ccbbb 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/run/InterpretationLog.tsx @@ -15,7 +15,7 @@ import TableRow from '@mui/material/TableRow'; import Paper from '@mui/material/Paper'; import StorageIcon from '@mui/icons-material/Storage'; import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward'; -import { SidePanelHeader } from './SidePanelHeader'; +import { SidePanelHeader } from '../molecules/SidePanelHeader'; import { useGlobalInfoStore } from '../../context/globalInfo'; import { useThemeMode } from '../../context/theme-provider'; import { useTranslation } from 'react-i18next'; diff --git a/src/pages/RecordingPage.tsx b/src/pages/RecordingPage.tsx index fb59a8c0..c1ee6200 100644 --- a/src/pages/RecordingPage.tsx +++ b/src/pages/RecordingPage.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect, useState } from 'react'; import { Grid } from '@mui/material'; import { BrowserContent } from "../components/organisms/BrowserContent"; -import { InterpretationLog } from "../components/molecules/InterpretationLog"; +import { InterpretationLog } from "../components/run/InterpretationLog"; import { startRecording, getActiveBrowserId } from "../api/recording"; import { LeftSidePanel } from "../components/organisms/LeftSidePanel"; import { RightSidePanel } from "../components/organisms/RightSidePanel";