Implements spec `099-alerts-v1-teams-email`. - Monitoring navigation: Alerts as a cluster under Monitoring; default landing is Alert deliveries. - Tenant panel: Alerts points to `/admin/alerts` and the cluster navigation is hidden in tenant panel. - Guard compliance: removes direct `Gate::` usage from Alert resources so `NoAdHocFilamentAuthPatternsTest` passes. Verification: - Full suite: `1348 passed, 7 skipped` (EXIT=0). Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #121
34 lines
1.5 KiB
PHP
34 lines
1.5 KiB
PHP
<x-filament-panels::page>
|
|
<x-filament::section>
|
|
<div class="flex flex-col gap-3">
|
|
<div class="text-sm text-gray-600 dark:text-gray-300">
|
|
Configure alert targets and rules, then review delivery history.
|
|
</div>
|
|
|
|
<div class="flex flex-wrap gap-3">
|
|
@if (\App\Filament\Resources\AlertDestinationResource::canViewAny())
|
|
<x-filament::button tag="a" :href="\App\Filament\Resources\AlertDestinationResource::getUrl(panel: 'admin')">
|
|
Alert targets
|
|
</x-filament::button>
|
|
@endif
|
|
|
|
@if (\App\Filament\Resources\AlertRuleResource::canViewAny())
|
|
<x-filament::button tag="a" :href="\App\Filament\Resources\AlertRuleResource::getUrl(panel: 'admin')">
|
|
Alert rules
|
|
</x-filament::button>
|
|
@endif
|
|
|
|
@if (\App\Filament\Resources\AlertDeliveryResource::canViewAny())
|
|
<x-filament::button tag="a" :href="\App\Filament\Resources\AlertDeliveryResource::getUrl(panel: 'admin')">
|
|
Alert deliveries
|
|
</x-filament::button>
|
|
@endif
|
|
|
|
<x-filament::button tag="a" color="gray" :href="route('admin.monitoring.audit-log')">
|
|
Audit Log
|
|
</x-filament::button>
|
|
</div>
|
|
</div>
|
|
</x-filament::section>
|
|
</x-filament-panels::page>
|