feat(mobile): add post creation and comments

Post creation: gallery/camera picker (expo-image-picker) uploads each
image straight to Supabase Storage via a presigned PUT
(posts.getPresignedUrl + expo-file-system), then posts.create with the
resulting storage keys — reachable via a new "+" header button on the
Feed tab. No client-side blurhash (browser Canvas API, no RN
equivalent) or AI-disclosure/mention support yet, matching the rest of
mobile's plain-text captions.

Comments: a dedicated screen (posts/[postId]/comments) for reading,
posting, and deleting one's own comments, reachable by tapping the
comment icon on a PostCard. Ported from web's PostDetailDialog comment
panel, scoped down to just that panel since mobile's image full-view
already has its own route.
This commit is contained in:
admin committed 2026-09-05 15:35:32 +02:00
1 parent c1067b3245
commit 085d2abb53
10 files changed
+543 -15

No files matched your search

+2 -2
View File
@@ -92,10 +92,10 @@ export function PostCard({ post, actingPetId }: Props) {
<View style={styles.actions}>
<PawButton postId={post.id} petId={actingPetId} initialCount={post.reactionCount ?? 0} />
<View style={styles.actionGroup}>
<Pressable style={styles.actionGroup} onPress={() => router.push(`/posts/${post.id}/comments`)}>
<MessageCircle size={18} color={colors.quietGray} />
<Text style={styles.actionCount}>{post.commentCount ?? 0}</Text>
</View>
</Pressable>
<View style={styles.actionGroup}>
<Repeat2 size={18} color={colors.quietGray} />
<Text style={styles.actionCount}>{post.repostCount ?? 0}</Text>