Skip to content

fix(listings): homes cover the whole viewport (Peterpan south bias) - #61

Merged
Spoof14 merged 2 commits into
mainfrom
fix/peterpan-viewport-coverage
Oct 12, 2026
Merged

Spoof14 merged 2 commits into
mainfrom
fix/peterpan-viewport-coverage

Conversation

@Spoof14

@Spoof14 Spoof14 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Root cause: Peterpan /houses/area/pc with order_by=price returned a non-spatial, south-first slice (2 pages x 80 of 684 homes in the Magok viewport: lat 37.5320-37.5379 while the map spans 37.532-37.593); aggregate then slice(0, cap)-ed in fetch order. Fix: drop order_by, 300/page, quadrant split when total > page, fair grid sampling for the cap, Zigbang hydrate budget spread. Client bounds are correct (real Leaflet bounds). Tests added with repro bounds.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ziggybang Ready Ready Preview Oct 12, 2026 3:12am UTC
ziggybang-5xjx Ready Ready Preview Oct 12, 2026 3:12am UTC

@Spoof14
Spoof14 merged commit 799025b into main Oct 12, 2026
4 checks passed

This branch was successfully deployed

2 active deployments
Preview – ziggybang — 766e57d2 Deployed Oct 12, 2026 by vercel[bot]
Preview – ziggybang-5xjx — 766e57d2 Deployed Oct 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants