Миграция questions.ai_hint и подсказки в редакторе теста

- Alembic 0003: колонка ai_hint (TEXT NULL)
- API черновика: отдаём aiHint, сохраняем из payload
- Карточка вопроса: textarea подсказки для прохождения

Made-with: Cursor
This commit is contained in:
Константин Лебединский
2026-04-29 21:50:19 +05:00
parent fba11ff4cc
commit 09d996ead0
5 changed files with 70 additions and 3 deletions
+12
View File
@@ -346,6 +346,18 @@
</button>
<span class="q-options-count text-xs text-ink-400"></span>
</div>
<div class="mt-4 pt-3 border-t border-ink-200/80 q-hint-block">
<label class="block">
<span class="text-xs text-ink-600 font-medium mb-1 block">Подсказка при прохождении</span>
<textarea class="q-hint form-input w-full rounded-lg border border-ink-300 px-3 py-2 text-sm
focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20"
rows="2" maxlength="8000"
placeholder="Краткий текст подсказки (если в параметрах теста включены подсказки и режим «Сразу после ответа»)"
style="resize:none; overflow:hidden; font-family:inherit;"></textarea>
</label>
<p class="mt-1.5 text-xs text-ink-400 leading-snug">Необязательно. Показывается участнику во всплывающем окне при верном ответе.</p>
</div>
</li>
</template>