mirror of
https://github.com/dergigi/boris.git
synced 2026-01-18 06:14:27 +01:00
debug: remove console logging for kind:1 hydration
- Removed 📝, 💧, 🎨 and 📊 debug logs - These were added for troubleshooting but are no longer needed - Kind:1 content hydration and rendering is working correctly
This commit is contained in:
@@ -145,19 +145,6 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
|
||||
.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)
|
||||
|
||||
|
||||
@@ -30,18 +30,9 @@ export const CompactView: React.FC<CompactViewProps> = ({
|
||||
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)
|
||||
const displayText = isArticle && articleSummary ? articleSummary : bookmark.content
|
||||
|
||||
// Calculate progress color
|
||||
let progressColor = '#6366f1' // Default blue (reading)
|
||||
if (readingProgress && readingProgress >= 0.95) {
|
||||
progressColor = '#10b981' // Green (completed)
|
||||
@@ -59,11 +50,6 @@ export const CompactView: React.FC<CompactViewProps> = ({
|
||||
}
|
||||
}
|
||||
|
||||
// For articles, prefer summary; for others, use content
|
||||
const displayText = isArticle && articleSummary
|
||||
? articleSummary
|
||||
: bookmark.content
|
||||
|
||||
return (
|
||||
<div key={`${bookmark.id}-${index}`} className={`individual-bookmark compact ${bookmark.isPrivate ? 'private-bookmark' : ''}`}>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user