This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Enhance Debug Logging and Update Header Styles

- Added debug logging for records from 2025 and monthly counts to assist in tracking data processing.
- Changed header elements from <h3> to <h2> for improved semantic structure and visibility in the Profile Page.
- Increased font size and margin for header styles in CSS to enhance readability.

+18 -6
+12
src/app/api/bluesky/stats/route.ts
··· 238 238 return year >= 2025; 239 239 }); 240 240 241 + console.log(`Filtered records for 2025+: ${data2025Plus?.length || 0}`); 242 + if (data2025Plus && data2025Plus.length > 0) { 243 + console.log(`First 2025+ record: ${JSON.stringify(data2025Plus[0])}`); 244 + console.log(`Last 2025+ record: ${JSON.stringify(data2025Plus[data2025Plus.length - 1])}`); 245 + } 246 + 241 247 // Initialize all months from Jan 2025 to current month (or Dec 2025 if in future years) 242 248 const now = new Date(); 243 249 const currentYear = now.getFullYear(); ··· 264 270 const date = new Date(entry.created_at); 265 271 const monthKey = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}`; 266 272 273 + // Debug logging for first few entries 274 + if (monthlyCounts.get(monthKey) === 0) { 275 + console.log(`First entry for ${monthKey}: ${entry.created_at}`); 276 + } 277 + 267 278 if (monthlyCounts.has(monthKey)) { 268 279 monthlyCounts.set(monthKey, (monthlyCounts.get(monthKey) || 0) + 1); 269 280 } else { ··· 272 283 }); 273 284 } 274 285 286 + console.log(`Monthly counts map:`, Object.fromEntries(monthlyCounts)); 275 287 // Convert to array sorted by date 276 288 const chartData = Array.from(monthlyCounts.entries()) 277 289 .map(([date, count]): {date: string, count: number} => ({ date, count }))
+2 -2
src/app/profile/[handle]/page.tsx
··· 478 478 479 479 {!loading && !error && ( 480 480 <section className={styles.statsSection}> 481 - <h3 className={styles.statsHeader}>Flushing Statistics</h3> 481 + <h2 className={styles.statsHeader}>Flushing Statistics</h2> 482 482 <p className={styles.statDetails}> 483 483 {totalCount} total {totalCount === 1 ? 'flush' : 'flushes'} 484 484 {flushesPerDay > 0 && `, averaging ${flushesPerDay} ${flushesPerDay === 1 ? 'flush' : 'flushes'} per active day`} ··· 557 557 {/* Flushes Roll Up 2025 Section */} 558 558 {!loading && !error && wrapped2025Data && ( 559 559 <section className={styles.wrappedSection}> 560 - <h3 className={styles.wrappedHeader}>Flushes Roll Up 2025</h3> 560 + <h2 className={styles.wrappedHeader}>Flushes Roll Up 2025</h2> 561 561 <p className={styles.wrappedSubtitle}>The past year on the decentralized toilet</p> 562 562 563 563 <div className={styles.wrappedGrid}>
+4 -4
src/app/profile/[handle]/profile.module.css
··· 100 100 } 101 101 102 102 .statsHeader { 103 - font-size: 1.2rem; 103 + font-size: 1.5rem; 104 104 font-weight: 500; 105 - margin: 0 0 1rem 0; 105 + margin: 0 0 1.5rem 0; 106 106 color: var(--title-color); 107 107 } 108 108 ··· 543 543 } 544 544 545 545 .wrappedHeader { 546 - font-size: 1.2rem; 546 + font-size: 1.5rem; 547 547 font-weight: 500; 548 - margin: 0 0 1rem 0; 548 + margin: 0 0 1.5rem 0; 549 549 color: var(--title-color); 550 550 text-align: left; 551 551 }