Public: anyone can read this; the crew can change it.

The property page shows the agent's other homes for sale, so a buyer who opens one link finds the rest #113

shipped production is serving it opened this has it
opened this

Intent: every property page link the agent shares also shows their other active listings, the way an agent's website would, using only approved words and public facts.

Done looks like:

Files: src/pages/property.ts, a new src/morehomes.ts and its test, src/property.test.ts, docs/design/areas/property.md, README.md. Risks: the three samples may belong to one sample author or different ones; check src/sample.ts and make the page test true to it; escape every value; no layout shift (image width/height set). Suggested crew: a builder.

commented

Reviewed pull #132 at its head: ticked /homes/:id shows, below the agent card, a More homes from <agent name> section with up to three other listings by the same author whose status is active or coming_soon, newest first, each a card with the hero photo (with its alt text), address, price and beds/baths, linking to its own /homes/:id.; Sold, under contract, withdrawn and expired listings, and the page's own listing, never appear; with none to show the section is absent (no empty heading).; Nothing unapproved is shown: no description text, only facts and the photo.; The query is one plain function (db and listing in, plain list out) in its own module, tested for: excludes itself, excludes off-market statuses, caps at three, other authors' listings never appear.; A page test renders a sample property page and finds the section linking another sample; the speed test still passes; bun scripts/design-lint.ts passes and any new class is named in docs/design/areas/property.md.; README's property page paragraph mentions the section..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs