Skip to content

feat(blog): integrate Filament blog with public pages#811

Open
vcnainala wants to merge 5 commits into
developmentfrom
feat/blog
Open

feat(blog): integrate Filament blog with public pages#811
vcnainala wants to merge 5 commits into
developmentfrom
feat/blog

Conversation

@vcnainala

Copy link
Copy Markdown
Member

Summary

  • Add stephenjude/filament-blog (Filament 4 compatible v5 package line) with RichEditor, migrations for blog_posts / blog_authors / blog_categories, and a BlogSeeder for sample content
  • Register dashboard Filament resources that extend the package resources and gate CRUD to super_admin, admin, and dev roles at request time (avoids BlogPlugin boot-time auth that prevented navigation from appearing)
  • Add public /blog listing and /blog/{slug} detail pages via Livewire on the guest layout, plus header navigation and SEO metadata support
  • Migrate config/filament-shield.php to the Filament Shield 4.2 format so role editing works again; blog resources are excluded from Shield because they use separate role gates

Test plan

  • Run php artisan migrate and optionally php artisan db:seed --class=BlogSeeder
  • Log into /dashboard as super_admin / admin / dev and confirm Blog group (Posts, Categories, Authors) appears
  • Log in as a user without those roles and confirm blog admin items are hidden
  • Create/publish a post with banner and RichEditor content
  • Visit /blog and /blog/{slug} and verify listing, prose rendering, and meta tags
  • Open /control-panel/shield/roles/{id}/edit and confirm the permissions form loads without error

vcnainala added 4 commits June 7, 2026 21:07
Update the published shield config to the structure required by Shield
4.2 so role editing works again, and exclude dashboard blog resources
that are authorized separately from role permissions.
Add stephenjude/filament-blog with RichEditor configuration, blog
tables migration, and a seeder for initial author, category, and post.
Extend filament-blog resources on the dashboard panel and gate CRUD
access to super_admin, admin, and dev roles at request time.
Expose /blog listing and post detail pages via Livewire on the guest
layout, with SEO metadata support and a header navigation link.
@codecov-commenter

codecov-commenter commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 6.10%. Comparing base (4223a58) to head (111c70d).

Files with missing lines Patch % Lines
app/Livewire/Blog/Show.php 0.00% 18 Missing ⚠️
app/Livewire/Blog/Index.php 0.00% 13 Missing ⚠️
...sources/Blog/Concerns/AuthorizesBlogManagement.php 0.00% 10 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             development    #811      +/-   ##
================================================
- Coverage           6.13%   6.10%   -0.03%     
- Complexity          1737    1749      +12     
================================================
  Files                227     230       +3     
  Lines               8961    9002      +41     
================================================
  Hits                 550     550              
- Misses              8411    8452      +41     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Initialize the post property and read banner_url via getAttribute so
Level 5 analysis passes for the third-party Post model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants