feat: Quickstart, Benutzerverwaltung und Orion-Ergebnisbox
This commit is contained in:
parent
4f669a3426
commit
e9e46f2cb4
404 changed files with 1032 additions and 600 deletions
|
|
@ -6,6 +6,7 @@ import Link from "next/link";
|
|||
import { useAuth } from "@/components/auth";
|
||||
import { apiGet } from "@/lib/api";
|
||||
import { BrandLogo } from "@/components/brand/brand-logo";
|
||||
import { ValidationResultBadge } from "@/lib/validation-result";
|
||||
|
||||
type DashboardData = {
|
||||
customers: number;
|
||||
|
|
@ -18,6 +19,10 @@ type DashboardData = {
|
|||
validation_approved: number;
|
||||
validation_completed: number;
|
||||
validation_overdue: number;
|
||||
validation_result_open: number;
|
||||
validation_result_passed: number;
|
||||
validation_result_conditional: number;
|
||||
validation_result_failed: number;
|
||||
equipment_green: number;
|
||||
equipment_yellow: number;
|
||||
equipment_red: number;
|
||||
|
|
@ -105,6 +110,16 @@ export default function DashboardPage() {
|
|||
<Link href="/validations?status=ABGESCHLOSSEN" className="rounded-lg border border-border bg-surface p-6 shadow-soft transition hover:border-primary/40 hover:bg-background">
|
||||
<h2 className="text-xl font-semibold">Letzte Berichte</h2>
|
||||
<p className="mt-4 text-3xl font-semibold text-text">{query.data?.validation_completed ?? 0}</p>
|
||||
<div className="mt-4 flex flex-wrap gap-2">
|
||||
<ValidationResultBadge value="BESTANDEN" className="text-[11px]" />
|
||||
<span className="text-sm font-semibold text-text">{query.data?.validation_result_passed ?? 0}</span>
|
||||
<ValidationResultBadge value="BESTANDEN_MIT_AUFLAGEN" className="text-[11px]" />
|
||||
<span className="text-sm font-semibold text-text">{query.data?.validation_result_conditional ?? 0}</span>
|
||||
<ValidationResultBadge value="NICHT_BESTANDEN" className="text-[11px]" />
|
||||
<span className="text-sm font-semibold text-text">{query.data?.validation_result_failed ?? 0}</span>
|
||||
<ValidationResultBadge value="OFFEN" className="text-[11px]" />
|
||||
<span className="text-sm font-semibold text-text">{query.data?.validation_result_open ?? 0}</span>
|
||||
</div>
|
||||
</Link>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue