Skip to content

Featute/basic panel hub#216

Merged
danielhe4rt merged 8 commits into
he4rt:4.xfrom
YuriSouzaDev:featute/basic-panel-hub
May 9, 2026
Merged

Featute/basic panel hub#216
danielhe4rt merged 8 commits into
he4rt:4.xfrom
YuriSouzaDev:featute/basic-panel-hub

Conversation

@YuriSouzaDev
Copy link
Copy Markdown
Contributor

@YuriSouzaDev YuriSouzaDev commented May 8, 2026

Summary

  • Adiciona o modulo panel-hub com service provider, pagina inicial e view do dashboard.
  • Registra o novo painel do hub no Filament e nos providers do bootstrap.
  • Inclui o pacote he4rt/panel-hub nas dependencias do projeto.

Changes

  • app-modules/panel-hub/ com composer, provider, dashboard e view.
  • app/Providers/Filament/HubPanelProvider.php com configuracao do painel.
  • bootstrap/providers.php com o provider do hub.
  • composer.json e composer.lock atualizados para incluir o modulo.

Notes

  • O dashboard do hub usa a view panel-hub::dashboard em app-modules/panel-hub/resources/views/dashboard.blade.php.
  • Acesso: use o mesmo usuario do admin por enquanto e entre em /hub.

Description

Adds a new panel-hub module and registers a Filament "hub" panel. Implements a package service provider, dashboard page and Blade view, registers the panel provider in bootstrap, and adds the he4rt/panel-hub dependency to enable a dedicated hub dashboard at /hub for admin users.

References

Dependencies & Requirements

  • New Composer dependency: he4rt/panel-hub (>=1)
  • Module requirements (from app-modules/panel-hub/composer.json): php ^8.4, filament/filament ^5.6, illuminate/support ^13.0
  • New Filament panel ID/route: hub → /hub
  • Dashboard view: panel-hub::dashboard → app-modules/panel-hub/resources/views/dashboard.blade.php
  • Theme asset referenced: resources/css/filament/hub/theme.css
  • Auth middleware: Filament\Http\Middleware\Authenticate

Contributor Summary

Contributor Lines Added Lines Removed Files Changed
YuriSouzaDev 153 0 9

Changes Summary

File Path Change Description
app-modules/panel-hub/.gitignore Ignore vendor/ and composer.lock for module
app-modules/panel-hub/composer.json New package metadata, PSR-4 autoload, package requirements, provider registration
app-modules/panel-hub/config/panel-admin.php Added empty panel config file
app-modules/panel-hub/resources/views/dashboard.blade.php Blade view for hub dashboard (panel-hub::dashboard)
app-modules/panel-hub/src/Pages/Dashboard.php Filament Dashboard page class using custom view and icon
app-modules/panel-hub/src/PanelHubServiceProvider.php Registers views/translations and configures Filament page auto-discovery for hub panel
app/Providers/Filament/HubPanelProvider.php New Filament PanelProvider configuring hub panel (path, auth, theme, middleware)
bootstrap/providers.php Registered HubPanelProvider in application providers list
composer.json Added he4rt/panel-hub dependency

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 49485dcc-192f-4405-b2c5-18cfd4de12a4

📥 Commits

Reviewing files that changed from the base of the PR and between e0771ca and 37ce760.

📒 Files selected for processing (1)
  • app-modules/panel-hub/composer.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • app-modules/panel-hub/composer.json

📝 Walkthrough

Walkthrough

This pull request adds a new he4rt/panel-hub package and integrates it as a Filament hub panel. Changes include the package composer manifest (PSR-4 autoload, requirements, provider), package config and gitignore, a Dashboard page class and Blade view, a PanelHubServiceProvider that enables page auto-discovery for the hub panel and registers views/translations, an application HubPanelProvider that configures the /hub panel and middleware, registration of that provider in bootstrap/providers.php, and adding he4rt/panel-hub to the project composer require.

Possibly related PRs

  • he4rt/heartdevs.com#204: Modifies Filament panel provider registrations; both PRs touch bootstrap/providers.php and panel provider configuration.

Suggested reviewers

  • Clintonrocha98
  • gvieira18
  • Luisnadachi
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Featute/basic panel hub' contains a typo ('Featute' instead of 'Feature') and is somewhat vague; it does relate to the main change (adding a basic panel hub module) but the typo and generic phrasing reduce clarity. Correct the typo to 'Feature/basic panel hub' and consider a more specific title like 'Add basic Filament panel hub module with dashboard' to better communicate the primary change.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
composer.json (1)

31-31: ⚡ Quick win

Use a bounded constraint for he4rt/panel-hub

At line 31, ">=1" permits unintended major version upgrades. Use ^1.0 or an explicit range to keep upgrades intentional and predictable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@composer.json` at line 31, The dependency constraint for he4rt/panel-hub
currently uses the unbounded string ">=1"; change that to a bounded constraint
such as "^1.0" (or an explicit range like ">=1.0 <2.0") in composer.json to
prevent unintended major upgrades, then run composer validate (and composer
update if you need to refresh the lockfile).
app/Providers/Filament/HubPanelProvider.php (1)

35-35: ⚡ Quick win

viteTheme borrows the admin panel's CSS asset.

The hub panel references resources/css/filament/admin/theme.css — the admin panel's compiled stylesheet. Any rename, deletion, or admin-specific customisation of that file silently breaks the hub panel's theme. Consider either sharing a common base theme path (e.g. resources/css/filament/theme.css) or providing a dedicated hub theme entry-point.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/Providers/Filament/HubPanelProvider.php` at line 35, HubPanelProvider
currently borrows the admin panel stylesheet via
->viteTheme('resources/css/filament/admin/theme.css'), which couples hub styling
to the admin asset; update the call in HubPanelProvider to point to a dedicated
or shared base theme (for example
->viteTheme('resources/css/filament/theme.css') or
->viteTheme('resources/css/filament/hub/theme.css')), add the corresponding new
entrypoint stylesheet (and adjust Vite/build config if needed) so the hub has
its own predictable asset path, and remove the dependency on the admin-specific
file name.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app-modules/panel-hub/composer.json`:
- Line 7: composer.json currently has an empty "require" which fails to declare
runtime packages used by this module (it references Laravel's ServiceProvider
and Filament types like Panel and Pages\Dashboard); update the composer.json
"require" section to include the appropriate package names and sensible semver
constraints for Laravel and Filament (e.g., the laravel framework package that
provides ServiceProvider and the filament package that provides Panel and
Pages\Dashboard), then run composer update/install to lock and verify
dependencies so the classes resolve outside the monorepo.

---

Nitpick comments:
In `@app/Providers/Filament/HubPanelProvider.php`:
- Line 35: HubPanelProvider currently borrows the admin panel stylesheet via
->viteTheme('resources/css/filament/admin/theme.css'), which couples hub styling
to the admin asset; update the call in HubPanelProvider to point to a dedicated
or shared base theme (for example
->viteTheme('resources/css/filament/theme.css') or
->viteTheme('resources/css/filament/hub/theme.css')), add the corresponding new
entrypoint stylesheet (and adjust Vite/build config if needed) so the hub has
its own predictable asset path, and remove the dependency on the admin-specific
file name.

In `@composer.json`:
- Line 31: The dependency constraint for he4rt/panel-hub currently uses the
unbounded string ">=1"; change that to a bounded constraint such as "^1.0" (or
an explicit range like ">=1.0 <2.0") in composer.json to prevent unintended
major upgrades, then run composer validate (and composer update if you need to
refresh the lockfile).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 9dd2d8a4-f8e3-4687-af63-88a03ed1bc1e

📥 Commits

Reviewing files that changed from the base of the PR and between 28212f0 and e0771ca.

⛔ Files ignored due to path filters (1)
  • composer.lock is excluded by !**/*.lock
📒 Files selected for processing (9)
  • app-modules/panel-hub/.gitignore
  • app-modules/panel-hub/composer.json
  • app-modules/panel-hub/config/panel-admin.php
  • app-modules/panel-hub/resources/views/dashboard.blade.php
  • app-modules/panel-hub/src/Pages/Dashboard.php
  • app-modules/panel-hub/src/PanelHubServiceProvider.php
  • app/Providers/Filament/HubPanelProvider.php
  • bootstrap/providers.php
  • composer.json

Comment thread app-modules/panel-hub/composer.json Outdated
@danielhe4rt danielhe4rt merged commit de5b430 into he4rt:4.x May 9, 2026
6 checks passed
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.

6 participants