Atualiza dashboards e painel de tickets

This commit is contained in:
Esdras Renan 2025-11-07 00:56:59 -03:00
parent c66ffa6e0b
commit 4655c7570a
9 changed files with 483 additions and 420 deletions

View file

@ -230,7 +230,7 @@ export function DashboardListView() {
<div className="space-y-6">
<div className="flex flex-wrap items-center justify-between gap-3">
<div className="flex flex-col gap-1">
<h2 className="text-lg font-semibold">Dashboards personalizados</h2>
<h2 className="text-lg font-semibold">Painéis customizados</h2>
<p className="text-sm text-muted-foreground">
Combine KPIs, gráficos, tabelas e texto em painéis dinâmicos com filtros globais.
</p>
@ -247,7 +247,7 @@ export function DashboardListView() {
<Sparkles className="size-5" />
</div>
<div>
<h3 className="text-xl font-semibold text-neutral-900">Nenhum dashboard ainda</h3>
<h3 className="text-xl font-semibold text-neutral-900">Nenhum painel ainda</h3>
<p className="text-sm text-muted-foreground">Use KPIs, filas e texto para contar a história da operação.</p>
</div>
</div>
@ -317,12 +317,12 @@ export function DashboardListView() {
</CardContent>
<CardFooter className="flex gap-2">
<Button asChild className="flex-1">
<Link href={`/dashboards/${dashboard.id}`}>Abrir dashboard</Link>
<Link href={`/dashboards/${dashboard.id}`}>Abrir painel</Link>
</Button>
<Button
variant="outline"
size="icon"
className="shrink-0 size-9 rounded-lg border border-rose-300 bg-white text-rose-600 transition hover:bg-rose-50 focus-visible:ring-rose-200 [&>svg]:transition [&>svg]:text-rose-600 hover:[&>svg]:text-rose-700"
className="shrink-0 size-9 rounded-lg border border-rose-300 bg-white text-rose-600 transition hover:bg-rose-50 hover:!text-rose-600 focus-visible:ring-rose-200 [&>svg]:transition [&>svg]:text-rose-600 hover:[&>svg]:!text-rose-600"
onClick={() => setDashboardToDelete(dashboard)}
aria-label={`Excluir ${dashboard.name}`}
>
@ -344,9 +344,9 @@ export function DashboardListView() {
>
<DialogContent>
<DialogHeader>
<DialogTitle>Excluir dashboard</DialogTitle>
<DialogTitle>Excluir painel</DialogTitle>
<DialogDescription>
Essa ação remove o dashboard para toda a equipe. Confirme para continuar.
Essa ação remove o painel para toda a equipe. Confirme para continuar.
</DialogDescription>
</DialogHeader>
<DialogFooter className="sm:justify-between">
@ -360,7 +360,7 @@ export function DashboardListView() {
Cancelar
</Button>
<Button variant="destructive" onClick={handleConfirmDelete} disabled={isDeleting}>
{isDeleting ? "Removendo..." : "Excluir dashboard"}
{isDeleting ? "Removendo..." : "Excluir painel"}
</Button>
</DialogFooter>
</DialogContent>