TenantAtlas/app
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
..
Console/Commands feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
Exceptions feat/032-backup-scheduling-mvp (#34) 2026-01-05 04:22:13 +00:00
Filament Fix tenant dashboard 500 (missing BaselineCompareRun) (#125) 2026-02-20 21:07:34 +00:00
Http Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00
Jobs Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
Listeners 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
Livewire feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
Models Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
Notifications feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
Observers Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
Policies feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
Providers Fix tenant dashboard 500 (missing BaselineCompareRun) (#125) 2026-02-20 21:07:34 +00:00
Rules feat/049-backup-restore-job-orchestration (#56) 2026-01-11 15:59:06 +00:00
Services Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
Support Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00