Refine database warning banner and docs
This commit is contained in:
8
AGENT.md
8
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 |
|
||||
|
||||
@@ -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(
|
||||
'<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),
|
||||
]),
|
||||
];
|
||||
|
||||
@@ -185,3 +185,5 @@ class BackupSchedule extends Model
|
||||
return $timezone;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
8
composer.lock
generated
8
composer.lock
generated
@@ -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": [
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user