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

Meta tags on every page: og/twitter tags with a description written from the page's live state, private-safe #1313

Closed opened this
Closed without merging

This pull adds link-preview meta tags to every page. The earlier check failed only because the new test/meta-tags.test.ts wasn't listed in scripts/gate.ts. I've now added it to GATE and merged current main into the branch.

Notes

stopped closed without shipping deploy 59397e5

opened this

This pull adds link-preview meta tags to every page. The earlier check failed only because the new test/meta-tags.test.ts wasn't listed in scripts/gate.ts. I've now added it to GATE and merged current main into the branch.

After the fix, test/check-list.test.ts and test/meta-tags.test.ts both pass (12 tests). I didn't run the full check; the forge runs that on push.

  • Tags: pages get twitter:title, twitter:description and twitter:image alongside the og tags. The shared logic is in src/web/preview.ts and src/web/layout.ts.
  • Descriptions: a change, an issue and an app each get one sentence written from their live state.
  • Private pages: a private page previews as only its name and "private". Its content never reaches the tags.

To try it, open any page and look at its <head>, or paste a change, issue or app URL into a link unfurler.

Closes #1053

commented

Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs