From a3f2288ab4b3545da10267a0d9f2175be8053712 Mon Sep 17 00:00:00 2001 From: Tristan Chin <23557893+maxijonson@users.noreply.github.com> Date: Fri, 19 May 2023 09:23:49 -0400 Subject: [PATCH] [web] Move request options to separate tab (#20) --- .../web/src/components/ConversationForm.tsx | 235 ++++++++++-------- 1 file changed, 127 insertions(+), 108 deletions(-) diff --git a/packages/web/src/components/ConversationForm.tsx b/packages/web/src/components/ConversationForm.tsx index 6751c77..9f38407 100644 --- a/packages/web/src/components/ConversationForm.tsx +++ b/packages/web/src/components/ConversationForm.tsx @@ -9,6 +9,7 @@ import { Collapse, TextInput, Grid, + Tabs, } from "@mantine/core"; import useSettings from "../hooks/useSettings"; import ModelSelectInput from "./ModelSelectInput"; @@ -84,7 +85,6 @@ export default ({ onSubmit }: ConversationFormProps) => { }), }); const [showAdvanced, setShowAdvanced] = React.useState(false); - const [showRequest, setShowRequest] = React.useState(false); const handleSubmit = form.onSubmit((values) => { onSubmit(values); @@ -93,114 +93,133 @@ export default ({ onSubmit }: ConversationFormProps) => { return (