From d63489ea33ba1e1cb6f22e9a8cf3018f8664bfe1 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 18 May 2026 09:49:14 +0000 Subject: [PATCH] refactor: replace `flux` components with `maryUI` equivalents and update Blade templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replaced deprecated `flux` components with `maryUI` counterparts (`flux:input` → `x-mary-input`, `flux:button` → `x-mary-button`, etc.). - Removed unused partials (`settings-heading.blade.php`) and outdated structures from Blade files. - Adjusted Livewire modal, form, and button implementations for consistency with `maryUI`. - Streamlined layout and theme styling for improved maintainability and readability. --- app/Livewire/Settings/DeleteUserForm.php | 2 + .../views/components/auth-header.blade.php | 4 +- .../components/dashboard-sidebar.blade.php | 23 +- .../components/settings/layout.blade.php | 16 +- resources/views/layouts/auth/simple.blade.php | 40 +- .../livewire/auth/confirm-password.blade.php | 8 +- .../livewire/auth/forgot-password.blade.php | 14 +- resources/views/livewire/auth/login.blade.php | 24 +- .../views/livewire/auth/register.blade.php | 25 +- .../livewire/auth/reset-password.blade.php | 14 +- .../settings/delete-user-form.blade.php | 54 ++- .../views/livewire/settings/profile.blade.php | 22 +- .../livewire/settings/security.blade.php | 369 +++++++++--------- .../two-factor/recovery-codes.blade.php | 148 ++++--- .../views/partials/settings-heading.blade.php | 5 - routes/settings.php | 44 ++- 16 files changed, 412 insertions(+), 400 deletions(-) delete mode 100644 resources/views/partials/settings-heading.blade.php diff --git a/app/Livewire/Settings/DeleteUserForm.php b/app/Livewire/Settings/DeleteUserForm.php index 74a2ba2..2906ace 100644 --- a/app/Livewire/Settings/DeleteUserForm.php +++ b/app/Livewire/Settings/DeleteUserForm.php @@ -15,6 +15,8 @@ final class DeleteUserForm extends Component public string $password = ''; + public bool $confirmingUserDeletion = false; + /** * Delete the currently authenticated user. */ diff --git a/resources/views/components/auth-header.blade.php b/resources/views/components/auth-header.blade.php index e596a3f..9d38db4 100644 --- a/resources/views/components/auth-header.blade.php +++ b/resources/views/components/auth-header.blade.php @@ -4,6 +4,6 @@ ])
- {{ $title }} - {{ $description }} +

{{ $title }}

+

{{ $description }}

diff --git a/resources/views/components/dashboard-sidebar.blade.php b/resources/views/components/dashboard-sidebar.blade.php index 721681c..9f6e911 100644 --- a/resources/views/components/dashboard-sidebar.blade.php +++ b/resources/views/components/dashboard-sidebar.blade.php @@ -54,17 +54,17 @@ public function navItems(): DataCollection new NavItemData( label: 'Settings', icon: 'lucide.settings', - active_pattern: 'settings.*', + active_pattern: 'settings.*', // Kept as fallback, but handled dynamically in view sub_menu: NavSubItemData::collect([ new NavSubItemData( label: 'Profile', route: 'profile.edit', - active_pattern: 'settings.profile', + active_pattern: 'profile.edit', ), new NavSubItemData( label: 'Security', route: 'security.edit', - active_pattern: 'settings.security', + active_pattern: 'security.edit', ), ], DataCollection::class) ), @@ -72,6 +72,7 @@ public function navItems(): DataCollection } }; ?> +