[PR #1396] [MERGED] Trait-ify resources and add customizable options #1371

Closed
opened 2026-02-05 18:11:49 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1396
Author: @Boy132
Created: 5/22/2025
Status: Merged
Merged: 6/19/2025
Merged by: @Boy132

Base: mainHead: boy132/customizable-resources


📝 Commits (10+)

  • 618a69a allow to customize resource relations
  • 01cd499 allow to customize resource pages
  • 4a343f7 also add customization traits to server resources
  • 0d19867 extract conflict handling into trait
  • 2643c18 allow to customize resource table
  • 9689eef allow to customize resource form
  • a378bb1 Merge branch 'main' into boy132/customizable-resources
  • c030544 allow table & form customization on client area resources
  • bd32a78 add trait for navigation badge limit/ count
  • 3e45ca0 make phpstan happy

📊 Changes

74 files changed (+907 additions, -250 deletions)

View changed files

app/Enums/HeaderActionPosition.php (+9 -0)
app/Enums/HeaderWidgetPosition.php (+9 -0)
📝 app/Filament/Admin/Pages/Settings.php (+9 -2)
📝 app/Filament/Admin/Resources/ApiKeyResource.php (+14 -3)
📝 app/Filament/Admin/Resources/ApiKeyResource/Pages/CreateApiKey.php (+9 -1)
📝 app/Filament/Admin/Resources/ApiKeyResource/Pages/ListApiKeys.php (+9 -1)
📝 app/Filament/Admin/Resources/DatabaseHostResource.php (+24 -3)
📝 app/Filament/Admin/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php (+4 -0)
📝 app/Filament/Admin/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php (+9 -13)
📝 app/Filament/Admin/Resources/DatabaseHostResource/Pages/ListDatabaseHosts.php (+9 -1)
📝 app/Filament/Admin/Resources/DatabaseHostResource/Pages/ViewDatabaseHost.php (+9 -13)
📝 app/Filament/Admin/Resources/EggResource.php (+18 -1)
📝 app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php (+9 -1)
📝 app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php (+9 -9)
📝 app/Filament/Admin/Resources/EggResource/Pages/ListEggs.php (+9 -1)
📝 app/Filament/Admin/Resources/MountResource.php (+14 -3)
📝 app/Filament/Admin/Resources/MountResource/Pages/CreateMount.php (+9 -1)
📝 app/Filament/Admin/Resources/MountResource/Pages/EditMount.php (+9 -1)
📝 app/Filament/Admin/Resources/MountResource/Pages/ListMounts.php (+9 -1)
📝 app/Filament/Admin/Resources/MountResource/Pages/ViewMount.php (+9 -1)

...and 54 more files

📄 Description

Adds new traits to most of our resources to make it possible to customize pages, relations, tables, forms, header actions and header widgets. This can later be used by plugins to extend (and change) our default resources.

I also added a trait that handles the access when the server is in a conflict state and a trait for displaying a count/ limit on the navigation badge.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1396 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 6/19/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/customizable-resources` --- ### 📝 Commits (10+) - [`618a69a`](https://github.com/pelican-dev/panel/commit/618a69ad86af19b25c857140423af1ace066ddab) allow to customize resource relations - [`01cd499`](https://github.com/pelican-dev/panel/commit/01cd499d0910020594bc23bb7b64c3505dc1fa32) allow to customize resource pages - [`4a343f7`](https://github.com/pelican-dev/panel/commit/4a343f7bcc3d45e5c4f897981c40542cdbdd089e) also add customization traits to server resources - [`0d19867`](https://github.com/pelican-dev/panel/commit/0d19867921d3e6da9cff88de8c2be09f9bd8b7e1) extract conflict handling into trait - [`2643c18`](https://github.com/pelican-dev/panel/commit/2643c1844d4cdceb6123994bbbe954aafb66cca8) allow to customize resource table - [`9689eef`](https://github.com/pelican-dev/panel/commit/9689eef5e8b557de7f5af00fbb80a5bb0b585c26) allow to customize resource form - [`a378bb1`](https://github.com/pelican-dev/panel/commit/a378bb16c58d49f7afa9503c78f5ec91204e1006) Merge branch 'main' into boy132/customizable-resources - [`c030544`](https://github.com/pelican-dev/panel/commit/c0305448b5b158856a8435067d8d22f4c809a987) allow table & form customization on client area resources - [`bd32a78`](https://github.com/pelican-dev/panel/commit/bd32a785d96c84e4ae208ebbaa9170e5caac39e7) add trait for navigation badge limit/ count - [`3e45ca0`](https://github.com/pelican-dev/panel/commit/3e45ca0b106226c40a43a68029d313124880afbf) make phpstan happy ### 📊 Changes **74 files changed** (+907 additions, -250 deletions) <details> <summary>View changed files</summary> ➕ `app/Enums/HeaderActionPosition.php` (+9 -0) ➕ `app/Enums/HeaderWidgetPosition.php` (+9 -0) 📝 `app/Filament/Admin/Pages/Settings.php` (+9 -2) 📝 `app/Filament/Admin/Resources/ApiKeyResource.php` (+14 -3) 📝 `app/Filament/Admin/Resources/ApiKeyResource/Pages/CreateApiKey.php` (+9 -1) 📝 `app/Filament/Admin/Resources/ApiKeyResource/Pages/ListApiKeys.php` (+9 -1) 📝 `app/Filament/Admin/Resources/DatabaseHostResource.php` (+24 -3) 📝 `app/Filament/Admin/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php` (+4 -0) 📝 `app/Filament/Admin/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php` (+9 -13) 📝 `app/Filament/Admin/Resources/DatabaseHostResource/Pages/ListDatabaseHosts.php` (+9 -1) 📝 `app/Filament/Admin/Resources/DatabaseHostResource/Pages/ViewDatabaseHost.php` (+9 -13) 📝 `app/Filament/Admin/Resources/EggResource.php` (+18 -1) 📝 `app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php` (+9 -1) 📝 `app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php` (+9 -9) 📝 `app/Filament/Admin/Resources/EggResource/Pages/ListEggs.php` (+9 -1) 📝 `app/Filament/Admin/Resources/MountResource.php` (+14 -3) 📝 `app/Filament/Admin/Resources/MountResource/Pages/CreateMount.php` (+9 -1) 📝 `app/Filament/Admin/Resources/MountResource/Pages/EditMount.php` (+9 -1) 📝 `app/Filament/Admin/Resources/MountResource/Pages/ListMounts.php` (+9 -1) 📝 `app/Filament/Admin/Resources/MountResource/Pages/ViewMount.php` (+9 -1) _...and 54 more files_ </details> ### 📄 Description Adds new traits to most of our resources to make it possible to customize pages, relations, tables, forms, header actions and header widgets. This can later be used by plugins to extend (and change) our default resources. I also added a trait that handles the access when the server is in a conflict state and a trait for displaying a count/ limit on the navigation badge. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 18:11:49 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#1371