From 9463c58f0c0f088201c10554ac2be34351de5a49 Mon Sep 17 00:00:00 2001 From: May <40745122+SomewhatMay@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:58:14 -0400 Subject: [PATCH] Changed UI a bit to make it more reactive --- src/lib/components/AddForm.svelte | 5 +- src/lib/components/FormsList.svelte | 77 ++++++++++++++------------ src/lib/components/ResponseList.svelte | 69 ++++++++++++----------- 3 files changed, 83 insertions(+), 68 deletions(-) diff --git a/src/lib/components/AddForm.svelte b/src/lib/components/AddForm.svelte index 2315c85..fc59e3e 100644 --- a/src/lib/components/AddForm.svelte +++ b/src/lib/components/AddForm.svelte @@ -56,6 +56,9 @@
+
Create Form
+
+
+ + {#if responses.length == 0} +
Unsubmitted forms will appear here.
Click on them to edit them.
+ {:else} +
    + + {#each responses as response (response.id)} +
  • + + - -
  • - {/each} -
+ + + + + + + {/each} + + {/if}
\ No newline at end of file diff --git a/src/lib/components/ResponseList.svelte b/src/lib/components/ResponseList.svelte index 444b788..dd628b7 100644 --- a/src/lib/components/ResponseList.svelte +++ b/src/lib/components/ResponseList.svelte @@ -7,39 +7,44 @@
-
-
    - {#each $responseQueue as response (response.id)} -
  • - - + {#if $responseQueue.length > 0} +
    +
    Response Queue
    +
    These forms are being sent to strategy. This may take some time.
    +
      + {#each $responseQueue as response (response.id)} +
    • + + - - - {response.type.name} - {#if response?.type?.name != "Pit Scouting"} + + + {response.type.name} + {#if response?.type?.name != "Pit Scouting"} + + Match: {response.match} + {/if} - Match: {response.match} - {/if} - - Team: {response.team} - - - - - - - -
    • - {/each} -
    + Team: {response.team} + + + + + + + +
  • + {/each} +
+
+ {/if}
\ No newline at end of file