From f9ddf35205d5350ec04a293faa5c92c3b70486fa Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 8 Apr 2024 11:54:11 +0100 Subject: [PATCH] Path check --- src/routes/route_check/+page.svelte | 2 +- src/routes/route_check/data.ts | 14 ++++ .../route_check/path_check/+page.svelte | 18 ++++ .../route_check/path_check/Progress.svelte | 80 ++++++++++++++++++ .../route_check/path_check/Question.svelte | 83 +++++++++++++++++++ src/routes/route_check/path_check/codegen.py | 1 + .../route_check/path_check/pa17/+page.svelte | 25 ++++++ .../route_check/path_check/pa18/+page.svelte | 25 ++++++ .../route_check/path_check/pa19/+page.svelte | 19 +++++ .../route_check/path_check/pa20/+page.svelte | 29 +++++++ .../route_check/path_check/pa21/+page.svelte | 25 ++++++ .../route_check/path_check/pa22/+page.svelte | 25 ++++++ .../route_check/path_check/pa23/+page.svelte | 16 ++++ .../route_check/path_check/pa24/+page.svelte | 16 ++++ .../route_check/path_check/pa25/+page.svelte | 25 ++++++ .../route_check/path_check/pa26/+page.svelte | 19 +++++ .../route_check/path_check/pa27/+page.svelte | 25 ++++++ .../route_check/path_check/pa28/+page.svelte | 16 ++++ .../route_check/path_check/pa29/+page.svelte | 25 ++++++ .../route_check/path_check/pa30/+page.svelte | 28 +++++++ .../route_check/path_check/pa31/+page.svelte | 25 ++++++ .../route_check/path_check/pa32/+page.svelte | 22 +++++ .../route_check/path_check/pa33/+page.svelte | 16 ++++ .../route_check/path_check/pa34/+page.svelte | 25 ++++++ .../route_check/path_check/pa35/+page.svelte | 19 +++++ .../route_check/path_check/pa36/+page.svelte | 16 ++++ .../route_check/path_check/pa37/+page.svelte | 16 ++++ .../route_check/path_check/pa38/+page.svelte | 16 ++++ .../route_check/path_check/pa39/+page.svelte | 19 +++++ .../route_check/path_check/pa40/+page.svelte | 22 +++++ .../route_check/path_check/pa41/+page.svelte | 25 ++++++ .../route_check/path_check/pa42/+page.svelte | 25 ++++++ .../route_check/path_check/pa43/+page.svelte | 25 ++++++ .../route_check/path_check/pa44/+page.svelte | 30 +++++++ .../route_check/path_check/pa45/+page.svelte | 28 +++++++ .../route_check/path_check/pa46/+page.svelte | 22 +++++ 36 files changed, 866 insertions(+), 1 deletion(-) create mode 100644 src/routes/route_check/path_check/+page.svelte create mode 100644 src/routes/route_check/path_check/Progress.svelte create mode 100644 src/routes/route_check/path_check/Question.svelte create mode 120000 src/routes/route_check/path_check/codegen.py create mode 100644 src/routes/route_check/path_check/pa17/+page.svelte create mode 100644 src/routes/route_check/path_check/pa18/+page.svelte create mode 100644 src/routes/route_check/path_check/pa19/+page.svelte create mode 100644 src/routes/route_check/path_check/pa20/+page.svelte create mode 100644 src/routes/route_check/path_check/pa21/+page.svelte create mode 100644 src/routes/route_check/path_check/pa22/+page.svelte create mode 100644 src/routes/route_check/path_check/pa23/+page.svelte create mode 100644 src/routes/route_check/path_check/pa24/+page.svelte create mode 100644 src/routes/route_check/path_check/pa25/+page.svelte create mode 100644 src/routes/route_check/path_check/pa26/+page.svelte create mode 100644 src/routes/route_check/path_check/pa27/+page.svelte create mode 100644 src/routes/route_check/path_check/pa28/+page.svelte create mode 100644 src/routes/route_check/path_check/pa29/+page.svelte create mode 100644 src/routes/route_check/path_check/pa30/+page.svelte create mode 100644 src/routes/route_check/path_check/pa31/+page.svelte create mode 100644 src/routes/route_check/path_check/pa32/+page.svelte create mode 100644 src/routes/route_check/path_check/pa33/+page.svelte create mode 100644 src/routes/route_check/path_check/pa34/+page.svelte create mode 100644 src/routes/route_check/path_check/pa35/+page.svelte create mode 100644 src/routes/route_check/path_check/pa36/+page.svelte create mode 100644 src/routes/route_check/path_check/pa37/+page.svelte create mode 100644 src/routes/route_check/path_check/pa38/+page.svelte create mode 100644 src/routes/route_check/path_check/pa39/+page.svelte create mode 100644 src/routes/route_check/path_check/pa40/+page.svelte create mode 100644 src/routes/route_check/path_check/pa41/+page.svelte create mode 100644 src/routes/route_check/path_check/pa42/+page.svelte create mode 100644 src/routes/route_check/path_check/pa43/+page.svelte create mode 100644 src/routes/route_check/path_check/pa44/+page.svelte create mode 100644 src/routes/route_check/path_check/pa45/+page.svelte create mode 100644 src/routes/route_check/path_check/pa46/+page.svelte diff --git a/src/routes/route_check/+page.svelte b/src/routes/route_check/+page.svelte index 5f179dbc5c..0ea6463255 100644 --- a/src/routes/route_check/+page.svelte +++ b/src/routes/route_check/+page.svelte @@ -35,7 +35,7 @@ -
  • Path Check
  • +
  • Path Check
  • Path Placemaking Check
  • JAT Check
  • diff --git a/src/routes/route_check/data.ts b/src/routes/route_check/data.ts index 969d83946c..2fb9d433cd 100644 --- a/src/routes/route_check/data.ts +++ b/src/routes/route_check/data.ts @@ -52,6 +52,14 @@ export interface State { existingScoreNotes: string[]; proposedScoreNotes: string[]; }; + + pathCheck: { + // 30 entries + existingScores: string[]; + proposedScores: string[]; + existingScoreNotes: string[]; + proposedScoreNotes: string[]; + }; } export let state = writable(loadState()); @@ -110,5 +118,11 @@ export function emptyState(): State { existingScoreNotes: Array(26).fill(""), proposedScoreNotes: Array(26).fill(""), }, + pathCheck: { + existingScores: Array(30).fill(""), + proposedScores: Array(30).fill(""), + existingScoreNotes: Array(30).fill(""), + proposedScoreNotes: Array(30).fill(""), + }, }; } diff --git a/src/routes/route_check/path_check/+page.svelte b/src/routes/route_check/path_check/+page.svelte new file mode 100644 index 0000000000..6590af6272 --- /dev/null +++ b/src/routes/route_check/path_check/+page.svelte @@ -0,0 +1,18 @@ + + +
    + + +

    TODO: Special horse question

    + + +
    diff --git a/src/routes/route_check/path_check/Progress.svelte b/src/routes/route_check/path_check/Progress.svelte new file mode 100644 index 0000000000..3f93ff1f51 --- /dev/null +++ b/src/routes/route_check/path_check/Progress.svelte @@ -0,0 +1,80 @@ + + +
      + {#each questions as label, idx} +
    1. +
      + {#if currentIdx - startIdx != idx} + + {label} + + {:else} + {label} + {/if} + {#if completed[idx]} + Done + {:else} + Incomplete + {/if} +
      +
    2. + {/each} +
    diff --git a/src/routes/route_check/path_check/Question.svelte b/src/routes/route_check/path_check/Question.svelte new file mode 100644 index 0000000000..8b35037952 --- /dev/null +++ b/src/routes/route_check/path_check/Question.svelte @@ -0,0 +1,83 @@ + + +
    + + + +

    {label}

    + + +
    +
    + +
    + +
    + +