[PR #1563] [MERGED] Cleanup formatResource #1456

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

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1563
Author: @Boy132
Created: 7/29/2025
Status: Merged
Merged: 8/1/2025
Merged by: @Boy132

Base: mainHead: boy132/fix-format-resource


📝 Commits (7)

📊 Changes

6 files changed (+80 additions, -45 deletions)

View changed files

📝 app/Enums/ServerResourceType.php (+45 -4)
📝 app/Enums/ServerState.php (+1 -4)
📝 app/Filament/App/Resources/ServerResource/Pages/ListServers.php (+7 -7)
📝 app/Livewire/ServerEntry.php (+9 -6)
📝 app/Models/Server.php (+11 -17)
📝 resources/views/livewire/server-entry.blade.php (+7 -7)

📄 Description

Simplifies formatResource and also fixes wrong unit conversion for limits when using decimal prefix.
(Also updates the css of the placeholder ServerEntry to match the "real" entry.)


🔄 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/1563 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 7/29/2025 **Status:** ✅ Merged **Merged:** 8/1/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/fix-format-resource` --- ### 📝 Commits (7) - [`a54b397`](https://github.com/pelican-dev/panel/commit/a54b3977e84623b6178b090067979bedf5401106) cleanup formatResource - [`fefa4e6`](https://github.com/pelican-dev/panel/commit/fefa4e6ac6c24de96360e284d9aa62d9e023b282) bring back `ServerResourceType` to remove magic string - [`9376df7`](https://github.com/pelican-dev/panel/commit/9376df71ac92757578ef2177a5852517c545a518) fix typos - [`f5f0428`](https://github.com/pelican-dev/panel/commit/f5f04285b912383913121153adc8a52e4d7987ef) fix typo part two - [`9a250c5`](https://github.com/pelican-dev/panel/commit/9a250c574190d3837940a01a3ac643e4de3b8a1b) do not convert cpu limit... - [`24b9aea`](https://github.com/pelican-dev/panel/commit/24b9aea4312c3e7e073ca2fefe421c590b986e9a) another typo... - [`80d7daa`](https://github.com/pelican-dev/panel/commit/80d7daad9b262b244ad25e198dec662bf0100b3d) add "loading" status to placeholder ### 📊 Changes **6 files changed** (+80 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `app/Enums/ServerResourceType.php` (+45 -4) 📝 `app/Enums/ServerState.php` (+1 -4) 📝 `app/Filament/App/Resources/ServerResource/Pages/ListServers.php` (+7 -7) 📝 `app/Livewire/ServerEntry.php` (+9 -6) 📝 `app/Models/Server.php` (+11 -17) 📝 `resources/views/livewire/server-entry.blade.php` (+7 -7) </details> ### 📄 Description Simplifies `formatResource` and also fixes wrong unit conversion for limits when using decimal prefix. (Also updates the css of the placeholder ServerEntry to match the "real" entry.) --- <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:14:30 +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#1456