feat(vin-decode): add solved/unsolved VIN list shortcut buttons

Add two header buttons on the VIN decode dashboard linking to the
existing /vins list pre-filtered by success=true / success=false,
carrying the current time-range window via the `from` param so the
list matches the dashboard view. Shows actual VIN codes (not counts).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Semih
2026-05-25 00:07:55 +03:00
parent 0419cc271c
commit f05e0bc808

View File

@@ -109,6 +109,20 @@ export default async function VinDecodePage({
> >
VIN list VIN list
</Link> </Link>
<Link
href={`/projects/sase/vin-decode/vins?success=true&from=${encodeURIComponent(health.rangeStart.toISOString())}`}
className={buttonVariants({ variant: "outline", size: "sm" })}
title="Bu pencerede başarıyla çözülen VIN kodları"
>
Çözülen VIN&apos;ler
</Link>
<Link
href={`/projects/sase/vin-decode/vins?success=false&from=${encodeURIComponent(health.rangeStart.toISOString())}`}
className={buttonVariants({ variant: "outline", size: "sm" })}
title="Bu pencerede çözülemeyen VIN kodları"
>
Çözülemeyen VIN&apos;ler
</Link>
<Link <Link
href="/projects/sase/vin-decode/business" href="/projects/sase/vin-decode/business"
className={buttonVariants({ variant: "outline", size: "sm" })} className={buttonVariants({ variant: "outline", size: "sm" })}