feat(web): search history opens the vehicle in one click
Clicking a recent search now navigates straight to the vehicle's catalog page instead of just refilling the VIN input — the row already carries the vehicle id, so the re-decode round trip is wasted. Hint copy updated to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -720,8 +720,7 @@ function SearchPage() {
|
||||
position: idx,
|
||||
age_days: ageDays,
|
||||
});
|
||||
setVin(v.vin);
|
||||
inputRef.current?.focus();
|
||||
navigate({ to: "/dashboard/vehicles/$id", params: { id: v.id } });
|
||||
}}
|
||||
data-faro-user-action-name="select-history-vin"
|
||||
className="group flex items-center gap-4 rounded-2xl border border-border bg-background p-4 text-left transition-colors hover:bg-accent"
|
||||
@@ -743,7 +742,7 @@ function SearchPage() {
|
||||
</div>
|
||||
|
||||
<p className="text-center text-xs text-muted-foreground">
|
||||
Geçmiş aramayı tıklayın — şase otomatik doldurulur
|
||||
Aracı parça kataloğuyla birlikte yeniden açmak için tıklayın
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user