diff --git a/src/renderer/hooks/useTestImport.ts b/src/renderer/hooks/useTestImport.ts index 6b30f8049..9fc5cabd3 100644 --- a/src/renderer/hooks/useTestImport.ts +++ b/src/renderer/hooks/useTestImport.ts @@ -17,7 +17,11 @@ function parseDiscoverContainer( settings: ImportTestSettings, ) { return map(data.response, (container) => { - const new_elem = createNewTest({ name: container.testName, path: container.path, type: settings.importType }); + const new_elem = createNewTest({ + name: container.testName, + path: container.path, + type: settings.importType, + }); return new_elem; }); } diff --git a/src/renderer/routes/test_sequencer_panel/components/modals/CreatePlaceholderTestModal.tsx b/src/renderer/routes/test_sequencer_panel/components/modals/CreatePlaceholderTestModal.tsx index 3e704d3a1..b92b68137 100644 --- a/src/renderer/routes/test_sequencer_panel/components/modals/CreatePlaceholderTestModal.tsx +++ b/src/renderer/routes/test_sequencer_panel/components/modals/CreatePlaceholderTestModal.tsx @@ -1,6 +1,13 @@ import { Button } from "@/renderer/components/ui/button"; import { Dialog, DialogContent } from "@/renderer/components/ui/dialog"; -import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/renderer/components/ui/form"; +import { + Form, + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/renderer/components/ui/form"; import { Input } from "@/renderer/components/ui/input"; import { createNewTest, @@ -8,14 +15,14 @@ import { } from "@/renderer/hooks/useTestSequencerState"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; -import { z } from "zod" +import { z } from "zod"; const formSchema = z.object({ name: z.string().min(1).regex(/\S/), min: z.coerce.number().optional(), max: z.coerce.number().optional(), unit: z.string().optional(), -}) +}); export const CreatePlaceholderTestModal = ({ isModalOpen, @@ -34,7 +41,7 @@ export const CreatePlaceholderTestModal = ({ min: undefined, max: undefined, }, - }) + }); async function onSubmit(values: z.infer) { const res = await addNewElems([ @@ -75,10 +82,7 @@ export const CreatePlaceholderTestModal = ({ Test Name - + @@ -86,7 +90,9 @@ export const CreatePlaceholderTestModal = ({ />
-

Expected Value

+

+ Expected Value +

Minimum - + @@ -115,10 +118,7 @@ export const CreatePlaceholderTestModal = ({ Maximun - + @@ -134,9 +134,7 @@ export const CreatePlaceholderTestModal = ({ Displayed Unit - + @@ -145,7 +143,9 @@ export const CreatePlaceholderTestModal = ({
- +