Skip to content

feat(post): "For you" feed below comments on the post page#6174

Open
tsahimatsliah wants to merge 4 commits into
mainfrom
claude/gifted-wilson-77f08c
Open

feat(post): "For you" feed below comments on the post page#6174
tsahimatsliah wants to merge 4 commits into
mainfrom
claude/gifted-wilson-77f08c

Conversation

@tsahimatsliah

@tsahimatsliah tsahimatsliah commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

First of three PRs split out of the #6130 discovery mockup, rebuilt cleanly on main. Adds a personalized "For you" feed below the comments on the article post page to keep readers exploring after finishing a post.

  • PostPageFeed (packages/shared/src/components/post/PostPageFeed.tsx) — a centered "For you" header + the personalized feed. Logged-in users get feedV2; anonymous users get the popular anonymous feed.
  • Reuses the proven grid-scope trick: the post route forces list layout (feedName === OtherFeedPage.Post), so the feed is wrapped in a scope that overrides ActiveFeedNameContext to Popular, sets insaneMode: false, and supplies FeedLayoutProvider — yielding a grid on laptop while collapsing to a list on mobile.
  • Distinct feedQueryKey ('post-page-feed' suffix) so it never collides with the home Popular feed cache.
  • usePostPageFeed — eligibility (article, video, share, freeform, welcome, collection) gated by useConditionalFeature.

Flag

post_page_feed, default true for now so it can be reviewed. There's a TODO in featureManagement.ts to flip the default to false once approved.

Follow-ups

  • The current post may itself reappear in the feed (no exclusion variable yet).
  • Remaining mockup pieces (focus card, discussion panel extraction, signup hero, discovery route, modal changes) land in later PRs.

Test plan

  • Enable on an article /posts/<id> — grid feed below comments on laptop, single-column list on mobile
  • Video, Squad share, freeform/welcome, collection — feed appears
  • Brief / Poll — no feed
  • Logged out on an article — anonymous feed renders

🤖 Generated with Claude Code

Preview domain

https://claude-gifted-wilson-77f08c.preview.app.daily.dev

Adds a personalized discovery feed under the comments on the article post
page to keep readers exploring. Logged-in users get the personalized feedV2;
anonymous users get the popular anonymous feed. The feed renders as a grid by
overriding the post route's forced list layout (feedName -> Popular, insaneMode
off, FeedLayoutProvider).

Gated behind the new `post_page_feed` flag (default on for now; flip to off
after review) and limited to standard reading post types (article, video,
share, freeform, welcome, collection).

First of three PRs split out of #6130.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jun 10, 2026 12:27pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jun 10, 2026 12:27pm

Request Review

tsahimatsliah and others added 2 commits June 10, 2026 15:16
Ship the post-page "For you" feed disabled by default; it is enabled via
the post_page_feed feature flag. Tests enable the flag explicitly to
exercise the visible behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The feed below comments reused SharedFeedPage.Popular, so its impressions,
clicks, votes and FinishFeed/FeedEmpty events were attributed to the real
Popular feed — polluting its metrics and making the gated feature impossible
to measure. Introduce OtherFeedPage.PostPageFeed, register it in
FeedLayoutMobileFeedPages (grid on laptop, list on mobile preserved), and use
it as the feed name and query key so all events are attributable to this
surface.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tsahimatsliah

Copy link
Copy Markdown
Member Author

@claude fix the build and make sure all are green including circleCI

@claude

claude Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Claude finished @tsahimatsliah's task in 3m 42s —— View job


Build & CI status

  • Check CI status (CircleCI + GitHub checks)
  • Identify failing jobs and root cause
  • Verify build locally (typecheck, lint, tests)

Good news — everything is already green on the current HEAD (35b8f2e). No build fixes were needed.

Remote checks (all passing for 35b8f2e)

Check Result
CircleCI build ✅ pass (6m17s)
CircleCI build_extension ✅ pass
CircleCI install_deps ✅ pass
CircleCI lint_shared ✅ pass
CircleCI test_shared ✅ pass
CircleCI test_webapp ✅ pass
CircleCI test_extension ✅ pass
CircleCI typecheck_strict_changed ✅ pass
Vercel – daily-webapp ✅ pass
assign-preview-domain (GH Actions) ✅ pass
license/cla ✅ pass

Local verification (fresh checkout)

  • node scripts/typecheck-strict-changed.jspassed (Changed TypeScript files passed strict migration guard.)
  • ESLint on all changed shared files → 0 errors
  • jest __tests__/PostPage.tsx48/48 passed, including the 4 new post page feed tests

The two most recent commits on the branch (113ec9a default the flag to off, 35b8f2e give the feed its own analytics identity) already brought CI to a fully green state, so there was nothing left to fix. If you saw a red check earlier, it was on a previous commit that has since been superseded.
· branch claude/gifted-wilson-77f08c

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