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:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Livewire\Frontend;
|
||||
|
||||
use Exception;
|
||||
use App\Models\Email;
|
||||
use App\ColorPicker;
|
||||
use App\Models\Message;
|
||||
use App\Models\ZEmail;
|
||||
@@ -78,7 +80,7 @@ class Mailbox extends Component
|
||||
$this->dispatch('showNewMailNotification', $notification);
|
||||
}
|
||||
ZEmail::incrementMessagesStats(count($notifications));
|
||||
} catch (\Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
if (Auth::check() && Auth::user()->level == 9) {
|
||||
$this->error = $e->getMessage();
|
||||
} else {
|
||||
@@ -96,7 +98,7 @@ class Mailbox extends Component
|
||||
Message::find($messageId)->delete();
|
||||
}
|
||||
if (config('app.fetch_from_db')) {
|
||||
\App\Models\Email::where(['message_id' => $messageId])->delete();
|
||||
Email::where(['message_id' => $messageId])->delete();
|
||||
}
|
||||
$this->deleted[] = $messageId;
|
||||
foreach ($this->messages as $key => $message) {
|
||||
@@ -108,7 +110,7 @@ class Mailbox extends Component
|
||||
}
|
||||
|
||||
} catch (
|
||||
\Exception $exception
|
||||
Exception $exception
|
||||
) {
|
||||
Log::error($exception->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user