From 96f55e3e3146c111d563f57e1c997d61cbdf8fd3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 15 Aug 2026 23:14:06 +0200 Subject: [PATCH] feat(dashboard): display project icons in project cards --- resources/views/livewire/dashboard.blade.php | 8 +++++++- tests/Feature/ProjectIconTest.php | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index eb48314bf..e9f8b3273 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -65,7 +65,13 @@
- + @if ($project->icon_path) + {{ $project->name }} icon + @else + + @endif

$this->project->updated_at->timestamp, ])); }); + +it('displays the project icon on the dashboard', function () { + $this->project->forceFill([ + 'icon_path' => "project-icons/{$this->project->uuid}/icon.jpg", + 'icon_storage_type' => 'local', + ])->save(); + + Livewire::test(Dashboard::class) + ->assertSeeHtml('src="'.route('project.icon', [ + 'project_uuid' => $this->project->uuid, + 'v' => $this->project->updated_at->timestamp, + ]).'"'); +});