fix: valuation page Vietnamese diacritics, correct API routes, update tests

- Add proper Vietnamese diacritics to all valuation components
  (form, results, history) and their test assertions
- Fix valuation API client to use /analytics/valuation endpoint
- Return empty history gracefully (no server endpoint yet)

Co-Authored-By: Claude Opus 4 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-13 12:03:47 +07:00
parent f373f7b1e2
commit ccfc176e40
8 changed files with 108 additions and 99 deletions

View File

@@ -34,9 +34,9 @@ export default function ValuationPage() {
return (
<div className="space-y-8">
<div>
<h1 className="text-2xl font-bold sm:text-3xl">Dinh gia AI</h1>
<h1 className="text-2xl font-bold sm:text-3xl">Đnh giá AI</h1>
<p className="mt-2 text-muted-foreground">
Su dung AI de uoc tinh gia tri bat dong san dua tren du lieu thi truong
S dng AI đ ưc tính giá tr bt đng sn da trên d liu th trường
</p>
</div>
@@ -50,7 +50,7 @@ export default function ValuationPage() {
{predictMutation.isError && (
<div className="rounded-lg border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive">
Khong the dinh gia. Vui long thu lai sau.
Không th đnh giá. Vui lòng th li sau.
</div>
)}