Commit Graph

12 Commits

Author SHA1 Message Date
Arthur Parienté
13a2249b0c
feat(modules): give each module its own Filament panel with a switcher
Modules previously had their Filament resources injected into the main
admin panel and surfaced legacy addAdminLink() items as sidebar nav.
Invert this: each module owns a dedicated Filament panel and a navbar
panel switcher moves between the main panel and module panels.

- Add App\Contracts\Modules\PanelProvider: an abstract base that
  pre-configures id (= module key), path (admin/{key}), middleware,
  auth, branding, the shared admin theme/sidebar (viteTheme +
  sidebarWidth 14.5rem for visual consistency), a Dashboard page, the
  shared plugins, and discovery of the module's own
  Filament/{Resources,Pages,Widgets}. Modules register it via their
  providers list and override only moduleKey().
- Add PanelSwitcherPlugin: a topbar-left dropdown listing the main
  panel plus every module panel the user can access, on every panel.
- Stop injecting module components into the core admin/system panels:
  remove FilamentPanelExtender, its beforeResolving('filament') hook,
  probeFilament(), and the boot-cache filament field (schema bump).
- Remove the legacy link APIs (addAdminLink/addFrontendLink/
  registerLinks) and their blade/view consumers.
- Gate module panels via access:{module-key} in canAccessPanel(),
  with the view:modules fallback.
- Migrate the Sample module to ship its own panel provider and drop
  its old admin controller/route.
2026-06-17 22:41:34 +02:00
Nabeel Shahzad
d9a24e6f9d
Add Sample module back 2025-01-12 15:41:18 -06:00
Nabeel S
7e742518bc
Module/plugin installation working #593 (#594)
* Remove the Sample module

* 593-Fix-Modules-From-Composer

* Fix pre/post install scripts in composer #593

* Formatting
2020-02-28 16:06:45 -05:00
Nabeel Shahzad
7dd6a7e7f3 Awards base class and scaffolding #155 2018-03-16 23:59:53 -05:00
Nabeel Shahzad
bcc6be0d29 Updates for addon/modules to make it easier to create APIs 2018-02-08 19:11:53 -06:00
Nabeel Shahzad
c58b8fb787 re-add Sample module 2017-12-05 21:51:15 -06:00
Nabeel Shahzad
6179cffc45 swap the modules 2017-12-05 21:17:16 -06:00
Nabeel Shahzad
e888b90024 add vacentral plugin scaffolding 2017-12-05 20:30:13 -06:00
Nabeel Shahzad
c530be74d0 fix on install for module 2017-12-02 09:34:35 -06:00
Nabeel Shahzad
61fbc7fea3 fix composer stub 2017-12-02 09:30:31 -06:00
Nabeel Shahzad
df2b092d60 sample event listener and scaffolding for a module 2017-12-02 09:19:58 -06:00
Nabeel Shahzad
21c7fa4dc6 Sample module 2017-12-01 14:38:30 -06:00