[PR #1906] [MERGED] Add server icons #1649

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

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1906
Author: @notAreYouScared
Created: 11/16/2025
Status: Merged
Merged: 11/22/2025
Merged by: @notAreYouScared

Base: mainHead: charles/server-icons


📝 Commits (10+)

  • 6cf4860 Add server icons
  • 93a072b update return type
  • 8600d5f Remove cast
  • 8f9e9bc switch to longtext
  • 56ab608 Merge remote-tracking branch 'origin/main' into charles/server-icons
  • 273b819 set server tenant to icon->image->null
  • fcd501a fix 500, reduce max size to 256KB
  • 0893941 Make rabbit happy
  • 2a25491 PHPStan + Rabbit changes
  • 1a398b0 Nullsafe cleanup

📊 Changes

9 files changed (+597 additions, -176 deletions)

View changed files

📝 app/Filament/Admin/Resources/Servers/Pages/EditServer.php (+253 -74)
📝 app/Filament/App/Resources/Servers/Pages/ListServers.php (+5 -0)
📝 app/Filament/Server/Pages/Settings.php (+202 -36)
📝 app/Livewire/ServerEntry.php (+14 -57)
📝 app/Models/Server.php (+11 -2)
database/migrations/2025_11_16_000000_add_icon_to_servers.php (+28 -0)
📝 lang/en/server/setting.php (+6 -0)
resources/views/livewire/server-entry-placeholder.blade.php (+69 -0)
📝 resources/views/livewire/server-entry.blade.php (+9 -7)

📄 Description

This pull request adds support for custom server icons, allowing users to upload or set an icon for each server. The changes include backend model and database updates, a new user interface for managing server icons, and integration of the icon into the server entry placeholder view.

Server Icon Feature

  • Added a new icon field to the Server model, including database migration, model property, validation, and casting. [1] [2] [3] [4]
  • Updated the settings page UI (Settings.php) to provide an interface for uploading, previewing, and deleting server icons. Users can set the icon via URL or file upload, with validation and error handling. [1] [2]
  • Added new translation strings for icon management actions and notifications.

UI Integration

  • Modified the server entry placeholder logic to use the custom icon if available, falling back to the egg image. The placeholder HTML was moved to a Blade view for better maintainability. [1] [2]

Layout Adjustments

  • Updated column and fieldset layouts in the settings page to accommodate the new icon management UI and improve responsiveness. [1] [2]

🔄 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/1906 **Author:** [@notAreYouScared](https://github.com/notAreYouScared) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/22/2025 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `charles/server-icons` --- ### 📝 Commits (10+) - [`6cf4860`](https://github.com/pelican-dev/panel/commit/6cf48603e7fa5e02ba880057fb6324dca26732ba) Add server icons - [`93a072b`](https://github.com/pelican-dev/panel/commit/93a072b0c73b1d05653b4b30c1db8fa2f86b7d04) update return type - [`8600d5f`](https://github.com/pelican-dev/panel/commit/8600d5f5064a062a5e94494acca67cffc6b80ead) Remove cast - [`8f9e9bc`](https://github.com/pelican-dev/panel/commit/8f9e9bcdde073f45617cc93fc52112ca99bc7160) switch to `longtext` - [`56ab608`](https://github.com/pelican-dev/panel/commit/56ab6084af4e0d432bf8f493596b6eda7e2a1271) Merge remote-tracking branch 'origin/main' into charles/server-icons - [`273b819`](https://github.com/pelican-dev/panel/commit/273b8194fffb5f882335f945db47818dff56a2ce) set server tenant to icon->image->null - [`fcd501a`](https://github.com/pelican-dev/panel/commit/fcd501a2fec933f29712dcd941729b75e16146cf) fix 500, reduce max size to 256KB - [`0893941`](https://github.com/pelican-dev/panel/commit/089394120c77ef0611892c2b3b55e25f25544024) Make rabbit happy - [`2a25491`](https://github.com/pelican-dev/panel/commit/2a25491f93413a53ca608cba1a8268368f95a0ca) PHPStan + Rabbit changes - [`1a398b0`](https://github.com/pelican-dev/panel/commit/1a398b0218cc39ce206413fbe50576e079dec954) Nullsafe cleanup ### 📊 Changes **9 files changed** (+597 additions, -176 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Admin/Resources/Servers/Pages/EditServer.php` (+253 -74) 📝 `app/Filament/App/Resources/Servers/Pages/ListServers.php` (+5 -0) 📝 `app/Filament/Server/Pages/Settings.php` (+202 -36) 📝 `app/Livewire/ServerEntry.php` (+14 -57) 📝 `app/Models/Server.php` (+11 -2) ➕ `database/migrations/2025_11_16_000000_add_icon_to_servers.php` (+28 -0) 📝 `lang/en/server/setting.php` (+6 -0) ➕ `resources/views/livewire/server-entry-placeholder.blade.php` (+69 -0) 📝 `resources/views/livewire/server-entry.blade.php` (+9 -7) </details> ### 📄 Description This pull request adds support for custom server icons, allowing users to upload or set an icon for each server. The changes include backend model and database updates, a new user interface for managing server icons, and integration of the icon into the server entry placeholder view. **Server Icon Feature** * Added a new `icon` field to the `Server` model, including database migration, model property, validation, and casting. [[1]](diffhunk://#diff-d2b201b52ff928018e9a3e02f16e9cdd583d88a0f7ae312d369c9e0812a9e149R1-R28) [[2]](diffhunk://#diff-f192a98d85a96f924407afb19b1403f591cb7c9961578b9d86bd1f4d02f1cdd8R58) [[3]](diffhunk://#diff-f192a98d85a96f924407afb19b1403f591cb7c9961578b9d86bd1f4d02f1cdd8R185) [[4]](diffhunk://#diff-f192a98d85a96f924407afb19b1403f591cb7c9961578b9d86bd1f4d02f1cdd8R213) * Updated the settings page UI (`Settings.php`) to provide an interface for uploading, previewing, and deleting server icons. Users can set the icon via URL or file upload, with validation and error handling. [[1]](diffhunk://#diff-9f28c95c36f647802d4aeee4eb87382ecf1611bbd20e95193768dd5b7c2eb2beR11-R27) [[2]](diffhunk://#diff-9f28c95c36f647802d4aeee4eb87382ecf1611bbd20e95193768dd5b7c2eb2beL38-R220) * Added new translation strings for icon management actions and notifications. **UI Integration** * Modified the server entry placeholder logic to use the custom icon if available, falling back to the egg image. The placeholder HTML was moved to a Blade view for better maintainability. [[1]](diffhunk://#diff-ce70abce53df4649d48404024aa49e0b1a7f133565685d4de7598e29078224e0L20-R20) [[2]](diffhunk://#diff-ab353ebb0c0f9519f83712392b5fac32105913ba922e665f7e2f225d7f86cc3cR1-R68) **Layout Adjustments** * Updated column and fieldset layouts in the settings page to accommodate the new icon management UI and improve responsiveness. [[1]](diffhunk://#diff-9f28c95c36f647802d4aeee4eb87382ecf1611bbd20e95193768dd5b7c2eb2beL38-R220) [[2]](diffhunk://#diff-9f28c95c36f647802d4aeee4eb87382ecf1611bbd20e95193768dd5b7c2eb2beL100-R277) --- <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:20:17 +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#1649