From e08ce0e477e70fb8c11174f7800931a8a80e1634 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 21 Oct 2025 23:55:10 +0200 Subject: [PATCH] debug: add BookmarkList logging to track kind:1 filtering - Log how many kind:1 bookmarks make it past the hasContent filter - Show sample content to verify hydration is reaching the list - Help identify where bookmarks are being filtered out --- src/components/BookmarkList.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/BookmarkList.tsx b/src/components/BookmarkList.tsx index b4bdff72..3a8bb1d7 100644 --- a/src/components/BookmarkList.tsx +++ b/src/components/BookmarkList.tsx @@ -145,6 +145,19 @@ export const BookmarkList: React.FC = ({ .filter(hasContent) .filter(b => !settings?.hideBookmarksWithoutCreationDate || hasCreationDate(b)) + // Debug: log kind:1 events in allIndividualBookmarks + const kind1Bookmarks = allIndividualBookmarks.filter(b => b.kind === 1) + if (kind1Bookmarks.length > 0) { + console.log('📊 BookmarkList kind:1 events after filtering:', { + total: kind1Bookmarks.length, + samples: kind1Bookmarks.slice(0, 3).map(b => ({ + id: b.id.slice(0, 8), + content: b.content?.slice(0, 30), + hasUrls: extractUrlsFromContent(b.content).length > 0 + })) + }) + } + // Apply filter const filteredBookmarks = filterBookmarksByType(allIndividualBookmarks, selectedFilter)