From 0c4a1047064c54975d7903af09a3176473c1f2e9 Mon Sep 17 00:00:00 2001 From: Nathan LeRoy Date: Wed, 22 Jun 2022 12:38:17 -0400 Subject: [PATCH 1/4] label as github --- web/src/pages/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index c868b366..7ce07c25 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -46,7 +46,6 @@ export default function HomePage() { GitHub

Optipyzer

From b7be8272ff57723a2394a81435d0afb48cf2d803 Mon Sep 17 00:00:00 2001 From: Nathan LeRoy Date: Wed, 22 Jun 2022 12:52:35 -0400 Subject: [PATCH 2/4] semantic html (form) for optimize page --- web/src/components/SeqTypeSelector.tsx | 2 +- web/src/pages/optimize.tsx | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/web/src/components/SeqTypeSelector.tsx b/web/src/components/SeqTypeSelector.tsx index f3e042f4..7b644f1e 100644 --- a/web/src/components/SeqTypeSelector.tsx +++ b/web/src/components/SeqTypeSelector.tsx @@ -11,7 +11,7 @@ const SeqTypeSelector: FC = (props) => { const {seqType, setSeqType } = props return ( -
+
(null) const [error, setError] = useState(null) - const handleSubmit = () => { + const handleSubmit = (e: FormEvent) => { + e.preventDefault(); setOptimizing(true) // purge unused species weights @@ -77,13 +78,14 @@ export default function OptimizePage() {

Optimize sequence:

-

Sequence type:

+
+
-

Select species:

+
: -
+

Adjust weights:

{ @@ -122,13 +124,12 @@ export default function OptimizePage() { /> + ) From 7c8b181a7ae90aa546a7b942dd5202dca80bfdb6 Mon Sep 17 00:00:00 2001 From: Nathan LeRoy Date: Wed, 22 Jun 2022 12:56:53 -0400 Subject: [PATCH 3/4] remove pub button for now --- web/src/pages/index.tsx | 11 +++++------ web/src/pages/optimize.tsx | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 7ce07c25..577f69cd 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -45,18 +45,17 @@ export default function HomePage() { /> GitHub - + Publication + */}

Optipyzer

@@ -92,7 +91,7 @@ export default function HomePage() {