feat(tradein): street_only disclaimer in StreetDealsCard (#722) (#725)
All checks were successful
Deploy Trade-In / changes (push) Successful in 4s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m34s
Deploy Trade-In / deploy (push) Successful in 33s
All checks were successful
Deploy Trade-In / changes (push) Successful in 4s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m34s
Deploy Trade-In / deploy (push) Successful in 33s
Co-authored-by: bot-frontend <bot-frontend@gendsgn.local> Co-committed-by: bot-frontend <bot-frontend@gendsgn.local>
This commit is contained in:
parent
575d9abbf7
commit
1f3008d59e
2 changed files with 10 additions and 0 deletions
|
|
@ -114,6 +114,13 @@ export function StreetDealsCard({ estimate }: Props) {
|
|||
)}
|
||||
</div>
|
||||
)}
|
||||
{data.data_quality === "street_only" && (
|
||||
<div className="linkage-hint">
|
||||
Данные по улице, не по конкретному дому: привязать сделки ДКП к
|
||||
отдельному объявлению по этому адресу нельзя — показаны все сделки
|
||||
на улице.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="card-meta">
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -322,6 +322,9 @@ export interface SalesVsListingsResponse {
|
|||
deals_with_listings: number;
|
||||
linkage_rate_pct: number;
|
||||
median_discount_pct: number | null;
|
||||
// Качество данных: house_linked = есть пары ДКП↔listing; street_only = есть
|
||||
// сделки, но привязка к конкретному дому/объявлению невозможна; no_data = нет сделок.
|
||||
data_quality: "house_linked" | "street_only" | "no_data";
|
||||
pairs: SalesListingPair[]; // все sorted by deal_date DESC
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue