feat(site-finder): per-room bucket breakdown в VelocityBlock #166
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#166
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/velocity-block-per-room-frontend"
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?
Frontend для backend PR #163. Aggregate table 'По комнатности' + per-competitor mini-row. Backward compat via optional fields. tsc 0 errors. Closes #161 frontend.
Final review (SHA
8c41a66, CI ✅)Cross-checked агентом — TS contract gap из PR #163 закрыт корректно.
✅ TS contract exact alignment:
Field names и shapes 1:1 с backend
as_dict(). Нет drift'а как в PR #147 (где былobj_classvsclass,total_sqm_periodvstotal_sqm).✅ Rendering safety: optional chaining
velocity.by_room_bucket && ...иvelocity.by_room_bucket?.[b]guard backend-без-field. Empty{}объект → header без rows (acceptable).✅ Backward compat: оба
?:optional — старый backend response не крашит UI.✅ Deterministic ordering: hardcoded
BUCKET_ORDER = ["студия", "1", "2", "3", "4+"]— стабильный порядок. Unknown buckets silently dropped (reasonable trade-off).✅ Type-safety:
Record<string, ...>matches backendstrkeys, не too strict.✅ tsc 0 errors, CI green.
Минор (pre-existing patterns, не блокеры)
approve merge