Bot-crawlable public pages: 3. SPA
Done 2026-11-07 per the plan. web/src/publicLink.ts (new): hashPermalink reproduces the old string byte-for-byte (origin, pathname, #/app?type=&id=, encodeURIComponent, no mode, no list params) and bestLinkUrl returns the public URL only for a nonempty string; npm run test:public-link (11 Node tests, the urlState.test.mjs pattern) joins the gate with test:url-state and test:region. copyBestLink guards on editRecord?.id ?? recordId (the non-URL one-row recovery path works), builds the URL through the two helpers, and the button title says "Copies the public page." on a public copy; the label stays "Best Link". openEditForm's non-strict fallback drops public-url from the supplied list row so a stale row cannot resurrect a revoked URL. The clipboard fence keys on [recordId, recordMode, editRecord?.id] and the cleanup resets copyState (the old bump made the timer's clear a no-op, so "Copied" survived onto the next record). npm run build green. The manual acceptance script (curl a staging /p/, unfurl, Rich Results, Best Link live) gates the release and still needs a guest-enabled staging model after this lands there — the p side was curl-verified live against the REPL image (root, record with JSON-LD, robots, feed, file, /posts SPA shell, HEAD, POST 405).
Plan: 03-spa.org
- Slot
- 5400
- Status
- 60 Done
- Tags
- mvp, backend, frontend
- Contributors
- Donnie