hSnaps App
Image Lightbox Fix: Reliable Fallback Handling
fix(lightbox): fallback to raw URL when hive proxy fails on full-size images.
Implemented fallback chain:
Proxied URL → Raw URL → Error placeholder
Ensures consistency with ImageThumbnail behavior.
Displays “Image unavailable” placeholder:
Prevents empty modal when both sources fail.
Fixed React hooks issue:
Resolved rules-of-hooks violation caused by useEffect being called after early return.
Root issue addressed:
images.hive.blog/0x0/ returning 4xx errors for files hosted on files.peakd.com
Result:
Image previews now load reliably when opened from feed.
Image Lightbox Fix
Video Lightbox Fix
HiveReactKit
Profile Enhancement: Growth Analytics Tab
feat(profile): add Growth analytics tab with rendering and tab fixes.
Introduced Growth Analytics tab:
HP trends
Rewards breakdown
Key performance indicators
Charts (7-day / 30-day views)
Implemented getGrowthAnalytics:
Backward paging
Streaming updates
Accurate HP reconstruction
Fixed UI issues:
Default tab flicker
Invalid tab restoration logic
Performance improvements:
200-page cap on analytics fetch
Reduced delay for faster loading
Exported:
Growth components
Types for reuse in external applications
Growth Analytics Dashboard
HP Trends Chart (7d/30d)
Poll System Enhancement: Inline Voting with Unified Flow
feat(polls): inline poll voting with unified submit flow.
Added reusable PollListItem component:
Introduced onVotePoll callback:
Supports cancel via false
Simplified poll rendering:
Removed ~100 lines of legacy code
Unified voting experience:
Single-choice → Radio buttons + Submit
Multi-choice → Checkboxes + Submit
Vote change uses same flow
UX improvements:
Previous votes remain visible
Submit button disabled when:
Invalid selection
Loading state
Exported:
PollListItem component
Related types for reuse
Documentation and demo updated accordingly.
Inline Poll Voting UI
Powering the Hive Ecosystem
Continuously improving Hive applications with a focus on stability, performance, and scalability
Contributing to open-source development and building reusable solutions for the community
Working towards a stronger, more accessible, and feature-rich Hive ecosystem
Final Note
This post has been refined with the help of AI to improve readability and structure
The original content and optimised version are both available for reference
More Links
▶️ 3Speak