Skip to content

feat: Pinterest-style post discovery mockup#6130

Open
tsahimatsliah wants to merge 58 commits into
feat/anon-post-page-conversionfrom
feat/post-discovery-experience
Open

feat: Pinterest-style post discovery mockup#6130
tsahimatsliah wants to merge 58 commits into
feat/anon-post-page-conversionfrom
feat/post-discovery-experience

Conversation

@tsahimatsliah
Copy link
Copy Markdown
Member

@tsahimatsliah tsahimatsliah commented Jun 2, 2026

Summary

A mockup of a Pinterest/Google-Images-style post discovery experience that turns the post page into a continuous exploration loop. Gated behind a new post_discovery_experience flag and exposed on a noindex mockup route at /posts/[id]/discovery.

  • PostFocusCard — borderless, elevated two-column card. Article summary + (Rich) key takeaways and a "more like this" teaser on the left; the live discussion on the right. Includes a Lean / Rich content-depth toggle.
  • PostDiscussionPanel — extracted the comment stack (counts, sort, composer, comments, share) out of EngagementRail into one reusable panel, so the reader and the focus card share a single source of truth instead of duplicating it.
  • PostDiscoveryFeed — a finite, topic-relevant rail (feedByTags on the post's tags) followed by the infinite personalized feed, filling the page with relevant content to keep exploration going.
  • PostDiscoveryLayout — shell wiring the focus card, a value-timed signup nudge for logged-out visitors, an impression log, and a back-to-top control.

Notes / follow-ups

  • Stacked on feat/anon-post-page-conversion (the post/experience/* primitives it reuses live there, not on main).
  • Discovery feed renders the research-recommended uniform grid. A grid-vs-masonry comparison and richer loop instrumentation are intentionally deferred.

Test plan

  • Enable post_discovery_experience and open /posts/<id>/discovery
  • Verify focus card layout (desktop two-column, mobile stacked) and Lean/Rich toggle
  • Verify comments/sort/composer work in the discussion panel
  • Verify the related rail + infinite discovery feed load and that cards open posts
  • Verify the existing reader modal (EngagementRail) discussion still works after the extraction

Made with Cursor

Preview domain

https://feat-post-discovery-experience.preview.app.daily.dev

Introduce a discovery experience for the post page that turns a read into a
continuous exploration loop:

- PostFocusCard: borderless two-column card (summary/key points left, live
  discussion right) with a Lean/Rich content-depth toggle.
- PostDiscussionPanel: extracted the comment stack (counts, sort, composer,
  comments, share) out of EngagementRail so the reader and the focus card
  share one source of truth instead of duplicating it.
- PostDiscoveryFeed: a finite, topic-relevant rail followed by the infinite
  personalized feed, filling the page with relevant content.
- PostDiscoveryLayout: shell with a value-timed signup nudge, impression
  logging, and a back-to-top control.
- Mockup route /posts/[id]/discovery (noindex) gated behind the new
  post_discovery_experience flag.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jun 4, 2026 11:18am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jun 4, 2026 11:18am

Request Review

Gate /posts/[id] on post_discovery_experience for article/video posts so the
discovery layout takes over the actual post page (not only the standalone
mockup route). Add a ?discovery=1 query override for easy preview without
flipping the flag, and suppress the duplicate auth banner in that mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
Default the post discovery feature on for the mockup branch so PR preview URLs
show the planned discovery design without requiring a query param. Keep
?discovery=0 as a reviewer escape hatch for comparing against the classic post
page.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 2 commits June 2, 2026 12:03
Simplify the discovery post surface so it feels like daily.dev instead of a
new boxed composition. Render the post details directly in the left column,
keep comments in a compact reader-style right rail, widen the focus area, and
show related content as feed-grid cards instead of a horizontal/list-like rail.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the discovery post action row focused on the primary read/watch CTA plus the
context menu, avoiding a second icon-only read action from PostHeaderActions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pin the post discovery feature mock off in the existing PostPage suite so those
assertions continue to cover the classic post-page behavior while the mockup
branch defaults the new discovery experience on for preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 2 commits June 2, 2026 12:25
The discovery feed was inheriting the post page/list-mode feed layout, so users
with list mode enabled still saw list cards. Scope the nested discovery feeds to
a grid-oriented feed context and disable insane mode only for this surface so it
uses the familiar card grid regardless of global feed layout preference.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the discovery left column closer to the production post page by using the
existing stats/action bar components instead of a custom detail section. Wire the
comment action to the right-side discussion rail composer and remove the custom
key-takeaways block from this surface.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 3 commits June 2, 2026 12:34
Keep the post details constrained, but render the discovery feed outside that
post-detail wrapper so it can expand like the main feed. Let it use the normal
responsive feed column counts while still forcing this nested surface onto the
grid-card layout path.

Co-authored-by: Cursor <cursoragent@cursor.com>
Render the discovery left column with the same production post detail stack used
above comments today: PostHero, video embed, PostInsightPanel, code snippets,
and the standard stats/action bar. Keep only the comment thread separated into
the right rail.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow PostHero to receive a custom source row and render the discovery post
source with the Read Inside daily.dev SourceStrip pattern: logo, source name,
handle, and follow action.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 2 commits June 2, 2026 12:45
Keep the post details constrained, but let the discovery feed itself occupy the
available page width like the main feed. Move padding to the section headings
and scope nested feeds to their real feed names so responsive card columns match
home/explore behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use the production PostContainer as the discovery left column so the post details
keep the same flex, padding, and right-border behavior as today's post page.
Render only the comment thread in the right rail while preserving the source,
title, summary, tags, metadata, media, TOC, snippets, and action bar in the left
post details area.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 2 commits June 2, 2026 12:55
Render the right-side discussion as a contained card with improved spacing,
shadow, and padding. Cap the sidebar height and make the comment thread scroll
inside the card so long discussions and replies do not stretch the post details
surface.

Co-authored-by: Cursor <cursoragent@cursor.com>
Scope the related discovery feed to three cards per row with the same grid/gap
behavior expected from feed cards, and add the requested top spacing before the
card grid.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 3 commits June 2, 2026 13:07
Compact the post recommendation/action area into a single row on tablet and up,
remove the extra discussion title from the right rail, and pull the discussion
card flush to the top while keeping its card styling and internal scroll.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the discussion-card header area with the standard post action bar and
remove the duplicate action bar from the left post details column. Keep the stats
line with the post details and let the right rail action bar control the comment
composer.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the production column border in the discovery layout so the left post
details and right comments card do not have a hard separator between them.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow the post action bar to render without its outer border in the discovery
rail, and make ShareBar configurable so this surface shows one row of share
options with the rest behind the expand button.

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 2 commits June 2, 2026 23:41
… top sort

Co-authored-by: Cursor <cursoragent@cursor.com>
…n discovery

Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 4 commits June 2, 2026 23:50
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
tsahimatsliah and others added 3 commits June 3, 2026 00:06
…tilities

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…below

- Constrain focus card cover to max-w-sm thumbnail like production
- Reduce action bar icons to Medium while keeping the strip height/borders
- Move the discussion panel into a single vertical column below the TOC

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tsahimatsliah and others added 2 commits June 4, 2026 11:06
… ad card

- Drop the bordered/scrolling comment box for a flat production-style list
- Move tags and the metadata strip above the cover image
- Shrink action bar buttons and icons to Small
- Render the clickbait shield in neutral gray like the other utilities
- Bring back the sidebar ad card below the table of contents

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Test layout variant: move the article cover into a small thumbnail
next to the title, and relocate the Read post button to sit below the
TLDR summary.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tsahimatsliah and others added 3 commits June 4, 2026 11:27
- Restore the Read post button to the top-right header row
- Move the "Share your thoughts" composer above the comment list, so it
  sits below the table of contents and ad card

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the surface-float fill on the TOC so it reads as a flat bordered
strip instead of a filled card.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace BuildYourFeedWidget in the discovery layout with a background-
image signup hero modeled on the new-tab OnboardingSignupHero from
the hijacking-strip work (PR #6127): full-bleed onboarding backdrop,
headline + subtext, and a glass AuthOptions card. Scoped to the
discovery surface so other BuildYourFeedWidget usages are untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Move the sidebar ad into the right gutter at laptopL+ via absolute
positioning anchored to the centered content column, so the post
content stays centered on the page. Strip the ad's background to a
border-only card. Below laptopL the ad stays inline (single render,
no duplicate ad query).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… feed

- Set the right-rail ad to 320px; gate it at laptopXL and widen the
  focus-card area there so content stays centered with room for the rail
- Add a "Share this post" strip (social + squad buttons) below the
  comment composer, reusing ShareBar with configurable title/visibility
- Signup hero: move the headline inside the auth box, drop the
  paragraph, and make the strip full width
- Discovery feed: drop the "More like this" rail; keep only the centered
  "Discover more" feed without the eyebrow label

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the heavy ShareBar grid under the composer with the compact
DiscussionShareRow. Add a withSquads option that surfaces the user's
squads as inline avatar buttons; the trailing share action still opens
the full modal with every squad and option. Revert the now-unused
ShareBar title/className props.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
When the focus card post is a shared post, render the underlying
article (title, source, image, summary, toc, tags, metadata) so it
looks identical to a default post. Engagement (votes, comments, share,
ad) stays on the shared post. Add a small link-style label below the
source: "This post was shared from {source}".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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