Skip to content

Add rich previews for shared document links - #27

Merged
rgarcia merged 3 commits into
mainfrom
hypeship/slack-link-previews
Aug 28, 2026
Merged

Add rich previews for shared document links#27
rgarcia merged 3 commits into
mainfrom
hypeship/slack-link-previews

Conversation

@rgarcia

@rgarcia rgarcia commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Open Graph and Twitter Card metadata to public documents and private capability links
  • generate a branded 1200×630 preview image from the document title and authored meta description
  • require the document view token on private preview image requests, while keeping bare private URLs free of document metadata
  • document the capability-link unfurl behavior

Testing

  • npm test (186 tests)
  • npm run spec:check
  • npm run build
  • npx tsc --noEmit

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
justhtml Ready Ready Preview Aug 28, 2026 2:39pm

Comment thread lib/docs/preview.ts Outdated
Comment thread app/d/[slug]/preview/route.tsx

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 908584b. Configure here.

Comment thread lib/docs/preview.ts Outdated
@rgarcia
rgarcia merged commit fb93571 into main Aug 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant