Test and Bug Fix

Oak logo
Yorkshire Wheel of the Year YORKSHIRE WHEEL OF THE YEAR Based on Celtic seasonal festivals Current: OSTARA Yule YULE Imbolc IMBOLC Ostara OSTARA Beltane BELTANE Litha LITHA Lughnasadh LUGHNASADH Mabon MABON Samhain SAMHAIN

๐Ÿงช Live Comments System Test

๐Ÿ’ฌ Comments with User Info (15 items)

  • Ricardo ID: 29
    Testing the save with nickname
    ๐Ÿ•’ 10/21/2025, 2:45:54 PM
    ๐Ÿ‘ค User ID: 6
  • Dev team ID: 28
    Testing the save
    ๐Ÿ•’ 10/21/2025, 2:38:57 PM
    ๐Ÿ‘ค User ID: 1
  • Dev team ID: 14
    This was an AI driven project ๐Ÿ˜€
    ๐Ÿ•’ 8/12/2025, 2:22:17 PM
    ๐Ÿ‘ค User ID: 1
  • Dev team ID: 13
    This was an AI driven project ๐Ÿ˜€
    ๐Ÿ•’ 8/12/2025, 2:22:16 PM
    ๐Ÿ‘ค User ID: 1
  • Dev team ID: 12
    Confusing this when we have a static image of the dialog above and I tried to enter into it. Bah
    ๐Ÿ•’ 8/11/2025, 7:45:34 PM
    ๐Ÿ‘ค User ID: 1

๐Ÿš€ Production Example: Filtered Comments

This shows how to use the LiveComments component in a real blog post:

For blog post: "amoc-the-nexus"

๐Ÿ’ฌ Comments (1)

Top Post, keep up the good work

For blog post: "ice-cores"

๐Ÿ’ฌ Comments (2)

๐Ÿ”ง Debug Information
๐Ÿ” Loading comments for: ice-cores
โœ… Loaded 2 comments for ice-cores
๐Ÿ“ Sample: "Sample comment..."

Sample comment

๐Ÿ“ Post: ice-cores | ๐Ÿท๏ธ Type: blog | ๐Ÿ†” ID: 2

Sample after trigger

๐Ÿ“ Post: ice-cores | ๐Ÿท๏ธ Type: blog | ๐Ÿ†” ID: 3

๐Ÿ“ Usage in your blog post pages:

---
// In your blog post page (e.g., src/pages/blog/[...slug].astro)
import LiveComments from "@components/LiveComments.astro";

const { slug } = Astro.params;
---

<article>
  <!-- Your blog content here -->
  <h1>My Blog Post</h1>
  <p>Content...</p>
  
  <!-- Comments section -->
  <LiveComments 
    postSlug={slug} 
    postType="blog" 
    maxComments={10}
    showDebug={false}
  />
</article>

๐Ÿš€ Production Component Demo

This shows how the PostComments component works in a real blog post scenario:

๐Ÿ“„ Blog Post: "AMOC The Nexus"

๐Ÿ’ฌ Comments

0 comments

๐Ÿ’ญ No comments yet. Be the first to share your thoughts!

๐Ÿ“„ Blog Post: "Ice Cores"

๐Ÿ’ฌ Comments

0 comments

๐Ÿ’ญ No comments yet. Be the first to share your thoughts!

๐Ÿ—๏ธ Architecture Note:

Both components above use the same live collection containing ALL comments, but each filters and displays only the comments for its specific post. This ensures:

  • The live collection grows as new comments are added anywhere
  • Navigation between posts is instant (no new database queries)
  • Real-time updates work across all posts
  • Efficient use of memory and database connections

My posts

Wolf
Wolf
Tree-lined path
Ancient cave artEarth climate visualizationTree-lined path