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

in HiveDevs9 days ago

▶️ Watch on 3Speak


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

▶️ 3Speak

Sort:  

Great to see the project evolve day after day. Impressive!

Thank you so much @hivepulse.app
Try the app & feel free to share feedback if you have any.

via Apps from

Excellent, my friend, always giving your best. Very good, I'm using HiveSuite and so far it's great, and the support is fantastic. Thank you for that.

via Apps from

@new-orden thank you so much
I keep it up.
Please give the best support in return you can.
Keep using app, upvote our content, follow our curation trail if you can, vote for witness if you can.
Just asking. No pressure.

via Apps from

Always giving the best updates an excellent job for Hive

via Apps from

@yusmelys thank you 🙏
We keep working

via Apps from

Excellent technical update; the improvements to image loading, growth analytics, and the poll voting system will make the user experience much smoother and more complete

Update: @sagarkothari88, I paid out 3.057 HIVE and 0.000 HBD to reward 1 comments in this discussion thread.