From 2791c69ebe0d452c0153b6d1ac485aef80a7651b Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 21 Oct 2025 23:54:15 +0200 Subject: [PATCH] debug: add logging to CompactView to diagnose missing content rendering - Log when kind:1 without URLs is being rendered - Check if bookmark.content is actually present at render time - Help diagnose why text isn't displaying even though it's hydrated --- src/components/BookmarkViews/CompactView.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/BookmarkViews/CompactView.tsx b/src/components/BookmarkViews/CompactView.tsx index 6be3d76f..e7f7fad1 100644 --- a/src/components/BookmarkViews/CompactView.tsx +++ b/src/components/BookmarkViews/CompactView.tsx @@ -30,6 +30,17 @@ export const CompactView: React.FC = ({ const isWebBookmark = bookmark.kind === 39701 const isClickable = hasUrls || isArticle || isWebBookmark + // Debug logging for kind:1 without URLs + if (bookmark.kind === 1 && !hasUrls) { + console.log('🎨 CompactView rendering kind:1 without URLs:', { + id: bookmark.id.slice(0, 8), + content: bookmark.content?.slice(0, 50), + contentLength: bookmark.content?.length, + hasUrls, + displayText: (isArticle && articleSummary ? articleSummary : bookmark.content)?.slice(0, 50) + }) + } + // Calculate progress color (matching BlogPostCard logic) let progressColor = '#6366f1' // Default blue (reading) if (readingProgress && readingProgress >= 0.95) {