From 7713ea0a3c7a4e2dc35bc4ced7810cee04ed2cb0 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 7 Jan 2026 18:37:06 +0100 Subject: [PATCH] Add Instagram metadata display to EntryPage --- client/src/pages/EntryPage.tsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index eb98fa5..9d101a4 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -38,6 +38,9 @@ export default function EntryPage() { const counts = entry.counts || { grammar: 0, vocab: 0, key_phrases: 0, conversation: 0, quiz: 0 }; const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; + const ig = entry.ig_meta; + const profileUrl = ig?.profile_url || (ig?.username ? `https://www.instagram.com/${ig.username}/` : undefined); + const postDate = ig?.post_date ? new Date(ig.post_date).toLocaleString() : undefined; return (
@@ -63,6 +66,31 @@ export default function EntryPage() {
+ {ig && ( +
+ {ig.profile_pic_url ? ( + + {ig.username + + ) : ( +
+ )} +
+
+ {ig.username ? ( + + {ig.username} + + ) : ( + Instagram + )} + {ig.full_name && ยท {ig.full_name}} +
+
{postDate || ig.post_date || 'Date unknown'}
+ {ig.description &&

{ig.description}

} +
+
+ )}