Refine database warning banner and docs

This commit is contained in:
root
2026-02-06 18:46:16 +00:00
parent a5742a3156
commit 8acc55a799
7 changed files with 24 additions and 14 deletions

View File

@@ -620,7 +620,15 @@ All administrative actions are logged to the `audit_logs` table.
- **USE Tailwind classes** - Only when absolutely necessary for minor adjustments - **USE Tailwind classes** - Only when absolutely necessary for minor adjustments
- **MUST be responsive** - All pages must work on mobile, tablet, and desktop - **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 ### Allowed Components
Use these Filament native components exclusively: Use these Filament native components exclusively:
| Category | Components | | Category | Components |

View File

@@ -1 +1 @@
VERSION=0.9-rc55 VERSION=0.9-rc56

View File

@@ -692,17 +692,17 @@ class ServerSettings extends Page implements HasActions, HasForms
protected function databaseTabContent(): array protected function databaseTabContent(): array
{ {
return [ 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')) Section::make(__('Database Tuning'))
->description(__('Adjust MariaDB/MySQL global variables.')) ->description(__('Adjust MariaDB/MySQL global variables.'))
->icon('heroicon-o-circle-stack') ->icon('heroicon-o-circle-stack')
->schema([ ->schema([
Placeholder::make('database_tuning_warning')
->content(new HtmlString(
'<div class="rounded-lg bg-warning-500/10 p-4 text-sm text-warning-700 dark:text-warning-400">'.
'<strong>'.__('Warning:').'</strong> '.
__('Changing database settings can impact performance or cause outages. Apply changes only if you understand their effects, and prefer doing so during maintenance windows.').
'</div>'
)),
EmbeddedTable::make(DatabaseTuningTable::class), EmbeddedTable::make(DatabaseTuningTable::class),
]), ]),
]; ];

View File

@@ -185,3 +185,5 @@ class BackupSchedule extends Model
return $timezone; return $timezone;
} }
}

View File

@@ -17,7 +17,7 @@
}, },
"require-dev": { "require-dev": {
"fakerphp/faker": "^1.23", "fakerphp/faker": "^1.23",
"filament/blueprint": "^2.0", "filament/blueprint": "^2.1",
"laravel/boost": "*", "laravel/boost": "*",
"laravel/pail": "^1.2.2", "laravel/pail": "^1.2.2",
"laravel/pint": "^1.24", "laravel/pint": "^1.24",

8
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "194d87cc129a30c6e832109fb820097a", "content-hash": "7083b0b087c4b503b50d3aa23cfbbfac",
"packages": [ "packages": [
{ {
"name": "anourvalar/eloquent-serialize", "name": "anourvalar/eloquent-serialize",
@@ -8817,14 +8817,14 @@
}, },
{ {
"name": "filament/blueprint", "name": "filament/blueprint",
"version": "v2.0.1", "version": "v2.1.0",
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://packages.filamentphp.com/composer/10/127/download" "url": "https://packages.filamentphp.com/composer/10/473/download"
}, },
"require": { "require": {
"filament/support": "^5.0", "filament/support": "^5.0",
"laravel/boost": "^1.8" "laravel/boost": "^1.8|^2.0"
}, },
"type": "library", "type": "library",
"license": [ "license": [

View File

@@ -16,7 +16,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ -f "$SCRIPT_DIR/VERSION" ]]; then if [[ -f "$SCRIPT_DIR/VERSION" ]]; then
JABALI_VERSION="$(sed -n 's/^VERSION=//p' "$SCRIPT_DIR/VERSION")" JABALI_VERSION="$(sed -n 's/^VERSION=//p' "$SCRIPT_DIR/VERSION")"
fi fi
JABALI_VERSION="${JABALI_VERSION:-0.9-rc55}" JABALI_VERSION="${JABALI_VERSION:-0.9-rc56}"
# Colors # Colors
RED='\033[0;31m' RED='\033[0;31m'