TenantAtlas/resources/views/filament/admin/logo.blade.php
ahmido 558b5d3807 Fix tenant dashboard 500 (missing BaselineCompareRun) (#125)
## Summary
Fixes a tenant dashboard Internal Server Error caused by `App\\Models\\BaselineCompareRun` being referenced but not existing.

## What changed
- Dashboard widget now uses `OperationRun` (`type=baseline_compare`, context baseline_profile_id, ordered by completed_at) instead of the missing model.
- Added regression test ensuring tenant dashboard renders when a baseline assignment exists.

## Tests
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineCompareNowWidgetTest.php`
- `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantDashboardDbOnlyTest.php tests/Feature/Filament/TenantDashboardTenantScopeTest.php`

## Notes
No UX changes; this is a runtime stability fix only.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #125
2026-02-20 21:07:34 +00:00

18 lines
616 B
PHP

<div class="flex items-center gap-2">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="h-7 w-7 shrink-0" fill="none">
{{-- Shield body --}}
<path
d="M16 2L4 7v8c0 8.5 5.1 16.4 12 18 6.9-1.6 12-9.5 12-18V7L16 2z"
class="fill-primary-600 dark:fill-primary-500"
/>
{{-- Checkmark --}}
<path
d="M13 17.5l-3-3 1.4-1.4L13 14.7l5.6-5.6L20 10.5l-7 7z"
class="fill-white"
/>
</svg>
<span class="text-lg font-bold tracking-tight text-gray-950 dark:text-white">
TenantPilot
</span>
</div>