From 8acc55a799de5132a4a88b192437dfa24a14ea36 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Feb 2026 18:46:16 +0000 Subject: [PATCH] Refine database warning banner and docs --- AGENT.md | 8 ++++++++ VERSION | 2 +- app/Filament/Admin/Pages/ServerSettings.php | 14 +++++++------- app/Models/BackupSchedule.php | 2 ++ composer.json | 2 +- composer.lock | 8 ++++---- install.sh | 2 +- 7 files changed, 24 insertions(+), 14 deletions(-) diff --git a/AGENT.md b/AGENT.md index ad5de6c..38b4b3a 100644 --- a/AGENT.md +++ b/AGENT.md @@ -620,7 +620,15 @@ All administrative actions are logged to the `audit_logs` table. - **USE Tailwind classes** - Only when absolutely necessary for minor adjustments - **MUST be responsive** - All pages must work on mobile, tablet, and desktop +### Warning Banners + +- Use Filament `Section::make()` for warning banners (no raw HTML). +- Always set `->icon('heroicon-o-exclamation-triangle')` and `->iconColor('warning')`. +- Keep banners non-collapsible: `->collapsed(false)->collapsible(false)`. +- Put the full message in `->description()` and keep the heading short. + ### Allowed Components + Use these Filament native components exclusively: | Category | Components | diff --git a/VERSION b/VERSION index 6802a4f..afea0f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -VERSION=0.9-rc55 +VERSION=0.9-rc56 diff --git a/app/Filament/Admin/Pages/ServerSettings.php b/app/Filament/Admin/Pages/ServerSettings.php index fe901d3..9d8d965 100644 --- a/app/Filament/Admin/Pages/ServerSettings.php +++ b/app/Filament/Admin/Pages/ServerSettings.php @@ -692,17 +692,17 @@ class ServerSettings extends Page implements HasActions, HasForms protected function databaseTabContent(): array { return [ + Section::make(__('Warning: Changing database settings can impact performance or cause outages')) + ->description(__('Apply changes only if you understand their effects, and prefer doing so during maintenance windows.')) + ->icon('heroicon-o-exclamation-triangle') + ->iconColor('warning') + ->collapsed(false) + ->collapsible(false) + ->compact(), Section::make(__('Database Tuning')) ->description(__('Adjust MariaDB/MySQL global variables.')) ->icon('heroicon-o-circle-stack') ->schema([ - Placeholder::make('database_tuning_warning') - ->content(new HtmlString( - '
'. - ''.__('Warning:').' '. - __('Changing database settings can impact performance or cause outages. Apply changes only if you understand their effects, and prefer doing so during maintenance windows.'). - '
' - )), EmbeddedTable::make(DatabaseTuningTable::class), ]), ]; diff --git a/app/Models/BackupSchedule.php b/app/Models/BackupSchedule.php index 81ef79a..10ead06 100644 --- a/app/Models/BackupSchedule.php +++ b/app/Models/BackupSchedule.php @@ -185,3 +185,5 @@ class BackupSchedule extends Model return $timezone; } + +} diff --git a/composer.json b/composer.json index 156f1e6..aaf14d9 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "require-dev": { "fakerphp/faker": "^1.23", - "filament/blueprint": "^2.0", + "filament/blueprint": "^2.1", "laravel/boost": "*", "laravel/pail": "^1.2.2", "laravel/pint": "^1.24", diff --git a/composer.lock b/composer.lock index 00fb194..9c71bca 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "194d87cc129a30c6e832109fb820097a", + "content-hash": "7083b0b087c4b503b50d3aa23cfbbfac", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -8817,14 +8817,14 @@ }, { "name": "filament/blueprint", - "version": "v2.0.1", + "version": "v2.1.0", "dist": { "type": "zip", - "url": "https://packages.filamentphp.com/composer/10/127/download" + "url": "https://packages.filamentphp.com/composer/10/473/download" }, "require": { "filament/support": "^5.0", - "laravel/boost": "^1.8" + "laravel/boost": "^1.8|^2.0" }, "type": "library", "license": [ diff --git a/install.sh b/install.sh index 80fab1e..c806e23 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" if [[ -f "$SCRIPT_DIR/VERSION" ]]; then JABALI_VERSION="$(sed -n 's/^VERSION=//p' "$SCRIPT_DIR/VERSION")" fi -JABALI_VERSION="${JABALI_VERSION:-0.9-rc55}" +JABALI_VERSION="${JABALI_VERSION:-0.9-rc56}" # Colors RED='\033[0;31m'