github happytodev/blogr v0.15.6

latest releases: v0.16.0, v0.15.12, v0.15.11...
pre-release3 months ago

What's Changed

  • Stats Counter Fix (Issue #167):

    • Fixed Alpine.js console errors on CMS pages with stats blocks
    • Replaced x-intersect directive (requires plugin) with native Intersection Observer API
    • No longer requires @alpinejs/intersect plugin installation
    • Counter animation works out-of-the-box without additional dependencies
  • Hero Block Button Fix (Issue #168):

    • Fixed Hero block button not appearing for non-external link types (Blog Home, Category, CMS Page)
    • Root Cause: LinkResolver::resolve() returned null when Laravel routes were unavailable (e.g., in FilamentPHP admin panel context)
    • Solution: Enhanced LinkResolver to construct URLs manually using configuration when route() helper fails
    • Improvements:
      • resolveBlogLink(): Builds URLs using blogr.route.prefix, blogr.route.homepage, and blogr.locales.* config
      • resolveCategoryLink(): Builds category URLs with proper locale and prefix handling
      • resolveCmsPageLink(): Builds CMS page URLs with support for homepage detection and prefix
    • Affected Link Types: All types now work consistently (External URL, Blog Home, Category, CMS Page)
    • Files Modified:
      • src/Helpers/LinkResolver.php: Added manual URL construction fallbacks for all link types
      • resources/views/components/blocks/hero.blade.php: Button displays when both cta_text and resolved URL are present
    • Tests Added: 7 comprehensive tests covering all link types and edge cases (including invalid references)
    • Impact: Hero block buttons now consistently visible in both frontend and FilamentPHP admin panel, improving user experience during content editing

Full Changelog: v0.15.5...v0.15.6

Don't miss a new blogr release

NewReleases is sending notifications on new releases.