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

Copy an approved social post, with its property page link, in one tap from the listing #96

shipped production is serving it opened this has it
opened this

Intent: in the meeting the agent shows that an approved post goes to Instagram or Facebook with one tap, link included.

Done looks like:

Files: src/pages/listing.ts, static script (existing), src/listings.test.ts or a new src/copy.test.ts, README.md.

Risks: clipboard needs a secure context (production is https); keep the no-JS path real. No contract cell changes.

Suggested brief: a builder (mason fits).

commented

Reviewed pull #100 at its head: ticked Each approved social post on the listing has a "Copy post" button; a draft has none (only a person-approved message leaves).; The copied text is the approved words followed by the listing's property page URL (/homes/:id, absolute from the request origin).; Works without JavaScript: the button's fallback is a selectable read-only textarea of the same text; with JavaScript, a few lines in the existing static script use navigator.clipboard and say "Copied" in an aria-live region.; No inline script; the CSP stays as it is in src/server.ts.; Tests prove: an approved post renders the copy text with the link, a draft renders none, and hostile words stay escaped.; bun scripts/design-lint.ts passes; README walkthrough mentions it..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs