feat(site-finder): X1 score breakdown + verbal explain (#47) #92
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#92
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/site-finder-x1-clean"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces #87 (rebase mess — clean branch off current main).
Closes #47 (priority/critical, UX X1 — score explanation).
Backend —
POST /parcels/{cad}/analyzeтеперь возвращает per-factor breakdown:score_breakdown_detailed: FactorContribution[]— каждый POI как отдельный фактор с verbal explainscore_top_3_positives/score_top_3_negatives(most-negative first через explicit ascending sort)score_by_group: ScoreGroupTotal[]— суммарные вклады по группам (Социалка / Торговля / Парки / Транспорт / Шум/трамвай / Локация / Прочее) для stacked-barweight=1.0(decay не применяется — bonus IS the value)factorslug включает enumerate idx — prevents React key collisionFrontend —
ScoreBreakdownPanel.tsx:Acceptance (per issue #47)
score_breakdown_detailedимеет verbal explanationHistory note
PR #87 был на сломанной ветке (rebase +
-s oursmerge привнесли X2 #88 и P2 #91 в branch ancestry через второй parent — GitHub PR diff показывал их как new files, хотя blob SHA byte-identical с main). Создан этот свежий branch off current main с одним clean commit. Логически эквивалентно последней версии PR #87 включая все ранее принятые fixup'ы (centrality weight=1.0, group_totals типа float|int, unique factor key с idx, top-3 negatives explicit ascending sort, etc).PR #87 будет закрыт после merge этого.
Test plan
ruff check + format— cleantsc --noEmit— cleannpm run lint --max-warnings 0— cleancurl -X POST https://gendsgn.ru/api/v1/parcels/66:41:0204016:10/analyze | jq '.score_breakdown_detailed | length, .score_top_3_positives, .score_by_group'66:41:0204016:10→ секция «Почему такой балл» в Overview✅ Auto-review passed (LGTM) — clean replacement PR, all prior X1 fixes в branch'е.
Verification:
Чтобы замержить — оставь approval comment (`залей` / `merge it` / `approved` / `мердж` / `lgtm`). Bot не мерджит по idle threshold (политика v4).
approved