Skip to content

feat(snapshot): credit the post title on text snapshots - #6730

Open
tomeredlich wants to merge 2 commits into
mainfrom
feat/snapshot-post-title
Open

tomeredlich wants to merge 2 commits into
mainfrom
feat/snapshot-post-title

Conversation

@tomeredlich

@tomeredlich tomeredlich commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Text snapshots (TLDR, paragraph, text selection, Happening now) credited only the source, so a shared image never said which article the passage came from. The post title now sits under the divider, above the source, smaller than the passage so the copy stays the subject.

  • HighlightTextSnapshotCard takes an optional title, rendered by SnapshotCredit under the rule (cut at a word after 140 chars).
  • TextSnapshotButton and SelectionSnapshotBar pass post.title; covers post page, modal, focus card, shared posts, freeform, collections and briefs.
  • Happening now: the highlight fragment now fetches title for the post and shared post; falls back to the highlight headline.
  • Posts without a title (e.g. untitled squad posts) render as before. Poll and hot take cards are unchanged.

Test plan

  • TextSnapshotButton spec asserts the title lands on the staged card
  • shared snapshot/highlights tests and pnpm --filter webapp test pass
  • Generated every export PNG through the real capture pipeline in Storybook and checked the title placement

🤖 Generated with Claude Code

Preview domain

https://feat-snapshot-post-title.preview.app.daily.dev

TLDR, paragraph, text-selection and Happening now snapshots only
credited the source, so a shared image never said which article the
passage came from. The title now sits under the divider, above the
source, at a smaller size than the copy so the passage stays the
subject. Happening now fetches the post (or shared post) title and
falls back to the highlight headline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Sep 27, 2026 7:37am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — 981a2684 Deployed Sep 27, 2026 by vercel[bot]
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.

2 participants