feat: update analytics components and add automation translations

This commit is contained in:
Rotimi Best
2026-03-13 09:53:05 +01:00
parent c532b2e33f
commit fe75771d25
22 changed files with 1096 additions and 202 deletions
@@ -225,7 +225,7 @@
</div>
{/if}
<div class="questions px-6 pt-6">
{#each $questionnaire.questions as question, index}
{#each $questionnaire.questions as question, index (question.id)}
{#if !question.deletedAt}
<QuestionContainer
key={String(question.id ?? `new-${index}`)}
@@ -272,7 +272,7 @@
{getQuestionTypeLabel(question?.questionType)}
</Select.Trigger>
<Select.Content>
{#each QUESTION_TYPES as type}
{#each QUESTION_TYPES as type, i (type.key)}
{#if $isFreePlan && PREMIUM_QUESTION_TYPE_KEYS.has(type.key)}
<button
type="button"
@@ -19,8 +19,6 @@
return acc;
}, 0);
}
$inspect('$questionnaire', $questionnaire);
</script>
<div class="mb-5 {!preview ? 'px-6' : 'px-2'}">
@@ -78,17 +76,15 @@
{$t('course.navItem.lessons.exercises.all_exercises.description.heading')}
</p>
{#key $questionnaire.description}
<TextEditor
content={$questionnaire.description || ''}
onChange={(html) => {
$questionnaire.isDescriptionDirty = true;
$questionnaire.description = html;
}}
editorClass="max-h-[100px]"
placeholder={$t('course.navItem.lessons.exercises.all_exercises.description.describe')}
/>
{/key}
<TextEditor
content={$questionnaire.description || ''}
onChange={(html) => {
$questionnaire.isDescriptionDirty = true;
$questionnaire.description = html;
}}
editorClass="max-h-[100px]"
placeholder={$t('course.navItem.lessons.exercises.all_exercises.description.describe')}
/>
</div>
{/if}
</QuestionContainer>