fix(checklist): corrige acentuação e adiciona modal de exclusão
- Corrige acentuações: Opções, Não, Descrição, Obrigatório, máx - Adiciona modal de confirmação para exclusão de itens do checklist - Remove uso de confirm() nativo 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f1833be1ea
commit
10078c7aa7
6 changed files with 82 additions and 27 deletions
|
|
@ -58,7 +58,7 @@ function normalizeTemplateItems(
|
|||
throw new ConvexError("Todos os itens do checklist precisam ter um texto.")
|
||||
}
|
||||
if (text.length > 240) {
|
||||
throw new ConvexError("Item do checklist muito longo (max. 240 caracteres).")
|
||||
throw new ConvexError("Item do checklist muito longo (máx. 240 caracteres).")
|
||||
}
|
||||
|
||||
const description = entry.description?.trim() || undefined
|
||||
|
|
@ -68,7 +68,7 @@ function normalizeTemplateItems(
|
|||
: undefined
|
||||
|
||||
if (itemType === "question" && (!itemOptions || itemOptions.length < 2)) {
|
||||
throw new ConvexError(`A pergunta "${text}" precisa ter pelo menos 2 opcoes.`)
|
||||
throw new ConvexError(`A pergunta "${text}" precisa ter pelo menos 2 opções.`)
|
||||
}
|
||||
|
||||
const required = typeof entry.required === "boolean" ? entry.required : true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue