## 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
21 lines
499 B
Markdown
21 lines
499 B
Markdown
---
|
|
description: "Tasks for feat/700-bugfix (BaselineCompareRun missing model)"
|
|
---
|
|
|
|
# Tasks: feat/700-bugfix
|
|
|
|
**Input**: `specs/feat/700-bugfix/spec.md` and `specs/feat/700-bugfix/plan.md`
|
|
|
|
## Setup
|
|
- [X] T001 Confirm whether baseline compare runs table exists
|
|
|
|
## Tests (TDD)
|
|
- [X] T010 Add regression test for tenant dashboard (no 500)
|
|
|
|
## Core
|
|
- [X] T020 Fix missing BaselineCompareRun reference (model or widget)
|
|
|
|
## Validation
|
|
- [X] T030 Run Pint (dirty)
|
|
- [X] T040 Run focused tests via Sail
|