mirror of
https://github.com/dergigi/boris.git
synced 2026-01-23 16:54:33 +01:00
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
This commit is contained in:
@@ -30,6 +30,17 @@ 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)
|
||||
let progressColor = '#6366f1' // Default blue (reading)
|
||||
if (readingProgress && readingProgress >= 0.95) {
|
||||
|
||||
Reference in New Issue
Block a user