Sagar Kothari avatar

Daily Development Update: hSnaps Image Fixes and HiveReactKit Analytics & Poll Enhancements

sagarkothari88

Published: 13 May 2026 › Updated: 13 May 2026Daily Development Update: hSnaps Image Fixes and HiveReactKit Analytics & Poll Enhancements

Daily Development Update: hSnaps Image Fixes and HiveReactKit Analytics & Poll Enhancements


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
Image Lightbox Fix

Video 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
Growth Analytics Dashboard

HP Trends Chart (7d/30d)
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:
    • Inline poll voting UI
  • 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
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
HiveSuite AppVote as WitnessSupport via Discord

▶️ 3Speak

Leave Daily Development Update: hSnaps Image Fixes and HiveReactKit Analytics & Poll Enhancements to:

Written by

App Developer on Hive - Distriator, Check in With XYZ, 3Speak, HiveSuite.app.

Read more #hive posts


Best Posts From Sagar Kothari

We have not curated any of sagarkothari88's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Sagar Kothari