From ea888f5f78e4c7f23db4d7791e52a80905c61aa3 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Sat, 25 Nov 2023 10:16:06 +0100 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20add=20currency=20format=20+?= =?UTF-8?q?=20add=20enum=20autocomplete=20+=20fix=20run=E2=80=A6=20(#2670)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(frontend): add currency format + add enum autocomplete + fix runs page layout * feat(frontend): use ArgEnum for array when using enums * Fix currencies * feat(frontend): fix currency input * feat(frontend): fix multiselect * feat(frontend): fix multiselect --- frontend/src/lib/components/ArgEnum.svelte | 59 +++++++------- frontend/src/lib/components/ArgInput.svelte | 77 ++++++++++++++----- .../lib/components/LightweightArgInput.svelte | 22 ++++++ .../lib/components/NumberTypeNarrowing.svelte | 20 +++++ .../lib/components/StringTypeNarrowing.svelte | 3 +- .../src/lib/components/runs/RunRow.svelte | 2 +- frontend/src/lib/utils.ts | 3 + .../(logged)/runs/[...path]/+page.svelte | 4 +- 8 files changed, 134 insertions(+), 56 deletions(-) diff --git a/frontend/src/lib/components/ArgEnum.svelte b/frontend/src/lib/components/ArgEnum.svelte index 023d24ea52..3c10fc60bd 100644 --- a/frontend/src/lib/components/ArgEnum.svelte +++ b/frontend/src/lib/components/ArgEnum.svelte @@ -1,6 +1,7 @@ -{#if !customValue} - -{:else} - - -{/if} + { + dispatch('focus') + }} + {disabled} + {autofocus} +/> -{#if !disabled} +{#if !disabled && !disableCustomValue}