mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #1396] [MERGED] Trait-ify resources and add customizable options #1371
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:boy132/customizable-resources📝 Commits (10+)
618a69aallow to customize resource relations01cd499allow to customize resource pages4a343f7also add customization traits to server resources0d19867extract conflict handling into trait2643c18allow to customize resource table9689eefallow to customize resource forma378bb1Merge branch 'main' into boy132/customizable-resourcesc030544allow table & form customization on client area resourcesbd32a78add trait for navigation badge limit/ count3e45ca0make 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.