From b018feb7419e68314378b3cdd8b7b1b389400a98 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 13 Aug 2026 18:33:51 -0600 Subject: [PATCH] refac --- src/lib/components/chat/AskUserCard.svelte | 144 ++++++++------------- 1 file changed, 51 insertions(+), 93 deletions(-) diff --git a/src/lib/components/chat/AskUserCard.svelte b/src/lib/components/chat/AskUserCard.svelte index d4ba1f8fc9..81a581fb66 100644 --- a/src/lib/components/chat/AskUserCard.svelte +++ b/src/lib/components/chat/AskUserCard.svelte @@ -170,115 +170,73 @@ {#if show} -
-
-
- {$i18n.t('Assistant needs your input')} -
-
- {$i18n.t('Question')} - {questionIndex + 1} - {$i18n.t('of')} - {questions.length} -
-
- -
+
+
{#if question} {#key question.id} -
+
-
- {question.header} +
+
+ {question.header} +
+ {#if questions.length > 1} +
+ {questionIndex + 1}/{questions.length} +
+ {/if}
-
+
{question.question}
-
- {#each question.options || [] as option, optionIndex} - - -
{/if}
{/key} {/if} -
+