From d26cb2f809eaf79e9a3891f0a2d4c4f4e38695f6 Mon Sep 17 00:00:00 2001 From: Ivan Moroz Date: Fri, 29 May 2026 18:37:15 +0300 Subject: [PATCH] CONV-073: Render empty upload state --- .../dashboard/dashboard-converter.blade.php | 27 +++++++++++++++++-- .../Livewire/DashboardConverterTest.php | 6 +++-- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/resources/views/livewire/dashboard/dashboard-converter.blade.php b/resources/views/livewire/dashboard/dashboard-converter.blade.php index 2aa8c45..3ebadc9 100644 --- a/resources/views/livewire/dashboard/dashboard-converter.blade.php +++ b/resources/views/livewire/dashboard/dashboard-converter.blade.php @@ -1,4 +1,27 @@
-

Drop your file here

-

PNG, JPG, WEBP and PDF supported in beta

+ + @if ($step === 'upload') +
+
+ + + +
+ +
+

Drop your file here

+

PNG, JPG, WEBP and PDF supported in beta

+
+ + + +

Your files stay private. We delete them after conversion.

+
+ @endif +
diff --git a/tests/Feature/Livewire/DashboardConverterTest.php b/tests/Feature/Livewire/DashboardConverterTest.php index ec43f85..6f8aad8 100644 --- a/tests/Feature/Livewire/DashboardConverterTest.php +++ b/tests/Feature/Livewire/DashboardConverterTest.php @@ -3,7 +3,9 @@ use App\Livewire\Dashboard\DashboardConverter; use Livewire\Livewire; -it('renders dashboard converter component', function () { +it('renders empty upload state', function () { Livewire::test(DashboardConverter::class) - ->assertSee('Drop your file here'); + ->assertSee('Drop your file here') + ->assertSee('PNG, JPG, WEBP and PDF supported in beta') + ->assertSee('Choose file'); });