[PR #892] [MERGED] Alert banners #1037

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

📋 Pull Request Information

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

Base: mainHead: feature/alerts


📝 Commits (9)

  • 6fa696e add alert banner
  • e79918e replace old server conflict banner with alert banner
  • 9eb8e7e improve color and icon size
  • c1f1534 add alert for websocket errors
  • e388311 update file loading error to alert banner
  • 261ef2b remove old events
  • a27fc75 add back console-status event
  • ef43bfd move @php block under @isset
  • 6739eea remove phpstan ignore

📊 Changes

11 files changed (+133 additions, -70 deletions)

View changed files

📝 app/Filament/Server/Pages/Console.php (+18 -0)
📝 app/Filament/Server/Resources/FileResource/Pages/ListFiles.php (+0 -1)
app/Livewire/AlertBanner.php (+41 -0)
app/Livewire/ServerConflictBanner.php (+0 -34)
📝 app/Models/File.php (+9 -4)
📝 app/Providers/AppServiceProvider.php (+1 -3)
resources/views/filament/alerts/alert-banner-container.blade.php (+11 -0)
resources/views/filament/alerts/alert-banner.blade.php (+40 -0)
📝 resources/views/filament/components/server-console.blade.php (+13 -6)
resources/views/filament/server-conflict-banner.blade.php (+0 -1)
resources/views/livewire/server-conflict-banner.blade.php (+0 -21)

📄 Description

Alert banners work similar to notifications but are displayed as banners at the top of the page.

Usage example:

AlertBanner::make()
  ->title('Something went wrong!')
  ->body('Check the panel logs for more information.')
  ->danger()
  ->send();

image
image

Includes three banners:

  1. Web socket errors on console
    image

  2. Error when loading files
    image

  3. Server conflict banner (old one has been removed)
    image


🔄 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/892 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 1/8/2025 **Status:** ✅ Merged **Merged:** 1/15/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `feature/alerts` --- ### 📝 Commits (9) - [`6fa696e`](https://github.com/pelican-dev/panel/commit/6fa696ec12a5df105d27fa989d530e308c9ce822) add alert banner - [`e79918e`](https://github.com/pelican-dev/panel/commit/e79918e2fe7e8c787485f8467aa8111caaf1f44e) replace old server conflict banner with alert banner - [`9eb8e7e`](https://github.com/pelican-dev/panel/commit/9eb8e7e801240ba77dce8bd5aa55fd12216a73e1) improve color and icon size - [`c1f1534`](https://github.com/pelican-dev/panel/commit/c1f1534ff377de19f64dd9bc039f0eacdd48547e) add alert for websocket errors - [`e388311`](https://github.com/pelican-dev/panel/commit/e3883115e3f93e036355f6b8af61c1c9f024ca5d) update file loading error to alert banner - [`261ef2b`](https://github.com/pelican-dev/panel/commit/261ef2bf3e296118500938f968d1a91d7bd43049) remove old events - [`a27fc75`](https://github.com/pelican-dev/panel/commit/a27fc75503884c37c6012ae11182f1a4531d541f) add back `console-status` event - [`ef43bfd`](https://github.com/pelican-dev/panel/commit/ef43bfd81f2cec0689b8ddd710db7e0173a5751e) move @php block under @isset - [`6739eea`](https://github.com/pelican-dev/panel/commit/6739eeae413d550307e04100d52051ef8523d2e0) remove phpstan ignore ### 📊 Changes **11 files changed** (+133 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Server/Pages/Console.php` (+18 -0) 📝 `app/Filament/Server/Resources/FileResource/Pages/ListFiles.php` (+0 -1) ➕ `app/Livewire/AlertBanner.php` (+41 -0) ➖ `app/Livewire/ServerConflictBanner.php` (+0 -34) 📝 `app/Models/File.php` (+9 -4) 📝 `app/Providers/AppServiceProvider.php` (+1 -3) ➕ `resources/views/filament/alerts/alert-banner-container.blade.php` (+11 -0) ➕ `resources/views/filament/alerts/alert-banner.blade.php` (+40 -0) 📝 `resources/views/filament/components/server-console.blade.php` (+13 -6) ➖ `resources/views/filament/server-conflict-banner.blade.php` (+0 -1) ➖ `resources/views/livewire/server-conflict-banner.blade.php` (+0 -21) </details> ### 📄 Description Alert banners work similar to notifications but are displayed as banners at the top of the page. Usage example: ```php AlertBanner::make() ->title('Something went wrong!') ->body('Check the panel logs for more information.') ->danger() ->send(); ``` ![image](https://github.com/user-attachments/assets/29d94d35-5732-4b24-80c6-aa1e6f862fd2) ![image](https://github.com/user-attachments/assets/46ae89e5-aff7-48f3-bf74-7eeee182a406) **Includes three banners:** 1. Web socket errors on console ![image](https://github.com/user-attachments/assets/7462a21e-6b14-4d6d-b5b4-042b46868d9f) 2. Error when loading files ![image](https://github.com/user-attachments/assets/c232050b-3e02-44d6-ba3a-eb8bf1e76711) 3. Server conflict banner (old one has been removed) ![image](https://github.com/user-attachments/assets/f21c5914-ae4f-4c03-a0e7-1dc3a32eac06) --- <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:01:58 +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#1037