From 9a5b14393db402914c9610b3fe565d132d8d0dc5 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Mon, 7 Apr 2025 10:17:47 +0300 Subject: [PATCH 1/6] support filament 4 --- src/Livewire/Comments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Livewire/Comments.php b/src/Livewire/Comments.php index 43e7774..90c14de 100644 --- a/src/Livewire/Comments.php +++ b/src/Livewire/Comments.php @@ -6,6 +6,7 @@ use Filament\Forms\Concerns\InteractsWithForms; use Filament\Forms\Contracts\HasForms; use Filament\Forms\Form; +use Filament\Schemas\Schema; use Illuminate\Contracts\Foundation\Application as ApplicationAlias; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; @@ -29,7 +30,7 @@ public function mount(): void $this->form->fill(); } - public function form(Form $form): Form + public static function form(Schema $form): Schema { return $form ->statePath('data') From 0a63635ce4c3d2dbb5a5b3fc6f082b73b8e41fdb Mon Sep 17 00:00:00 2001 From: atmonshi <1952412+atmonshi@users.noreply.github.com> Date: Mon, 7 Apr 2025 07:18:09 +0000 Subject: [PATCH 2/6] Fix styling --- src/Livewire/Comments.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Livewire/Comments.php b/src/Livewire/Comments.php index 90c14de..06764ab 100644 --- a/src/Livewire/Comments.php +++ b/src/Livewire/Comments.php @@ -5,7 +5,6 @@ use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Concerns\InteractsWithForms; use Filament\Forms\Contracts\HasForms; -use Filament\Forms\Form; use Filament\Schemas\Schema; use Illuminate\Contracts\Foundation\Application as ApplicationAlias; use Illuminate\Contracts\View\Factory; From 34300449c05779adca67b9ce465ad3b6e054c22a Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Mon, 7 Apr 2025 13:27:22 +0300 Subject: [PATCH 3/6] fixes for fialment 4 --- composer.json | 2 +- resources/views/replies.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1a4d6b1..234e69d 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ ], "require": { "php": "^8.1", - "lara-zeus/filament-plugin-tools": "^1.0" + "lara-zeus/filament-plugin-tools": "*" }, "require-dev": { "larastan/larastan": "^3.0", diff --git a/resources/views/replies.blade.php b/resources/views/replies.blade.php index 1b0fffb..d77baf8 100644 --- a/resources/views/replies.blade.php +++ b/resources/views/replies.blade.php @@ -19,7 +19,7 @@ class="flex flex-col text-xs max-w-xs m-2 mx-3 @if($isOwner) order-1 @else order Date: Mon, 21 Apr 2025 11:44:45 +0300 Subject: [PATCH 4/6] Update replies.blade.php --- resources/views/replies.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/replies.blade.php b/resources/views/replies.blade.php index d77baf8..1b832e1 100644 --- a/resources/views/replies.blade.php +++ b/resources/views/replies.blade.php @@ -19,7 +19,7 @@ class="flex flex-col text-xs max-w-xs m-2 mx-3 @if($isOwner) order-1 @else order Date: Mon, 28 Apr 2025 15:32:44 +0300 Subject: [PATCH 5/6] Update replies.blade.php --- resources/views/replies.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/replies.blade.php b/resources/views/replies.blade.php index 1b832e1..e7d3e06 100644 --- a/resources/views/replies.blade.php +++ b/resources/views/replies.blade.php @@ -22,7 +22,7 @@ class="flex flex-col text-xs max-w-xs m-2 mx-3 @if($isOwner) order-1 @else order content: @js($comment->created_at->format($this->form->getDefaultDateDisplayFormat())), theme: $store.theme, }" - class="@if($isOwner) text-right @else text-left @endif w-full flex flex-col cursor-pointer text-xs text-gray-500 dark:text-gray-200 my-1" + class="transition-all ease-in-out duration-150 @if($isOwner) text-right @else text-left @endif w-full flex flex-col cursor-pointer text-xs text-gray-500 dark:text-gray-200 my-1" > {{ $comment->created_at->diffForHumans() }} From 549fa8e3897c244a9d83fd108400b5c6d98cef21 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Wed, 11 Jun 2025 22:26:48 +0300 Subject: [PATCH 6/6] Update composer.json --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 234e69d..a732bf3 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,8 @@ "pestphp/pest-plugin-arch": "^3.0", "pestphp/pest-plugin-laravel": "^3.0", "pestphp/pest-plugin-livewire": "^3.0", - "phpstan/extension-installer": "^1.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0" },