Repository navigation
Revamp UI ux #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp UI ux #20
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -76,7 +76,7 @@ export default function AdminCategoriesManager() { | |||||
| } | ||||||
|
|
||||||
| async function handleDeleteCategory(index) { | ||||||
| if (!window.confirm("Apagar esta categoria permanentemente? Produtos vinculados podem ficar sem departamento.")) return; | ||||||
| if (!window.confirm("Apagar esta categoria permanentemente? Produtos vinculados podem ficar sem categoria.")) return; | ||||||
|
|
||||||
| const newCategories = [...adminCategories]; | ||||||
| newCategories.splice(index, 1); | ||||||
|
|
@@ -95,7 +95,7 @@ export default function AdminCategoriesManager() { | |||||
| async function handleSaveDraft(event) { | ||||||
| event.preventDefault(); | ||||||
| if (!categoryDraft.name.trim()) { | ||||||
| showToast({ type: "warning", title: "Nome vazio", message: "Dê um nome ao departamento." }); | ||||||
| showToast({ type: "warning", title: "Nome vazio", message: "Dê um nome à categoria." }); | ||||||
| return; | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -122,7 +122,7 @@ export default function AdminCategoriesManager() { | |||||
| setIsSubmitting(false); | ||||||
|
|
||||||
| if (result.ok) { | ||||||
| showToast({ type: "success", title: "Salvo com sucesso", message: "Departamento atualizado." }); | ||||||
| showToast({ type: "success", title: "Salvo com sucesso", message: "categoria atualizado." }); | ||||||
| cancelEdit(); | ||||||
| } else { | ||||||
| showToast({ type: "warning", title: "Erro ao salvar", message: result.error }); | ||||||
|
|
@@ -133,13 +133,13 @@ export default function AdminCategoriesManager() { | |||||
| <div className="admin-manager"> | ||||||
| <div className="admin-manager-toolbar"> | ||||||
| <div> | ||||||
| <h3>Departamentos da Loja</h3> | ||||||
| <h3>categorias da Loja</h3> | ||||||
|
||||||
| <h3>categorias da Loja</h3> | |
| <h3>Categorias da Loja</h3> |
Copilot
AI
Mar 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No label do campo, "Principal" está capitalizado no meio da frase. Ajuste para caixa baixa ("principal") para seguir o padrão de frase e melhorar a leitura.
| <span>Nome da categoria Principal</span> | |
| <span>Nome da categoria principal</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mensagem de sucesso está com capitalização e concordância incorretas ("categoria atualizado."). Ajuste o texto para uma forma correta e consistente com o restante do painel (ex.: "Categoria atualizada." ou "Categorias atualizadas.").