rznb9xaih: Add double-tap to like and the featured experts slide to the phone feed

This commit is contained in:
2026-10-20 08:31:04 -06:00
parent b97dddfc4c
commit bbd84f38a0
9 changed files with 243 additions and 26 deletions
+5
View File
@@ -6,6 +6,7 @@ import { applyLikeOutcome, LikeError, sendLike } from "@/lib/like-client";
import { firstLoadFailure, mergePosts, toCardPosts, upgradeVideos, type CardPost } from "@/lib/feed-model";
import { PostError, publishAndConfirm } from "@/lib/post-client";
import { DeleteError, sendDelete } from "@/lib/delete-client";
import type { DiscoverExpert } from "@/lib/discover";
import type { ComposerProps } from "./Composer";
import { FeedView, type FeedStatus } from "./FeedView";
import { useCompactLayout } from "./layout-context";
@@ -16,11 +17,14 @@ export function Feed({
onSignedOut,
feedUserId,
person,
featuredExperts,
}: {
onSignedOut: () => void;
feedUserId?: string | null;
/** The signed-in person, shown beside the composer. */
person?: ComposerProps["person"];
/** Shown as a slide after the second post on phones. */
featuredExperts?: DiscoverExpert[];
}) {
const [posts, setPosts] = useState<CardPost[]>([]);
const [status, setStatus] = useState<FeedStatus>("loading");
@@ -280,6 +284,7 @@ export function Feed({
deleteErrors={deleteErrors}
onSignedOut={onSignedOut}
composer={{ value: draft, busy: posting, error: postFailed, file, onChange: changeDraft, onFile: changeFile, onSubmit: () => void publish(), person }}
featuredExperts={featuredExperts}
hasMore={!!nextCursor}
sentinelRef={sentinel}
listRef={list}