From 050a72636e0e82c4f8bc31a1a5851a9305dc4dd2 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Tue, 13 Aug 2024 14:31:35 +0100 Subject: [PATCH] delete file that was missed in the merge and diff corrections --- .../CompareWorkspaceDialog.tsx | 119 ------------------ .../ViewerContainer/CustomListItem.tsx | 1 + .../components/ViewerContainer/Sidebar.tsx | 1 + .../visualizer/frontend/vite.config.ts | 5 +- 4 files changed, 3 insertions(+), 123 deletions(-) delete mode 100644 applications/visualizer/frontend/src/components/ViewerContainer/CompareWorkspaceDialog.tsx diff --git a/applications/visualizer/frontend/src/components/ViewerContainer/CompareWorkspaceDialog.tsx b/applications/visualizer/frontend/src/components/ViewerContainer/CompareWorkspaceDialog.tsx deleted file mode 100644 index 1497ad52..00000000 --- a/applications/visualizer/frontend/src/components/ViewerContainer/CompareWorkspaceDialog.tsx +++ /dev/null @@ -1,119 +0,0 @@ -import { Box, Button, Dialog, FormLabel, IconButton, TextField, Typography } from "@mui/material"; -import { useEffect, useState } from "react"; -import { CaretIcon, CheckIcon, CloseIcon } from "../../icons"; -import type { Dataset, Neuron } from "../../models"; -import { NeuronsService } from "../../rest"; -import { vars as colors } from "../../theme/variables.ts"; -import CustomAutocomplete from "../CustomAutocomplete.tsx"; - -interface CompareWorkspaceDialogProps { - onClose: () => void; - showModal: boolean; - datasets: Dataset[]; -} - -const CompareWorkspaceDialog = ({ onClose, showModal, datasets }: CompareWorkspaceDialogProps) => { - const [neurons, setNeurons] = useState([]); - - const fetchNeurons = async () => { - try { - const response = await NeuronsService.getAllCells({ page: 1 }); - setNeurons(response.items); - } catch (error) { - console.error("Failed to fetch datasets", error); - } - }; - - useEffect(() => { - fetchNeurons(); - }, []); - - return ( - - - New workspace configuration - - - - - - - To start comparing, create workspace by configuring datasets and neurons you would want in the new workspace or start with an empty workspace. - - - Workspace name - - - - - Datasets - - options={datasets} - getOptionLabel={(option) => option.name} - renderOption={(props, option) => ( -
  • - - {option.name} -
  • - )} - placeholder="Start typing to search" - id="grouped-demo" - popupIcon={} - ChipProps={{ - deleteIcon: ( - - - - ), - }} - /> -
    - - - Neurons - - options={neurons} - getOptionLabel={(option) => option.name} - renderOption={(props, option) => ( -
  • - - {option.name} -
  • - )} - placeholder="Start typing to search" - className="secondary" - id="tags-standard" - popupIcon={} - ChipProps={{ - deleteIcon: ( - - - - ), - }} - clearIcon={false} - /> -
    -
    - - - - - -
    - ); -}; - -export default CompareWorkspaceDialog; diff --git a/applications/visualizer/frontend/src/components/ViewerContainer/CustomListItem.tsx b/applications/visualizer/frontend/src/components/ViewerContainer/CustomListItem.tsx index b55474e3..9da39502 100644 --- a/applications/visualizer/frontend/src/components/ViewerContainer/CustomListItem.tsx +++ b/applications/visualizer/frontend/src/components/ViewerContainer/CustomListItem.tsx @@ -53,6 +53,7 @@ const CustomListItem = ({ setAnchorEl(null); setOpen(false); }; + const handleColorChange = (color) => { setSelectedColor(color.hex); }; diff --git a/applications/visualizer/frontend/src/components/ViewerContainer/Sidebar.tsx b/applications/visualizer/frontend/src/components/ViewerContainer/Sidebar.tsx index 9f492f44..c6094bd7 100644 --- a/applications/visualizer/frontend/src/components/ViewerContainer/Sidebar.tsx +++ b/applications/visualizer/frontend/src/components/ViewerContainer/Sidebar.tsx @@ -108,6 +108,7 @@ const Sidebar = ({ const handleToggleContent = (_, type) => { setContent(type); }; + return ( { secure: !isDev, }, }, - }, - // optimizeDeps: { - // include: ["@emotion/react", '@mui/material/Tooltip', '@emotion/styled', '@mui/material/Unstable_Grid2'] // https://github.com/mui/material-ui/issues/32727 - // }, + } }; });