diff --git a/frontend/app/setup/harvest-detail-form.tsx b/frontend/app/setup/harvest-detail-form.tsx new file mode 100644 index 0000000..38e2124 --- /dev/null +++ b/frontend/app/setup/harvest-detail-form.tsx @@ -0,0 +1,230 @@ +"use client"; + +import { + Form, + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { harvestDetailsFormSchema } from "@/schemas/application.schema"; +import { useForm } from "react-hook-form"; +import { z } from "zod"; +import { zodResolver } from "@hookform/resolvers/zod"; +import { Input } from "@/components/ui/input"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; + +type harvestSchema = z.infer; + +export default function HarvestDetailsForm() { + const form = useForm({ + resolver: zodResolver(harvestDetailsFormSchema), + defaultValues: {}, + }); + return ( +
+ + ( + + + Days To Flower + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + + Days To Maturity + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + + Harvest Window + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + + Estimated Loss Rate + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + Harvest Units + + + + + + )} + /> + ( + + + Estimated Revenue + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + + Expected Yield Per100ft + + +
+
+ +
+
+
+ +
+ )} + /> + ( + + + Expected Yield Per Acre + + +
+
+ +
+
+
+ +
+ )} + /> + + + ); +} diff --git a/frontend/app/setup/page.tsx b/frontend/app/setup/page.tsx index cc11086..d7afe64 100644 --- a/frontend/app/setup/page.tsx +++ b/frontend/app/setup/page.tsx @@ -1,14 +1,24 @@ import PlantingDetailsForm from "./planting-detail-form"; +import HarvestDetailsForm from "./harvest-detail-form"; import { Separator } from "@/components/ui/separator"; export default function SetupPage() { return (
-

Plating Details

+
+

Plating Details

+
-
+
+
+

Harvest Details

+
+ +
+ +
); } diff --git a/frontend/app/setup/planting-detail-form.tsx b/frontend/app/setup/planting-detail-form.tsx index 13d8a08..e6cc1c2 100644 --- a/frontend/app/setup/planting-detail-form.tsx +++ b/frontend/app/setup/planting-detail-form.tsx @@ -13,6 +13,15 @@ import { useForm } from "react-hook-form"; import { z } from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { Input } from "@/components/ui/input"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { Textarea } from "@/components/ui/textarea"; +import { Switch } from "@/components/ui/switch"; type plantingSchema = z.infer; @@ -23,7 +32,7 @@ export default function PlantingDetailsForm() { }); return (
- +
)} /> + ( + + Start Method + + + + + + )} + /> + ( + + Light Profile + + + + + + )} + /> + ( + + + Soil Conditions + + + + + + + )} + /> + ( + + + Planting Details + + +
+
+