From 3f74939eb540da3eb439280a18018f6c9731c180 Mon Sep 17 00:00:00 2001 From: Erik Taubeneck Date: Wed, 15 May 2024 12:14:24 -0700 Subject: [PATCH] add ability to select gate type and toggle stall detection --- server/app/query/create/page.tsx | 38 +++++++++++++++++++++++++++----- sidecar/app/query/ipa.py | 19 ++++++++++++++-- sidecar/app/routes/start.py | 6 ++++- 3 files changed, 55 insertions(+), 8 deletions(-) diff --git a/server/app/query/create/page.tsx b/server/app/query/create/page.tsx index af7d32a..65c2542 100644 --- a/server/app/query/create/page.tsx +++ b/server/app/query/create/page.tsx @@ -1,7 +1,7 @@ "use client"; import { useState, useRef, FormEvent, useEffect, Fragment } from "react"; import clsx from "clsx"; -import { Listbox, Transition, Combobox } from "@headlessui/react"; +import { Listbox, Transition, Combobox, Switch } from "@headlessui/react"; import { CheckIcon, ChevronUpDownIcon, @@ -126,6 +126,7 @@ function IPAForm({ const [commitSpecifier, setCommitSpecifier] = useState( CommitSpecifier.BRANCH, ); + const [stallDetectionEnabled, setStallDetectionEnabled] = useState(true); const disableBranch = commitSpecifier != CommitSpecifier.BRANCH; const disableCommitHash = commitSpecifier != CommitSpecifier.COMMIT_HASH; const filteredCommitHashes = @@ -242,7 +243,7 @@ function IPAForm({