Public: anyone can read this; the crew can change it.
A property page link pasted into a text or a post previews the home: its address, price, facts and hero photo #91
Merged 32d 19h ago, live in production
A link to /homes/:id now previews the home itself: its address, price, facts and hero photo. The tests I ran pass: property, hostile, offmarket, security, a11y, design, deps, walkthrough and speed. bun x tsc --noEmit printed only tsc's help text because the repo has no tsconfig.json, so it didn't type-check.
-
Reviews
ApprovedPreview checked at this head: /homes/1 carries the address and price in og:title and twitter:title, the facts line plus first approved sentence in the descriptions, an absolute og:image and twitter:image on the public origin with alt text, and twitter:card summary_large_image. Pages with no description or image keep their tags. Output is escaped, and the hostile-address test covers it. No contract cell changed. Minor: the description carries lot and year as well as the three facts, and the SVG sample photos are ignored by some networks (the README says so).
-
Checks
shipped production is serving it deploy d34a526
-
History
- Property page link previews carry the home: address, price, facts, first approved sentence and hero photo 96fadfa
- See each listing's days on market and its price history on the listing, the seller report and the weekly seller update (#90) f240fb0
- Log each showing and the buyer agent's feedback on the listing, and see the count on the home list (#89) a951a5c
- Each week, get a seller update email to approve: what went out for their listing, what is scheduled next, and the property page link (#86) c7e3bc9
- The day before an open house, get an 'Open tomorrow' reminder post and email to approve (#85) a42d2d9
- Take a listing off the market: mark it Withdrawn or Expired, and its property page says it is no longer available (#78) 22030df
- The duplicate-address notice says "open it, or launch another anyway" with both choices inside it (#82) a4bd6cc
- After an open house, get a 'Thanks for stopping by' email to approve, addressed to the visitors who signed in (#79) 8d67df6
- Describe each photo once: the words become its alt text on the listing, the property page, the email and the flyer (#77) ed9aba0
- Launching an address you already launched asks first, and links to the listing you have (#74) 63f9fc2
- Type your details once: a new listing's form starts with the agent's name, brokerage, license, phone, email, colours and headshot from their last listing (#71) 2cfa641
- Show what the Fair Housing check catches on one plain-language page, linked from every finding (#70) 7c9c244
- See the launch week on one page: which approved post and email goes out on which day, and add it to your calendar (#69) 0624ebd
- Make a square picture for each listing's social posts: hero photo, price and a Just listed / Open house / Sold band in the agent's brand (#66) de61a54
- Put a listing back on the market when a deal falls through, and get a 'Back on market' post and email to approve (#61) 0338cda
- Print an open house sign-in sheet for a listing with an open house, in the agent's brand (#65) 7bc1a94
- Hand the seller a one-page launch report: every asset, who approved it and when, and the property page link, ready to print (#60) 2c746a1
- Put back an asset's earlier words: each asset keeps its last five versions and one tap restores one (#56) 4782e1c
- Mark a listing Coming soon and get a teaser post and email to approve before it goes live (#57) 2f24ef4
- Open the meeting on a finished launch: the 412 Alder Lane sample shows all six assets approved by its sample agent (#54) 3393bbf
A link to /homes/:id now previews the home itself: its address, price, facts and hero photo. The tests I ran pass: property, hostile, offmarket, security, a11y, design, deps, walkthrough and speed. bun x tsc --noEmit printed only tsc's help text because the repo has no tsconfig.json, so it didn't type-check. The repo has no scripts/gate.ts or scripts/fast.ts, and I did not run the full suite. I did not try the app against a real iMessage, Facebook or LinkedIn card.
What changed
src/pages/layout.ts:Frametakes an optionaldescription,image(absolute URL plus alt text) andshareTitle. Pages that pass none keep today's tags exactly. With an image, it addsog:image,og:image:altandtwitter:image, andtwitter:cardbecomessummary_large_image. The CSP and the other security headers are untouched.src/pages/property.ts:og:titleandtwitter:titleare "address · price".- The meta,
og:andtwitter:descriptions are the facts line plus the first sentence of the approved MLS words. An unapproved draft contributes nothing, andog:typestayswebsite. - The image is the hero photo on the public origin, with that photo's description as alt text. A listing with no photo gets no image tags.
- A withdrawn or expired listing's title is the address alone and its description is "This home is no longer available." It has no price and no facts.
- Tests:
src/property.test.ts: the tags for the sample listing with a hero photo, no draft words in the tags, no image tags without a photo, and the off-market preview.src/hostile.test.ts:/homes/:idis added to the meta-escaping check, plus a test that the hostile address stays inert inside the title and description attributes.
README.md: a note that the sample photos are SVG, which some networks ignore on a card, so those previews show text only. I did not convert images or add a dependency.
Things to look at
- The facts line in the description is the app's existing
factsLine, so it also carries lot and year ("3 bd · 2.5 ba · 2,140 sq ft · 0.18 acre lot · built 1928"), not just the three facts in the issue's example. - No role in the permission table was loosened.
A link to
/homes/:idnow previews the home itself: its address, price, facts and hero photo. The tests I ran pass: property, hostile, offmarket, security, a11y, design, deps, walkthrough and speed.bun x tsc --noEmitprinted only tsc's help text because the repo has notsconfig.json, so it didn't type-check. The repo has noscripts/gate.tsorscripts/fast.ts, and I did not run the full suite. I did not try the app against a real iMessage, Facebook or LinkedIn card.What changed
src/pages/layout.ts:Frametakes an optionaldescription,image(absolute URL plus alt text) andshareTitle. Pages that pass none keep today's tags exactly. With an image, it addsog:image,og:image:altandtwitter:image, andtwitter:cardbecomessummary_large_image. The CSP and the other security headers are untouched.src/pages/property.ts:og:titleandtwitter:titleare "address · price".og:andtwitter:descriptions are the facts line plus the first sentence of the approved MLS words. An unapproved draft contributes nothing, andog:typestayswebsite.src/property.test.ts: the tags for the sample listing with a hero photo, no draft words in the tags, no image tags without a photo, and the off-market preview.src/hostile.test.ts:/homes/:idis added to the meta-escaping check, plus a test that the hostile address stays inert inside the title and description attributes.README.md: a note that the sample photos are SVG, which some networks ignore on a card, so those previews show text only. I did not convert images or add a dependency.Things to look at
factsLine, so it also carries lot and year ("3 bd · 2.5 ba · 2,140 sq ft · 0.18 acre lot · built 1928"), not just the three facts in the issue's example.Closes #84