feat: upgrade filament to v4 and ensure 100% test coverage

- Upgrade Filament framework from v3 to v4
   - Update all Filament resources and pages for v4 compatibility
   - Fix test suite to maintain 100% pass rate (321 tests passing)
   - Add visibility condition for ticket close action (only when not closed)
   - Update dependencies and build assets for new Filament version
   - Maintain backward compatibility while leveraging v4 improvements
This commit is contained in:
idevakk
2025-11-14 01:42:07 -08:00
parent 3706072ce5
commit 3892c48ef2
103 changed files with 1741 additions and 890 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Livewire\Dashboard\Mailbox;
use Exception;
use App\ColorPicker;
use App\Models\Log;
use App\Models\Premium;
@@ -77,7 +78,7 @@ class Inbox extends Component
}
$this->email_limit = $mailboxLimit;
} catch (\Exception $e) {
} catch (Exception $e) {
\Log::error($e->getMessage());
}
}
@@ -120,7 +121,7 @@ class Inbox extends Component
}
}
}
} catch (\Exception $exception) {
} catch (Exception $exception) {
\Log::error($exception->getMessage());
}
@@ -282,7 +283,7 @@ class Inbox extends Component
}
}
}
} catch (\Exception $exception) {
} catch (Exception $exception) {
\Log::error($exception->getMessage());
}
}
@@ -355,7 +356,7 @@ class Inbox extends Component
$this->emailsHistory = array_reverse(PremiumEmail::parseEmail(\auth()->user()->id)['data']) ?? [];
} catch (\Exception $e) {
} catch (Exception $e) {
if (Auth::check() && Auth::user()->level == 9) {
$this->error = $e->getMessage();
} else {
@@ -383,7 +384,7 @@ class Inbox extends Component
}
} catch (
\Exception $exception
Exception $exception
) {
\Illuminate\Support\Facades\Log::error($exception->getMessage());
}