From f154f1b2f66bb61e915fb12be65bc042636206fd Mon Sep 17 00:00:00 2001
From: Michele
Date: Mon, 9 Mar 2026 08:16:55 +0100
Subject: [PATCH] feat(04-02): thumbnail PostCard e hint Unsplash in
OutputReview
- PostCard: thumbnail 80x56px della cover image quando keyword e' URL
- Rilevamento con startsWith('http')
- object-cover, loading=lazy, onError nasconde se URL non valido
- Posizionato dopo cover_title e prima dei metadati secondari
- OutputReview: hint discreto Unsplash sotto il box info edit inline
- Visibile solo se unsplash_api_key_configured === false
- Link a /impostazioni con stile amber discreto
- Scompare automaticamente dopo configurazione Unsplash
- Usa Link da react-router-dom (pattern codebase)
---
frontend/src/components/PostCard.tsx | 13 +++++++++++++
frontend/src/pages/OutputReview.tsx | 19 +++++++++++++++++--
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/frontend/src/components/PostCard.tsx b/frontend/src/components/PostCard.tsx
index 60f3396..849deab 100644
--- a/frontend/src/components/PostCard.tsx
+++ b/frontend/src/components/PostCard.tsx
@@ -181,6 +181,19 @@ export function PostCard({
{post.cover_title}
+ {/* Thumbnail cover image (solo se keyword e' un URL reale) */}
+ {post.cover_image_keyword.startsWith('http') && (
+