From bcfc04c35c7c4d00f669184f2af661e337befa38 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 30 Oct 2025 23:54:07 +0100 Subject: [PATCH] debug: add logging to investigate tooltip showing all relays - Add debug log to see what highlight data is available when rendering - Check if publishedRelays or seenOnRelays are being used - This will help identify why tooltip shows all relays instead of just published ones --- src/components/HighlightItem.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 0b07bab4..ef905295 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -310,6 +310,18 @@ export const HighlightItem: React.FC = ({ const isLocalOnly = highlight.isLocalOnly const publishedRelays = highlight.publishedRelays || [] + // Debug: Log what we're working with (remove after fixing) + if (highlight.id && (isLocalOnly !== undefined || publishedRelays.length > 0)) { + console.log('🔍 [HIGHLIGHT-UI-DEBUG] Highlight data:', { + highlightId: highlight.id, + isLocalOnly, + publishedRelays, + seenOnRelays: highlight.seenOnRelays, + willUsePublishedRelays: !!(highlight.publishedRelays && highlight.publishedRelays.length > 0), + willUseSeenOnRelays: !!(highlight.seenOnRelays && highlight.seenOnRelays.length > 0) + }) + } + // Show highlighter icon with relay info if available if (highlight.publishedRelays && highlight.publishedRelays.length > 0) { const relayNames = highlight.publishedRelays.map(url =>